API reference
API overview
The ways a program can work with AnimSync, how to sign in, how changes and errors work, and every call there is.
Everything the AnimSync website shows and changes in a project goes through the same API your own programs can call. There are three ways in:
| Way in | Use it for | How it signs in |
|---|---|---|
| Bridge's local API | A tool on an artist's computer: a Maya shelf, an exporter, a pipeline script | The person allows the tool once in AnimSync Bridge. The tool never holds an AnimSync token |
| REST, on these pages | A server, a build machine or a script of your own | A token made on the Connect page |
| MCP | An AI client such as Claude | The browser, or a token |
To be told when something happens, see Events and webhooks.
Address
Calls go to your AnimSync server, under /api. On Cloud that is https://cloud.animsync.app/api, or your organisation's own address. Requests and answers are JSON, except files.
curl https://cloud.animsync.app/api/projects \
-H "Authorization: Bearer $ANIMSYNC_TOKEN"
Sign in
Send Authorization: Bearer animsync_…. A token belongs to a person, reaches one project, and carries capabilities:
- read: every
GET. - write: every other call that is not about files.
- publish: uploading files and publishing versions.
A token never does more than its person may do in the project. Each call below names the token capability and the least project role it needs. The roles, from least to most, are viewer, contributor, lead and admin. How to make a token is in Tokens and consent.
A custom integration has a token of its own, with the integration capability: it reads the project and writes its own documents.
Creating projects, accounts, sign-in, billing and making tokens need a person signed in on the website. No token can do them. The demo has no tokens.
Changing something
Most items carry a revision that goes up with every change. To change or archive one, send the revision you read in If-Match:
curl -X PATCH https://cloud.animsync.app/api/requirements/$ID \
-H "Authorization: Bearer $ANIMSYNC_TOKEN" \
-H "Content-Type: application/json" \
-H "If-Match: 3" \
-d '{ "name": "Walk forward" }'
When somebody else changed it first, the answer is 409 revision_conflict with the current item in details. Read it, apply your change again, and send the new revision. Without If-Match the answer is 428 precondition_required.
In a PATCH send only what changes. Items are archived rather than deleted, and can be restored.
Files
Publishing a file takes two calls. Upload the bytes to POST /api/integrations/v1/blobs, then send POST /api/integrations/v1/publish with the file's SHA-256. Both are safe to repeat. The animsync publish command does it for you. See Assets and versions.
Errors
An error is { "error": "<code>", "message": "…", "details"?: … }. The message is written for people; check the code.
| Status | Code | Meaning |
|---|---|---|
| 400 | validation | The request is not valid. details says which fields |
| 401 | unauthenticated | No token, or one that ended |
| 403 | forbidden | The token or the role does not allow this |
| 403 | lead_required | Only a lead or admin may set this field |
| 403 | token_paused | The token archived or changed too much in a few minutes. A project admin lets it continue |
| 403 | connection_ended | An admin ended this token's access to the project |
| 404 | not_found | It does not exist, or it is in a project you cannot see |
| 409 | revision_conflict | Somebody else changed it first |
| 409 | archived | It is archived. Restore it first |
| 422 | rule_violation | The project's rules do not allow it, for example a sequence that loops back on itself |
| 428 | precondition_required | Send If-Match |
All calls
| Page | Calls | What is there |
|---|---|---|
| Projects and people | 38 | Projects, their members, what happened in them, and the work waiting for you. |
| Characters and skeletons | 36 | Characters, skeletons, skeletal meshes and the bone maps between skeletons. |
| Animation sets and requirements | 44 | Animation sets, the requirements in them, how requirements relate, and the core poses they share. |
| Blendspaces, state machines, layers and depth | 37 | What is inside a blendspace, a collection or a state machine, the layer interfaces animations play on, and the depths (stances, gaits) of a state machine. |
| Assets and versions | 34 | Assets, the requirements they fulfil, their versions and files, and how publishing works. |
| Review | 31 | Review targets, notes and drawings, drafts, verdicts, reviewers and the review settings of a project. |
| References and tags | 25 | Reference files and links on sets, requirements and characters, the tags of a project, and external ids. |
| Automation | 21 | Automation jobs, rules, programs and runners, and the calls a runner makes. |
| Runtime captures | 10 | Captures recorded in the game, checked against the plan. |
| Costs and time | 15 | Rates, time entries and what animations cost. Switched off in a project until an admin switches it on. |
| Integrations and issue trackers | 27 | Which provider a project uses, custom integrations and their documents, and links to issues in a tracker. |
| Source control and discovery | 41 | Connections to source control, the files they follow, and files found on workstations. |
| Storage | 14 | Where a project's files are stored and how much they take up. |