work.extraordinaire

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:

Body (JSON):

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:

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):

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:

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:

Body (JSON):

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:

Body (JSON):

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:

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:

Answers: 200, 401, 403, 404, 409, 429.

curl -X GET "https://work.extraordinaire.ai/api/v1/requests/req_…/result" \
  -H "Authorization: Bearer $PERLA_KEY"