---
title: "For developers and AI assistants: Extraordinaire Work"
description: "Connect an AI assistant to Perla: MCP with OAuth 2.1, or the REST API with a personal key. Quickstart, sandbox, limits, versioning."
canonical: https://work.extraordinaire.ai/developers
last-updated: 2026-12-06
---

# 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

1. **MCP (recommended).** Add `https://work.extraordinaire.ai/mcp` as 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. Call `whoami` first.
2. **REST.** Your person creates a personal key at [https://work.extraordinaire.ai/#/connect](https://work.extraordinaire.ai/#/connect) (self-serve, free, revocable at any time). Send it as `Authorization: Bearer <key>` to `https://work.extraordinaire.ai/api/v1`.
3. **Try it with no key at all:** `POST https://work.extraordinaire.ai/api/v1/sandbox/requests` with `{ "text": "…" }` returns what a request would become. With a key, `"dry_run": true` on `POST /api/v1/requests` does the same for the person's account.

```bash
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](https://www.npmjs.com/package/extraordinaire-work) (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.

```bash
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/v1` keeps working beside it.
- A call to be retired first answers with `Deprecation` and `Sunset` headers, and is announced on this page, at least 90 days before it stops.
- The full policy: [versioning and deprecation](https://work.extraordinaire.ai/developers/versioning).

## 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](https://work.extraordinaire.ai/.well-known/oauth-protected-resource/mcp), [authorization server](https://work.extraordinaire.ai/.well-known/oauth-authorization-server). Details: [auth.md](https://work.extraordinaire.ai/auth.md).
- **REST:** `Authorization: Bearer <personal key>` (or `x-api-key`). The person creates, sees and revokes keys at [https://work.extraordinaire.ai/#/connect](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 next
- `POST /api/v1/requests/{id}/context`: add permitted context
- `POST /api/v1/requests/{id}/proposal`: ask for one proposed plan
- `POST /api/v1/requests/{id}/approval`: always refused with the page where the person approves
- `GET /api/v1/requests/{id}/result`: the result the person accepted
- `POST /api/v1/sandbox/requests`: preview with no key

Every call, with parameters and a curl example: [REST API reference](https://work.extraordinaire.ai/developers/api).

## Sandbox

- **[Keyless sandbox](https://work.extraordinaire.ai/sandbox):** `POST https://work.extraordinaire.ai/api/v1/sandbox/requests` needs no key and no account: what a request would become, and the link a person opens to send it. Nothing is saved.
- `dry_run: true` on `POST /requests` saves 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_url` an answer gives.

## Reference

- [REST API reference](https://work.extraordinaire.ai/developers/api): every call, with its parameters, answers and a curl example.
- [MCP tools reference](https://work.extraordinaire.ai/developers/mcp): every tool an assistant can be given, read-only or not, with its arguments.
- [OpenAPI 3.1 description](https://work.extraordinaire.ai/api/v1/openapi.json): the same calls, machine-readable; each is the twin of an MCP tool.
- [MCP server card](https://work.extraordinaire.ai/.well-known/mcp/server-card.json) and OAuth metadata: [protected resource](https://work.extraordinaire.ai/.well-known/oauth-protected-resource/mcp), [authorization server](https://work.extraordinaire.ai/.well-known/oauth-authorization-server).
- [Authentication for agents](https://work.extraordinaire.ai/auth.md): methods, scopes, errors and revocation.
- [A2A agent card](https://work.extraordinaire.ai/.well-known/agent-card.json): a public A2A agent (JSON-RPC at `https://work.extraordinaire.ai/a2a`) that previews a request with no account.
- [API catalog](https://work.extraordinaire.ai/.well-known/api-catalog), [agent guide](https://work.extraordinaire.ai/agents.md), [llms.txt](https://work.extraordinaire.ai/llms.txt).

## Limits and errors

- Per credential: 60 reads and 10 changes a minute. Every answer of `/api/v1` carries `RateLimit-Policy`; a refusal is `429` with `Retry-After`.
- Every error is JSON: `{ "error": { "code", "message", "next_step", "url" } }`.
- `POST /requests` accepts an `Idempotency-Key` header: a retry creates no second request.
- A request is long-running work. Send `Prefer: respond-async` to get `202 Accepted` with its status address in `Location` (and `status_url`), then poll `GET /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](https://work.extraordinaire.ai/pricing)).
