Skip to main content

Asset management

Manage your characters, motions, and other assets through the Uthana API. Upload, list, download, and organize your 3D assets programmatically.

Overview​

Asset management covers the full lifecycle of your 3D assets:

  • Characters: Upload and manage 3D character models
  • Motions: List, query, and download animation sequences
  • Assets: Access metadata and file information

Character management​

List your characters​

Retrieve all characters available to your organization.

API_KEY="{{apiKey}}"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "{ characters { id name created updated assets { id filename } } }"
  }'

See the Auto-rig / add a character guide for uploading characters.

Rename a character​

CHARACTER_ID="your-character-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation UpdateCharacter($character_id: String!, $name: String) { update_character(character_id: $character_id, name: $name) { character { id name } } }",
    "variables": { "character_id": "'"$CHARACTER_ID"'", "name": "New name" }
  }'

Delete a character​

Delete a character by setting its deleted flag to true. Built-in characters (like the default character "Tar") cannot be deleted.

CHARACTER_ID="your-character-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation UpdateCharacter($character_id: String!, $deleted: Boolean) { update_character(character_id: $character_id, deleted: $deleted) { character { id name deleted } } }",
    "variables": { "character_id": "'"$CHARACTER_ID"'", "deleted": true }
  }'

See the Download a character guide for downloading characters.

Motion management​

List your motions​

Retrieve all motions available to your organization.

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "{ motions { id name created updated assets { id filename } } }"
  }'

Get a specific motion​

Retrieve detailed information about a specific motion by ID.

MOTION_ID="your-motion-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query GetMotion($id: String!) { motion(id: $id) { id name created updated tags assets { id filename } } }",
    "variables": { "id": "'"$MOTION_ID"'" }
  }'

Rename a motion​

MOTION_ID="your-motion-id"
NEW_NAME="Updated motion name"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation UpdateMotion($motion_id: String!, $name: String) { update_motion(motion_id: $motion_id, name: $name) { motion { id name } } }",
    "variables": { "motion_id": "'"$MOTION_ID"'", "name": "'"$NEW_NAME"'" }
  }'

Delete a motion​

Delete a motion by setting its deleted flag to true. The motion will be marked as deleted and will not appear in API responses or the UI.

MOTION_ID="your-motion-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation UpdateMotion($motion_id: String!, $deleted: Boolean) { update_motion(motion_id: $motion_id, deleted: $deleted) { motion { id name deleted } } }",
    "variables": { "motion_id": "'"$MOTION_ID"'", "deleted": true }
  }'

Favorite a motion​

MOTION_ID="your-motion-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation UpdateMotion($motion_id: String!, $favorite: Boolean) { update_motion(motion_id: $motion_id, favorite: $favorite) { motion { id name } } }",
    "variables": { "motion_id": "'"$MOTION_ID"'", "favorite": true }
  }'

Rate a motion​

Rate a motion with a thumbs up or thumbs down.

MOTION_ID="your-motion-id"

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation RateMotion($motion_id: String!, $score: Int!) { rate_motion(motion_id: $motion_id, score: $score) { motion_rating { score } } }",
    "variables": { "motion_id": "'"$MOTION_ID"'", "score": 1 }
  }'

Clear your rating​

Clearing removes your whole-motion vote rather than saving a dislike. It requires the additive clear_motion_rating API operation, leaves other users' and annotation-specific votes unchanged, and succeeds when repeated.

mutation ClearMotionRating($motion_id: String!) {
  clear_motion_rating(motion_id: $motion_id) { ok }
}

Clients exposing readable feedback values can use rate(id, "like"), rate(id, "dislike") and Python rate(id, None) or JavaScript rate(id, null). Existing integer 1/0 calls remain valid. A server without clear_motion_rating rejects clearing; clients must not silently replace it with a dislike.

Next steps​

Deleting and restoring assets​

update_character and update_motion retain the platform's existing write permissions.

Deletion selects an asset by ID. Its name is descriptive and may change independently. Set deleted: true to soft-delete and deleted: false to restore. Deleting a character preserves motions; deleting a motion preserves separate trims, loops and stitches. Previously shared links stop serving deleted assets. Files already downloaded are unaffected.

Browse assets with ordering and pagination​

Use characters_paged to find characters and motions_paged to find saved motions. Both let you search by name, choose a sort order and work through the results one page at a time. Deleted characters and motions are excluded.

motions_paged includes motions available in Uthana and searches beyond the recent 1,000 motions returned by motions. When a video-generated motion has refined versions, the original version is omitted. These queries search saved names; library search by a description of an action is not supported. Existing characters and motions queries keep their current behavior.

query {
  characters_paged(query: "hero", source: "mine", order: "created_desc", limit: 20) {
    items {
      id
      name
      org_id
      created
      updated
    }
    next_cursor
  }
  motions_paged(query: "walk slow", source: "mine", order: "name_asc", limit: 20) {
    items {
      id
      name
      org_id
      created
      updated
    }
    next_cursor
  }
}

Both queries require you to sign in or authenticate with an API key or OAuth token. Passing null for an optional argument uses the same default as omitting it.

OptionWhat it does
querySearches names for every word you enter, ignoring case. For example, walk slow matches a name containing both words, in either order. Each word must contain at least three consecutive letters or digits. Maximum 200 characters in total. Omit it to include all names.
sourcemine includes your organization's assets; uthana includes shared Uthana examples; all includes both and is the default.
ordercreated_desc puts the newest records first (the default); created_asc puts the oldest first. Use name_asc for A to Z or name_desc for Z to A.
limitMaximum results per page. Accepts an integer from 1 to 100; defaults to 20.
cursorThe next_cursor from the previous response. Omit it for the first page.
methodMotions only. Matches the saved Method tag exactly, ignoring case, such as TextToMotion or VideoToMotion. Accepts 1 to 100 characters. This tag describes how the motion was created; it does not reliably identify a model version.

Names sort ignoring case according to the database's language rules. When names or creation dates are equal, IDs break the tie in the same direction. Results with a missing sort value appear last. Being able to view an asset does not give you permission to edit it. The created and updated fields record when the asset record was created and last changed; neither is a separate upload date.

To get the next page, pass the response's next_cursor as cursor. A null next_cursor means there are no more results. Keep the same account, search filters and sort order; you can change limit. Use the cursor exactly as returned. If it is invalid or you change the search, omit it and start again. Errors for invalid search options identify the option you need to correct.

Access permissions are checked on every request. Results can change between pages if someone adds, renames or deletes an asset. When sorting by name, the next page uses the previous page's last asset to find its position. If that record is permanently deleted or becomes inaccessible, start the search again.