Get the OpenAPI document
GET
/openapi.json
const url = 'https://example.com/api/openapi.json';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://example.com/api/openapi.jsonThis OpenAPI 3.1 document. Public: it needs no token and holds no monitoring data.
Responses
Section titled “Responses”The OpenAPI document. Public: no token, no monitoring data.
Media typeapplication/json
This OpenAPI 3.1 document.
object
info
required
object
openapi
required
string
paths
required
object
Example
{ "info": { "title": "Heptapod API", "version": "1" }, "openapi": "3.1.0", "paths": { "/me": { "get": { "operationId": "getMe" } } }}Headers
Section titled “Headers”X-RateLimit-Limit
integer
Requests per minute allowed by the limit this response counts against.
X-RateLimit-Remaining
integer
Requests left in the current minute.
Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.
Media typeapplication/json
TooManyRequests
object
error
required
string
Examples
ExampleTooManyRequests
Rate limited
{ "error": "Too Many Attempts."}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.
X-RateLimit-Reset
integer
Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.