<!-- https://signapi.fingerdance.ai/developers -->

# Use with AI

Use SignAPI from Claude, Codex, Gemini, Cursor, VS Code, or ChatGPT: sign in once and do everything from your agent.

Add one MCP server, sign in once, and the whole SignAPI lifecycle happens in your agent: ask questions about the docs, request access, make videos, check and buy credits, create API keys for your servers, and set up webhooks. The only step outside the chat is paying on Stripe's checkout page.

Server URL: `https://signapi.fingerdance.ai/mcp` (Streamable HTTP, MCP 2026-07-28 and 2025-11-25). Sign-in uses OAuth: your client opens the browser once, and keeps you signed in after that.

## Connect your client

### Claude Code

```bash
claude mcp add --transport http signapi https://signapi.fingerdance.ai/mcp
```

Then run `/mcp` in Claude Code, pick `signapi`, and choose Authenticate.

### Claude (desktop, web, and mobile)

Settings → Connectors → Add custom connector. Name it SignAPI, paste `https://signapi.fingerdance.ai/mcp`, then choose Connect and sign in. In a chat, turn SignAPI on from the tools menu.

### Codex (CLI, IDE extension, ChatGPT desktop)

In the Codex app: Settings, Plugins, MCPs, then Add server (Streamable HTTP, the URL above), and choose Authenticate. Or in a terminal:

```bash
codex mcp add signapi --url https://signapi.fingerdance.ai/mcp
codex mcp login signapi
```

Use SignAPI from a Work chat. If a chat isn't signed in yet (for example it was open before you authenticated), it shows a sign-in card: sign in once, confirm the code, and the same chat carries on.

### Gemini CLI

```bash
gemini mcp add --transport http signapi https://signapi.fingerdance.ai/mcp
```

Then run `/mcp auth signapi` inside Gemini CLI.

### Cursor

One-click install: cursor://anysphere.cursor-deeplink/mcp/install?name=signapi&config=eyJ1cmwiOiAiaHR0cHM6Ly9zaWduYXBpLmZpbmdlcmRhbmNlLmFpL21jcCJ9

Or add to `~/.cursor/mcp.json`, then choose Connect next to SignAPI under Tools & MCP:

```json
{"mcpServers": {"signapi": {"url": "https://signapi.fingerdance.ai/mcp"}}}
```

### VS Code (GitHub Copilot)

One-click install: https://vscode.dev/redirect/mcp/install?name=signapi&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fsignapi.fingerdance.ai%2Fmcp%22%7D

Or add to `.vscode/mcp.json`; VS Code asks you to sign in the first time Copilot uses it:

```json
{"servers": {"signapi": {"type": "http", "url": "https://signapi.fingerdance.ai/mcp"}}}
```

### ChatGPT

Settings → Apps & Connectors → Advanced settings → turn on Developer mode. Create a connector named SignAPI with the URL `https://signapi.fingerdance.ai/mcp` and OAuth authentication, then sign in.

### Other clients

Add a remote MCP server (Streamable HTTP) with the URL `https://signapi.fingerdance.ai/mcp`. Clients that support MCP authorization open the sign-in page on first use.

## Access

Sign in with the account you use for SignAPI. SignAPI is invite-only while it rolls out: a new account can still sign in, read the docs, and ask for access with the `request_access` tool. When the request is approved, the same connection gets every tool.

## What you can ask

- "How do I verify a SignAPI webhook signature in Node?"
- "Request SignAPI access for Acme. We caption our news videos."
- "Make an ASL video of this paragraph at 1080p with avatar 2."
- "How much video time do I have? Buy the smallest pack."
- "Create a key for my production server and add SignAPI to this repo."

## Tools

| Tool | What it does |
|---|---|
| `get_account` | Who is signed in, their access, workspace, and balance. |
| `request_access` | Ask for access (invite-only rollout). |
| `search_docs`, `read_doc` | Answers from these docs. |
| `show_avatars` | The four avatars as portrait cards; tap one to use it. |
| `prepare_video` | A review card with the estimated length and your balance; make the video with one tap. |
| `create_video`, `get_video` | Make one video or several (they wait for the render) and get the MP4 download links. |
| `list_videos`, `cancel_video` | Your recent videos; stop one that is running. |
| `list_options` | Sizes, frame rates, speeds, and limits as data. |
| `get_usage`, `list_credit_packs`, `buy_credits` | Balance and top-ups: a Stripe checkout card that shows when the credits arrive. |

In clients that support MCP Apps (Codex, Claude, VS Code, ChatGPT, and others) these steps show as small cards in the conversation: avatar portraits to pick from, a review card before longer videos, videos that play in place, and a checkout card. Each card does one thing; tell your agent anything else in your own words.
| `create_api_key`, `list_api_keys`, `revoke_api_key` | Keys for your own servers. A new key is shown once, to you, in a card (your agent never sees it) and expires after 90 days unless you ask for longer. |
| `create_webhook`, `list_webhooks`, `test_webhook`, `list_webhook_deliveries`, `delete_webhook` | Job events to your endpoint. |

Turn on tool approval in your client so you see each call that uses credits or changes your account before it runs.

## Install the agent skill

The skill teaches coding agents (Claude Code, Codex, Gemini CLI, Cursor, GitHub Copilot, and others that read `SKILL.md`) to integrate SignAPI correctly, and includes a script that generates a video and saves the MP4.

```bash
npx skills add https://signapi.fingerdance.ai
```

- Claude apps: download https://signapi.fingerdance.ai/skills/signapi.zip and upload it under Settings → Capabilities → Skills.
- Any agent: the skill index is at https://signapi.fingerdance.ai/.well-known/skills/index.json.

## Automation and CI

Agents that run without a person to sign in use an API key instead. Ask your agent to create one (`create_api_key`) or create it in the console, then send it as a header:

```bash
claude mcp add --transport http signapi https://signapi.fingerdance.ai/mcp --header "Authorization: Bearer $FINGERDANCE_API_KEY"
codex mcp add signapi --url https://signapi.fingerdance.ai/mcp --bearer-token-env-var FINGERDANCE_API_KEY
```

```json
{"mcpServers": {"signapi": {"url": "https://signapi.fingerdance.ai/mcp", "headers": {"Authorization": "Bearer YOUR_API_KEY"}}}}
```

The key's permissions limit what the agent can do. The skill's script uses the same key:

```bash
python3 scripts/signapi.py generate "Hello. Thank you." --out hello.mp4
```

## Docs for language models

- https://signapi.fingerdance.ai/llms.txt: an index of these docs.
- https://signapi.fingerdance.ai/llms-full.txt: all docs in one file.
- Any docs page as Markdown: add `.md` to its URL, for example https://signapi.fingerdance.ai/developers/quickstart.md.

<!-- https://signapi.fingerdance.ai/developers/quickstart -->

# Quickstart

Create a key, send text, and download your first sign language video.

SignAPI turns English text into an American Sign Language (ASL) video signed by a realistic avatar. You send text to `POST /v1/jobs`, the job renders in a few seconds, and you download an MP4 (or play it while it renders).

Base URL: `https://signapi.fingerdance.ai`

## Step 1: Create an API key

Sign in at https://signapi.fingerdance.ai/account/keys and create a key with permission to create jobs, read their status, and download files (`jobs:write`, `jobs:read`, `artifacts:read`). Store it on your server, never in a browser or mobile app.

```bash
export FINGERDANCE_API_KEY='your_api_key'
export REQUEST_ID="$(uuidgen)"
```

Access is invite-only while SignAPI rolls out. Request access at https://signapi.fingerdance.ai/waitlist.

## Step 2: Check that you have video credits

Usage is measured in delivered video time. A job holds a limit worked out from your text (the sample sentence holds 30 seconds) and is charged only the delivered length. Check your balance at https://signapi.fingerdance.ai/account/billing or with `GET /v1/usage`. You can watch the sample in the Playground (https://signapi.fingerdance.ai/account/playground) without using credits.

## Step 3: Submit your first job

Keep the same `Idempotency-Key` if you retry this submission. Use a new one for each new job.

```bash
curl --fail-with-body "https://signapi.fingerdance.ai/v1/jobs" \
  -H "Authorization: Bearer $FINGERDANCE_API_KEY" \
  -H "Idempotency-Key: $REQUEST_ID" \
  -H 'Content-Type: application/json' \
  --data '{"text": "Hello. Thank you.", "sign_language": "aslue", "quality": "fast", "resolution": "1280x720"}'
```

```python
import os, json, uuid
from urllib.request import Request, urlopen

request = Request(
    "https://signapi.fingerdance.ai/v1/jobs",
    data=json.dumps({"text": "Hello. Thank you."}).encode(),
    headers={
        "Authorization": "Bearer " + os.environ["FINGERDANCE_API_KEY"],
        "Idempotency-Key": str(uuid.uuid4()),
        "Content-Type": "application/json",
    },
)
with urlopen(request, timeout=30) as response:
    job = json.load(response)
print(job["id"], job["status"])
```

```typescript
const response = await fetch("https://signapi.fingerdance.ai/v1/jobs", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.FINGERDANCE_API_KEY,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ text: "Hello. Thank you." }),
});
if (!response.ok) throw new Error(await response.text());
const job = await response.json();
```

The first submission returns `202 Accepted` with the job and a `Location` header. Retrying the same request with the same key returns `200 OK` and the existing job.

## Step 4: Get the video

Read the job until its `status` is `succeeded`. Find the `mp4` entry in `artifacts`, then exchange its ID for a short-lived download URL.

```bash
curl "https://signapi.fingerdance.ai/v1/jobs/JOB_ID" -H "Authorization: Bearer $FINGERDANCE_API_KEY"
curl "https://signapi.fingerdance.ai/v1/artifacts/ARTIFACT_ID?download=true" -H "Authorization: Bearer $FINGERDANCE_API_KEY"
```

The artifact response is `{"url": "...", "expires_in": 300, "sha256": "...", "size_bytes": 1265035}`. The URL lasts a few minutes: download it right away, and ask again for a fresh URL when you need one later.

A short sentence usually finishes in a few seconds. To show the video sooner, play it while it renders: see [Live playback](https://signapi.fingerdance.ai/developers/streaming).

## Next steps

- [Jobs and results](https://signapi.fingerdance.ai/developers/jobs): job states, cancellation, artifacts.
- [Webhooks](https://signapi.fingerdance.ai/developers/webhooks): get a signed callback when a job finishes.
- [AI agents](https://signapi.fingerdance.ai/developers/agents): use SignAPI from Claude, Cursor, VS Code, or Codex through MCP and agent skills.

<!-- https://signapi.fingerdance.ai/developers/authentication -->

# Authentication

Create and manage scoped keys for your applications.

## Authenticate server requests

Use a dedicated API key for each integration. Send it as a Bearer token in the `Authorization` header and keep it in your server's secrets manager.

```
Authorization: Bearer YOUR_API_KEY
```

Create and revoke keys at https://signapi.fingerdance.ai/account/keys.

## Choose permissions for the work

- `jobs:write` creates and cancels jobs.
- `jobs:read` reads job status and status events.
- `artifacts:read` fetches download URLs and opens live previews.
- `usage:read` reads credit balance and usage.
- `webhooks:manage` registers webhook destinations.

A missing or revoked key returns `401 unauthorized`. A valid key without the required permission returns `403 permission_denied`.

## Keys and AI agents

AI agents connected to the SignAPI MCP server sign in with your account (OAuth) and need no key; see [AI agents](https://signapi.fingerdance.ai/developers/agents). Give unattended agents and CI a dedicated key with only the permissions they need, for example `jobs:write`, `jobs:read`, and `artifacts:read` to generate videos, and revoke it when you stop using them.

<!-- https://signapi.fingerdance.ai/developers/jobs -->

# Jobs and results

Submit jobs, monitor progress, and retrieve completed files.

## Job request fields

`POST /v1/jobs` takes a JSON body. Only `text` is required.

| Field | Values | Default | Meaning |
|---|---|---|---|
| `text` | 1–4096 characters | — | English text to sign. Long text is signed sentence by sentence into one video. |
| `sign_language` | `aslue` | `aslue` | American Sign Language. |
| `avatar` | `0`, `1`, `2`, `3` | `1` | Avatar 0 and 1 are women, 2 and 3 are men. |
| `resolution` | `960x540`, `1280x720`, `1920x1080` | `1280x720` | Video size. |
| `fps` | `24`, `30`, `60` | `30` | Frame rate. |
| `playback_speed` | `"0.5"`, `"0.75"`, `"1"`, `"1.25"`, `"1.5"`, `"2"` | `"1"` | Signing speed (a string). |
| `subtitles` | `true`, `false` | `true` | Burn the English caption into the video. |
| `background_color` | `#RRGGBB` | `#808080` | Background color. |
| `quality` | `fast` | `fast` | Rendering preset. |
| `max_duration_seconds` | 1–600 | derived from text | Cap on the delivered length (see Billing). |

Send an `Idempotency-Key` header (1–128 ASCII letters, numbers, or `_ . : -`) with every submission.

## Follow a job through delivery

New jobs are `queued`, then `running`. `succeeded`, `failed`, and `cancelled` are final states. Read the latest state by ID or subscribe to status events.

```
POST /v1/jobs
GET  /v1/jobs
GET  /v1/jobs/{job_id}
GET  /v1/jobs/{job_id}/events
GET  /v1/jobs/{job_id}/stream
POST /v1/jobs/{job_id}/cancel
```

A job looks like this:

```json
{
  "id": "d23be352fef14576ac6f22dc3f5fe1cb",
  "status": "succeeded",
  "reserved_ms": 0,
  "billed_ms": 3567,
  "error_code": null,
  "created_at": 1794853640.1,
  "completed_at": 1794853662.4,
  "artifacts": [
    {"id": "...", "kind": "mp4", "content_type": "video/mp4", "sha256": "...", "size_bytes": 1265035, "duration_ms": 3567, "expires_at": 1797445662.4}
  ],
  "settings": {"avatar": 1, "sign_language": "aslue", "resolution": "1280x720", "fps": 30, "playback_speed": "1", "subtitles": true, "background_color": "#808080", "quality": "fast", "max_duration_seconds": null}
}
```

`GET /v1/jobs?limit=20&status=succeeded` lists recent jobs, newest first; pass `before=<job_id>` (the `next_cursor`) for the next page.

Keep the same `Idempotency-Key` when retrying the same payload. Reusing a key for different input returns `409 idempotency_conflict`.

When replay is enabled for your account, `POST /v1/jobs/{source_job_id}/replay` with the same settings reuses a completed job's saved result.

## Use the completed output

Fetch a signed URL from `GET /v1/artifacts/{artifact_id}` (add `?download=true` for a download with a file name). Request a new URL when a link expires. If the artifact itself has expired (`410 artifact_expired`), generate a new video. Artifacts are kept for 30 days.

You can also play a job while it renders, from its first frames. Wait for `succeeded` before treating the video as delivered. See [Live playback](https://signapi.fingerdance.ai/developers/streaming).

Job history in the console: https://signapi.fingerdance.ai/account/requests

<!-- https://signapi.fingerdance.ai/developers/streaming -->

# Live playback

Play a video while it renders, from its first frames, in a browser or any player.

## Watch a video while it renders

A job's video can play from its first frames, before the job has finished. For a sentence the first frame usually arrives about 2.5 seconds after you submit; the rest arrives several times faster than it plays, so playback does not wait.

Live playback adds a way to read a job; it changes nothing else. Integrations that wait for `succeeded` and download the MP4 keep working as they are, and the stream does not change what you pay: only delivered video time is billed.

## Open the stream

Submit the job as usual, then read its stream with a key that has `jobs:read` and `artifacts:read`.

```
GET /v1/jobs/{job_id}/stream?format=fmp4   fragmented MP4: browsers, ffplay, VLC
GET /v1/jobs/{job_id}/stream?format=ts     MPEG-TS (the default): players, servers, transcoders
```

- `fmp4` sends an initialization segment, then fragments of at most a quarter second. Browsers play it with Media Source Extensions.
- `ts` sends the MPEG-TS stream as it is rendered, for tools that read TS.
- The video is H.264 (`avc1.64002a`, High profile) at the size and frame rate you requested, with no audio track.

### What the stream answers

- `409 stream_not_ready`: the job is still queued. Ask again after about 250 ms. A job that failed or was cancelled also answers 409.
- `200`: the video, from its first frame to its last. While the job runs the response grows as frames are rendered; it continues into the final video once the job succeeds, without a gap or a repeated byte. Opened after success, it is the whole final video (with `fmp4`, the bytes of the MP4 file).
- `410 artifact_expired`: the finished video has expired. Generate it again.
- `429 stream_limit`: too many open streams. Close unused ones and retry.

A successful response carries `X-Preview-Only: true` and `X-Job-Status-Url`. If a job fails while it streams, the stream stops early and the job is not billed; read the job's status for the outcome.

## Try it from a terminal

```bash
curl -sN "https://signapi.fingerdance.ai/v1/jobs/$JOB_ID/stream" \
  -H "Authorization: Bearer $FINGERDANCE_API_KEY" | ffplay -autoexit -i -
```

## Play it in a browser

API keys stay on your server, so a browser reads the stream through a route of yours that checks the signed-in user may watch the job and relays the bytes as they arrive. Turn off response buffering and compression for that route (for nginx: `proxy_buffering off`).

```javascript
// Your server, any Fetch-style runtime: GET /videos/:jobId/live
export async function GET(request, { params }) {
  // Check here that the signed-in user may watch this job.
  const upstream = await fetch(
    `https://signapi.fingerdance.ai/v1/jobs/${params.jobId}/stream?format=fmp4`,
    { headers: { Authorization: `Bearer ${process.env.FINGERDANCE_API_KEY}` } },
  );
  return new Response(upstream.body, {
    status: upstream.status,
    headers: {
      "Content-Type": upstream.headers.get("Content-Type") ?? "application/json",
      "Cache-Control": "no-store",
    },
  });
}
```

```javascript
// Browser
async function playLive(video, streamUrl) {
  // A queued job answers 409 until it starts: ask again shortly.
  let response;
  for (;;) {
    response = await fetch(streamUrl);
    if (response.status !== 409) break;
    await new Promise((resolve) => setTimeout(resolve, 250));
  }
  if (!response.ok) throw new Error("Stream unavailable: " + response.status);

  // Safari on iPhone (17.1+) offers ManagedMediaSource.
  const MediaSourceClass = window.ManagedMediaSource || window.MediaSource;
  const source = new MediaSourceClass();
  video.disableRemotePlayback = true;
  video.muted = true; // no audio track; muted video may start on its own
  video.src = URL.createObjectURL(source);
  await new Promise((resolve) => source.addEventListener("sourceopen", resolve, { once: true }));
  const buffer = source.addSourceBuffer('video/mp4; codecs="avc1.64002a"');

  const queue = [];
  let ended = false;
  const pump = () => {
    if (buffer.updating) return;
    if (queue.length) buffer.appendBuffer(queue.shift());
    else if (ended && source.readyState === "open") source.endOfStream();
  };
  buffer.addEventListener("updateend", () => {
    if (video.paused && video.buffered.length) video.play().catch(() => {});
    pump();
  });

  const reader = response.body.getReader();
  for (;;) {
    const { value, done } = await reader.read();
    if (done) break;
    queue.push(value);
    pump();
  }
  ended = true;
  pump();
}

playLive(document.querySelector("video"), "/videos/JOB_ID/live");
```

Without Media Source Extensions, wait for `succeeded` and play the MP4 from its download URL.

<!-- https://signapi.fingerdance.ai/developers/webhooks -->

# Webhooks

Send job events to an HTTPS endpoint you control.

## Receive job updates on your server

Register a public HTTPS endpoint (in the console at https://signapi.fingerdance.ai/account/webhooks, or with `POST /v1/webhooks` and a key that has `webhooks:manage`). Save the signing secret when the endpoint is created: it is shown once.

```bash
curl "https://signapi.fingerdance.ai/v1/webhooks" -H "Authorization: Bearer $FINGERDANCE_API_KEY" \
  -H 'Content-Type: application/json' --data '{"url": "https://example.com/fingerdance/webhook"}'
```

When a job reaches a final state, SignAPI POSTs an event:

```json
{
  "id": "evt_8c1d0f6e5b9a4f2e9d7c3b1a0f6e5d4c",
  "type": "job.succeeded",
  "created_at": 1794853662.4,
  "data": {"job_id": "d23be352fef14576ac6f22dc3f5fe1cb", "status": "succeeded", "error_code": null, "billed_ms": 3567, "pipeline_version": "..."}
}
```

Event types: `job.succeeded`, `job.failed`, `job.cancelled`.

## Verify the signature

Each delivery carries `X-Fingerdance-Event-Id` and `X-Fingerdance-Signature: t=<unix timestamp>,v1=<hex signature>`. Compute the hex HMAC-SHA256 of `timestamp + "." + raw_body` with your signing secret, compare it to `v1` with a timing-safe comparison, and reject timestamps older than a few minutes. Verify against the raw request body, before parsing JSON.

```python
import hashlib, hmac, time

def verify(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
    parts = dict(item.split("=", 1) for item in header.split(","))
    timestamp, signature = parts["t"], parts["v1"]
    if abs(time.time() - int(timestamp)) > tolerance:
        return False
    expected = hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature)
```

```typescript
import { createHmac, timingSafeEqual } from "node:crypto";

export function verify(rawBody: Buffer, header: string, secret: string, tolerance = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > tolerance) return false;
  const expected = createHmac("sha256", secret).update(parts.t + ".").update(rawBody).digest("hex");
  return expected.length === parts.v1.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
```

Respond with a 2xx status after accepting the event. Deliveries are retried, so handle each event ID once.

## Test and inspect deliveries

- `POST /v1/webhooks/{endpoint_id}/test` sends a test event.
- `GET /v1/webhooks/{endpoint_id}/deliveries` shows whether each event arrived, how many attempts were made, and when the next retry is due.
- `GET /v1/webhooks` lists endpoints; `DELETE /v1/webhooks/{endpoint_id}` removes one.

<!-- https://signapi.fingerdance.ai/developers/billing -->

# Billing and usage

See how video time is reserved, used, and topped up.

## Video seconds are the unit of usage

On submission SignAPI holds a length limit: twice the length expected for your text plus 10 seconds (at least 30, at most 600, and never more than you have available). Set the optional `max_duration_seconds` to choose your own limit. On success the exact delivered duration is deducted and the rest is released; failed and cancelled jobs release everything. Long text is signed sentence by sentence and joined into one video.

If your available balance is below the limit a job needs, submission returns `402 insufficient_credits`.

The usage API reports milliseconds; the console shows seconds.

```bash
curl "https://signapi.fingerdance.ai/v1/usage" -H "Authorization: Bearer $FINGERDANCE_API_KEY"
```

```json
{"unit": "video_millisecond", "balance_ms": 96195876, "reserved_ms": 0, "available_ms": 96195876, "delivered_ms": 3804124, "as_of": 1794853700.2}
```

## Buy more video time

Choose a pack at https://signapi.fingerdance.ai/account/billing, review the amount and video time, and finish checkout on Stripe. The return page shows when the purchase has been credited. If confirmation takes longer, check the order in Billing before retrying. Prices: https://signapi.fingerdance.ai/pricing

<!-- https://signapi.fingerdance.ai/developers/reference -->

# 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).

<!-- https://signapi.fingerdance.ai/developers/errors -->

# Errors and retries

Find recovery steps by HTTP status or error code.

## Recover from an API error

Errors look like `{"error": {"code": "insufficient_credits", "message": "...", "request_id": "req_..."}}`. Read `error.code` for the cause and keep `error.request_id` when you contact support (contact@fingerdance.ai). Use the original idempotency key when retrying a submission whose result you did not receive.

| Status | Code | What to do |
|---|---|---|
| 400 | `invalid_idempotency_key` | Supply an `Idempotency-Key` with 1–128 ASCII letters, numbers, or the characters `_ . : -`. |
| 401 | `unauthorized` | Send a valid Bearer API key. Sign in again if you are using the console. |
| 402 | `insufficient_credits` | Check available credits. Add a pack or lower `max_duration_seconds` before retrying. |
| 403 | `permission_denied`, `organization_unavailable` | Check the key's workspace and permissions. |
| 404 | `not_found` | Check the resource ID and the workspace that owns it. |
| 409 | `idempotency_conflict`, `replay_conflict`, `stream_not_ready` | Reuse the original input with the same key; use a new key for a new request. If the stream is not ready, check the job status first. |
| 410 | `artifact_expired` | Generate a new video if the artifact has expired. Reopen the job for a fresh URL if only the download link expired. |
| 413 | `request_too_large` | Reduce the request body before sending it again. |
| 422 | `invalid_request` | Correct the fields listed in the error response. |
| 429 | `rate_limited`, `queue_limit`, `stream_limit` | Wait for `Retry-After`. Let pending jobs finish or close unused streams if you hit a capacity limit. |
| 503 | `maintenance`, `media_unavailable`, `identity_unavailable`, `payment_unavailable` | Retry temporary failures later with the same idempotency key. |

## Failed jobs

A job that ends `failed` carries `error_code` and is not billed: its whole reservation is released. `text_not_translatable` means the text could not be turned into signs (for example it contains no words); change the text. Other codes are transient: submit again with a new idempotency key.
