REST API reference
Base URL: https://work.extraordinaire.ai/api/v1. Authentication: Authorization: Bearer <personal key> (the person creates it at https://work.extraordinaire.ai/#/connect), except the sandbox, which needs no key. Errors are JSON: { "error": { "code", "message", "next_step", "url" } }. Limits: 60 reads and 10 changes a minute per key (RateLimit-Policy on every answer; 429 with Retry-After). Machine-readable: OpenAPI 3.1.
Authentication
Send Authorization: Bearer <personal key> (or x-api-key: <key>). The person creates and revokes keys at https://work.extraordinaire.ai/#/connect; a key acts for that person only and can never approve, pay or accept. MCP clients use OAuth 2.1 instead (auth.md). The sandbox needs no key.
POST /requests
Ask for expert help · operation request_help · personal key
Creates a request. Nothing is organised or spent until a person approves at approval_url. A request is long-running work: send Prefer: respond-async to get 202 Accepted with its status address (Location, status_url), then poll get_status.
Parameters:
Idempotency-Key(header, string): The same value on a retry creates no second request.Prefer(header,respond-async): respond-async: answer 202 Accepted with the status address to poll.
Body (JSON):
text(string, required)title(string)context(object): Permitted technical context. Never credentials or personal data.dry_run(boolean): true: save nothing; return what would be created and asked.
Answers: 200, 202, 400, 401, 403, 404, 429.
curl -X POST "https://work.extraordinaire.ai/api/v1/requests" \
-H "Authorization: Bearer $PERLA_KEY" \
-H "Content-Type: application/json" -d '{"text":"Our support assistant answers refund questions from an old policy."}'
GET /requests
List requests · operation list_requests · personal key
Parameters:
limit(query, integer)cursor(query, string): next_cursor from the previous page.
Answers: 200, 400, 401, 403, 404, 429.
curl -X GET "https://work.extraordinaire.ai/api/v1/requests" \
-H "Authorization: Bearer $PERLA_KEY"
POST /sandbox/requests
Sandbox: preview a request without a key · operation preview_request · no key
No key, no account, nothing saved: what a request with this text would become (title, kind, what was understood, the questions Perla would ask), read with the fixed rules only, and the link a person opens to send it.
Body (JSON):
text(string, required)title(string)lang(en|fr|nl|es)context(object): Permitted technical context. Never credentials or personal data.
Answers: 200, 400, 429.
curl -X POST "https://work.extraordinaire.ai/api/v1/sandbox/requests" \
-H "Content-Type: application/json" -d '{"text":"Our support assistant answers refund questions from an old policy."}'
GET /requests/{id}
Status of one request · operation get_status · personal key
Includes open_questions, the proposed plan and route, whether a person’s approval is still needed, and next_step { who, action, url }.
Parameters:
id(path, string, required): The request_id.
Answers: 200, 401, 403, 404, 429.
curl -X GET "https://work.extraordinaire.ai/api/v1/requests/req_…" \
-H "Authorization: Bearer $PERLA_KEY"
POST /requests/{id}/context
Attach permitted context · operation attach_context · personal key
Parameters:
id(path, string, required): The request_id.
Body (JSON):
context(object): Permitted technical context. Never credentials or personal data.
Answers: 200, 401, 403, 404, 409, 429.
curl -X POST "https://work.extraordinaire.ai/api/v1/requests/req_…/context" \
-H "Authorization: Bearer $PERLA_KEY" \
-H "Content-Type: application/json" -d '{"context":{"system":"Zendesk"}}'
POST /requests/{id}/proposal
Ask for one proposed plan · operation propose_scope · personal key
A proposal only. A person approves it at approval_url.
Parameters:
id(path, string, required): The request_id.
Body (JSON):
prefer(own_tools|software|hybrid|expert)avoid(array of string)non_affiliated(boolean)
Answers: 200, 400, 401, 403, 404, 409, 429.
curl -X POST "https://work.extraordinaire.ai/api/v1/requests/req_…/proposal" \
-H "Authorization: Bearer $PERLA_KEY" \
-H "Content-Type: application/json" -d '{"prefer":"…"}'
POST /requests/{id}/approval
Always refused · operation approval · personal key
Approval belongs to a person. This call answers 403 with approval_url, the page where they approve.
Parameters:
id(path, string, required): The request_id.
Answers: 401, 403, 404, 429.
curl -X POST "https://work.extraordinaire.ai/api/v1/requests/req_…/approval" \
-H "Authorization: Bearer $PERLA_KEY"
GET /requests/{id}/result
The result a person accepted · operation get_result · personal key
Parameters:
id(path, string, required): The request_id.
Answers: 200, 401, 403, 404, 409, 429.
curl -X GET "https://work.extraordinaire.ai/api/v1/requests/req_…/result" \
-H "Authorization: Bearer $PERLA_KEY"