Docs

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 inUse it forHow it signs in
Bridge's local APIA tool on an artist's computer: a Maya shelf, an exporter, a pipeline scriptThe person allows the tool once in AnimSync Bridge. The tool never holds an AnimSync token
REST, on these pagesA server, a build machine or a script of your ownA token made on the Connect page
MCPAn AI client such as ClaudeThe 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:

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.

StatusCodeMeaning
400validationThe request is not valid. details says which fields
401unauthenticatedNo token, or one that ended
403forbiddenThe token or the role does not allow this
403lead_requiredOnly a lead or admin may set this field
403token_pausedThe token archived or changed too much in a few minutes. A project admin lets it continue
403connection_endedAn admin ended this token's access to the project
404not_foundIt does not exist, or it is in a project you cannot see
409revision_conflictSomebody else changed it first
409archivedIt is archived. Restore it first
422rule_violationThe project's rules do not allow it, for example a sequence that loops back on itself
428precondition_requiredSend If-Match

All calls

PageCallsWhat is there
Projects and people38Projects, their members, what happened in them, and the work waiting for you.
Characters and skeletons36Characters, skeletons, skeletal meshes and the bone maps between skeletons.
Animation sets and requirements44Animation sets, the requirements in them, how requirements relate, and the core poses they share.
Blendspaces, state machines, layers and depth37What 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 versions34Assets, the requirements they fulfil, their versions and files, and how publishing works.
Review31Review targets, notes and drawings, drafts, verdicts, reviewers and the review settings of a project.
References and tags25Reference files and links on sets, requirements and characters, the tags of a project, and external ids.
Automation21Automation jobs, rules, programs and runners, and the calls a runner makes.
Runtime captures10Captures recorded in the game, checked against the plan.
Costs and time15Rates, time entries and what animations cost. Switched off in a project until an admin switches it on.
Integrations and issue trackers27Which provider a project uses, custom integrations and their documents, and links to issues in a tracker.
Source control and discovery41Connections to source control, the files they follow, and files found on workstations.
Storage14Where a project's files are stored and how much they take up.