Skip to content

Test a token

GET /v1/ping

Answers ok: true and the API's time when the token works. Any valid token can call it: it needs no scope and changes nothing.

Use it to check a new token, or that a token still works, before making real calls.

Scopes

Any valid token can make this request.

Example request

curl "https://api.rabbitflare.com/v1/ping" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the Ping object in data.

The Ping object's fields 2 fields
FieldType and description
ok

boolean

Always true: the token works.

time

string An ISO 8601 time, in UTC

The API's clock when it answered, in UTC.

Example response

200 OK
{
  "data": {
    "ok": true,
    "time": "2026-11-18T08:46:49.000Z"
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

401 missing_token

No API token was sent.

Send the header Authorization: Bearer <token>.

401 invalid_token

The token is malformed or unknown.

Check you copied the whole token. Make a new one in the panel if it's lost.

401 token_expired

The token passed its expiry date (expiredAt).

Make a new token in the panel: an expired token can't be regenerated.

401 token_revoked

The token was revoked, or replaced by a regenerated one whose grace time has passed.

Use the token's new value, or make a new token.

403 api_not_enabled

The API isn't open to this account.

Contact support.

403 api_access_suspended

Support paused this account's API access.

Contact support.

403 two_factor_required

Two-factor authentication became required for this account and is off.

Sign in to the panel and turn on two-factor authentication.

403 ip_not_allowed

The request came from an address that isn't on the token's list of allowed IP addresses.

Call from an allowed address, or change the token's list in the panel.

429 rate_limited

Too many requests. scope says which limit: token, account, create, operation or network.

Wait for Retry-After seconds, then go on more slowly.

429 concurrency_limited

Too many requests of this token are in progress at once.

Wait for a request to finish before sending the next.

503 api_unavailable

The API is switched off for everyone for a while.

Try again later; Retry-After says when.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs