Skip to content

Get the OpenAPI document

GET /v1/openapi.json

Answers the API's OpenAPI 3.1 document: every operation, schema, scope and error of v1. Needs no token.

The document itself is the answer (it isn't wrapped in data). It can be cached for 5 minutes. Code generators, Postman and other API tools can read it directly.

Example request

curl "https://api.rabbitflare.com/v1/openapi.json" \
  -OJ

Response

200 OK The answer is the file itself, as application/json, without the data envelope.

Example response

200 OK

The file itself, as application/json, without the data envelope.

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.

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.

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