Check the address
GET
/health
const url = 'https://api.mayottehub.com/v1/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mayottehub.com/v1/healthAnswers without a key. Use it to see that the API is reachable.
Responses
Section titled “Responses”The API is reachable.
Media typeapplication/json
object
ok
required
boolean
service
required
string
version
required
integer
time
required
string format: date-time
Example
{ "ok": true, "service": "Mayotte Hub API", "version": 1}Too many calls (rate). Wait for the retry-after header, in seconds.
Media typeapplication/json
object
error
required
Words for a person. They may change.
string
code
required
What your program should read.
string
Example
{ "code": "bad_json"}Headers
Section titled “Headers”retry-after
integer