For developers and AI assistants
An AI assistant can work with Perla for its person: start a request, answer Perla's questions, follow requests and work in progress, and prepare drafts. It can never approve, pay, accept work or send anything on its own: those stay with the person, on the web.
Quickstart
- MCP (recommended). Add
https://work.extraordinaire.ai/mcpas a connector (Streamable HTTP). Sign-in is OAuth 2.1 with PKCE: your person signs in once and chooses what you may do. No key needed. Callwhoamifirst. - REST. Your person creates a personal key at https://work.extraordinaire.ai/#/connect (self-serve, free, revocable at any time). Send it as
Authorization: Bearer <key>tohttps://work.extraordinaire.ai/api/v1. - Try it with no key at all:
POST https://work.extraordinaire.ai/api/v1/sandbox/requestswith{ "text": "…" }returns what a request would become. With a key,"dry_run": trueonPOST /api/v1/requestsdoes the same for the person's account.
curl -X POST https://work.extraordinaire.ai/api/v1/requests \
-H "Authorization: Bearer $PERLA_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 7f1c2e" \
-d '{"text": "Our support assistant answers refund questions from an old policy.", "dry_run": true}'
SDK and command line
extraordinaire-work on npm (Node 18 or later, no dependencies): the Perla class for the REST API and the perla command. preview needs no key; the rest uses PERLA_KEY. Proprietary licence: use it unmodified to work with Extraordinaire Work.
npx extraordinaire-work preview "Our support assistant answers refund questions from an old policy."
npm install extraordinaire-work
Versioning and deprecation
- The version is in the path:
/api/v1. Additions (a new field, a new call) arrive without a new version; ignore fields you do not know. - A change that would break a client goes to a new version (
/api/v2);/api/v1keeps working beside it. - A call to be retired first answers with
DeprecationandSunsetheaders, and is announced on this page, at least 90 days before it stops. - The full policy: versioning and deprecation.
Authentication
- MCP: OAuth 2.1, authorization code with PKCE (S256). The person signs in to Perla and chooses the side and the scopes (for example
requests:read,requests:write,results:read). Metadata: protected resource, authorization server. Details: auth.md. - REST:
Authorization: Bearer <personal key>(orx-api-key). The person creates, sees and revokes keys at https://work.extraordinaire.ai/#/connect. - No credential: the sandbox and the A2A agent below.
Endpoints
POST /api/v1/requests: start a request (Idempotency-Key,dry_run,Prefer: respond-async)GET /api/v1/requests: list requests (limit,cursor)GET /api/v1/requests/{id}: status, open questions, the plan and who acts nextPOST /api/v1/requests/{id}/context: add permitted contextPOST /api/v1/requests/{id}/proposal: ask for one proposed planPOST /api/v1/requests/{id}/approval: always refused with the page where the person approvesGET /api/v1/requests/{id}/result: the result the person acceptedPOST /api/v1/sandbox/requests: preview with no key
Every call, with parameters and a curl example: REST API reference.
Sandbox
- Keyless sandbox:
POST https://work.extraordinaire.ai/api/v1/sandbox/requestsneeds no key and no account: what a request would become, and the link a person opens to send it. Nothing is saved. dry_run: trueonPOST /requestssaves nothing and spends nothing.- During early access the whole service runs with Stripe in test mode: no real money moves, whatever is approved.
- Nothing is organised or paid until a person approves at the
approval_urlan answer gives.
Reference
- REST API reference: every call, with its parameters, answers and a curl example.
- MCP tools reference: every tool an assistant can be given, read-only or not, with its arguments.
- OpenAPI 3.1 description: the same calls, machine-readable; each is the twin of an MCP tool.
- MCP server card and OAuth metadata: protected resource, authorization server.
- Authentication for agents: methods, scopes, errors and revocation.
- A2A agent card: a public A2A agent (JSON-RPC at
https://work.extraordinaire.ai/a2a) that previews a request with no account. - API catalog, agent guide, llms.txt.
Limits and errors
- Per credential: 60 reads and 10 changes a minute. Every answer of
/api/v1carriesRateLimit-Policy; a refusal is429withRetry-After. - Every error is JSON:
{ "error": { "code", "message", "next_step", "url" } }. POST /requestsaccepts anIdempotency-Keyheader: a retry creates no second request.- A request is long-running work. Send
Prefer: respond-asyncto get202 Acceptedwith its status address inLocation(andstatus_url), then pollGET /requests/{id}. - Lists are paged with
next_cursor.
Access and cost
Extraordinaire Work is in early access, by invitation; your person signs in with the email they were invited with. Connecting an assistant and using the API cost nothing: a person pays only for work they approve (pricing).