Skip to content

Check your key

GET
/ping
curl --request GET \
--url https://api.mayottehub.com/v1/ping \
--header 'Authorization: Bearer <token>'

Answers with the company your key belongs to and what it may do. Needs the ping scope.

The key works.

Media typeapplication/json
object
ok
required
boolean
partner
required

The company the key belongs to.

string
scopes
required
Array<string>
Allowed values: ping webhooks
time
required
string format: date-time

Example

{
"ok": true,
"partner": "Your company",
"scopes": [
"ping"
]
}

No key (no_key), a key that is not valid (bad_key), revoked (revoked) or ended (expired); for an event also a missing or old time (no_timestamp, old_timestamp) or a missing or wrong signature (no_signature, bad_signature).

Media typeapplication/json
object
error
required

Words for a person. They may change.

string
code
required

What your program should read.

string
Allowed values: bad_json bad_event no_key bad_key revoked expired no_timestamp old_timestamp no_signature bad_signature scope ip not_found method too_large rate server unreachable not_ready

Example

{
"code": "bad_json"
}

The key may not do this (scope), or the call came from an address it does not allow (ip).

Media typeapplication/json
object
error
required

Words for a person. They may change.

string
code
required

What your program should read.

string
Allowed values: bad_json bad_event no_key bad_key revoked expired no_timestamp old_timestamp no_signature bad_signature scope ip not_found method too_large rate server unreachable not_ready

Example

{
"code": "bad_json"
}

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
Allowed values: bad_json bad_event no_key bad_key revoked expired no_timestamp old_timestamp no_signature bad_signature scope ip not_found method too_large rate server unreachable not_ready

Example

{
"code": "bad_json"
}
retry-after
integer