Skip to content

API reference

Every endpoint of the open API at https://api.perafly.com/v1, generated from its OpenAPI document: authentication, parameters, request bodies, responses and error codes.

On this page

Perafly API 1.0.0, generated from the OpenAPI document.

Basics

TopicRule
Base URLhttps://api.perafly.com
AuthenticationAuthorization: Bearer <key>. A key belongs to one team, so no team header is needed. See Agents and MCP.
FormatJSON. Dates are ISO 8601 in UTC; ids carry a prefix (prj_, ver_, opr_ …). Projects can be given by id or name, versions by id or as v7.
Paging?limit= (default 50, at most 100) and ?cursor=; lists answer { data, nextCursor }.
Request idSend X-Request-Id (8–128 characters of A-Z a-z 0-9 . _ -) and it comes back unchanged; otherwise one is generated.
RetriesIdempotency-Key (8–128 characters) on POST: the same key and body within 24 hours replays the first response with Idempotent-Replayed: true.
Rate limits300 requests a minute per key; publish endpoints 30 a minute. Over it: 429 rate_limited with Retry-After.
BrowsersThe API accepts requests from any origin; credentials go in the Authorization header, never in cookies.
Terminal
curl https://api.perafly.com/v1/me \
  -H "Authorization: Bearer $PERAFLY_TOKEN"

Errors

Errors follow RFC 9457 (application/problem+json) and carry a stable code; decide on code only. type links to the code's page in the error catalog. Plan limits answer 402 and name the limit in code.

OpenAPI document

This reference is built from the machine-readable contract at GET https://api.perafly.com/v1/openapi.json (OpenAPI 3.1, no credentials needed). The MCP tools carry the same operation names.

Endpoints

Endpoint summaries come from the OpenAPI document.

Data

Collections, records, project keys and change hook deliveries.

Schemas

The objects the endpoints send and receive are described on their own page. See all 41 schemas