# API reference

Explore the API contract and test requests with the interactive OpenAPI reference.

- Interactive reference: https://signapi.fingerdance.ai/docs
- OpenAPI document: https://signapi.fingerdance.ai/openapi.json
- All docs as plain text for language models: https://signapi.fingerdance.ai/llms-full.txt

All requests use `Authorization: Bearer YOUR_API_KEY`. Bodies are JSON. Times are Unix seconds; durations are milliseconds.

| Method and path | Permission | What it does |
|---|---|---|
| `POST /v1/jobs` | `jobs:write` | Queue a new sign language video. Needs an `Idempotency-Key` header. |
| `GET /v1/jobs` | `jobs:read` | List jobs, newest first (`limit`, `before`, `status`, `created_after`). |
| `GET /v1/jobs/{job_id}` | `jobs:read` | Read status and delivered artifacts. |
| `GET /v1/jobs/{job_id}/events` | `jobs:read` | Server-sent status events until the job ends. |
| `GET /v1/jobs/{job_id}/stream` | `jobs:read`, `artifacts:read` | Play the video while it renders (`format=fmp4` or `ts`). |
| `POST /v1/jobs/{job_id}/cancel` | `jobs:write` | Cancel a queued or running job. |
| `GET /v1/artifacts/{artifact_id}` | `artifacts:read` | Get a temporary download URL (`download=true` for an attachment). |
| `GET /v1/capabilities` | `jobs:read` | Supported avatars, sign languages, sizes, frame rates, and limits. |
| `GET /v1/usage` | `usage:read` | Balance, reservations, and delivered video time. |
| `POST /v1/webhooks` | `webhooks:manage` | Register a destination for job events. |
| `GET /v1/webhooks` | `webhooks:manage` | List destinations. |
| `DELETE /v1/webhooks/{endpoint_id}` | `webhooks:manage` | Remove a destination. |
| `POST /v1/webhooks/{endpoint_id}/test` | `webhooks:manage` | Send a test event. |
| `GET /v1/webhooks/{endpoint_id}/deliveries` | `webhooks:manage` | Delivery history. |

Limits: text up to 4,096 characters per job; videos up to 600 seconds.

Request fields for `POST /v1/jobs` are listed in [Jobs and results](https://signapi.fingerdance.ai/developers/jobs).
