Atmee.aiDocs
APIAPI referenceAvatars

List candidates

GET
/v1/avatars/{avatarId}/candidates

Lists a v2 avatar's candidates and versions. A candidate (a take) is one capture of the avatar's lip sync and motion, with a short talking preview to compare. A version is one set of capture inputs: the portrait, the voice sample and the preview message.

  • items lists the current version's takes and the serving take; versions=all adds every older version's.
  • versions always lists every version, oldest first, with what going back to it restores.
  • Pick one with PUT /v1/avatars/{avatarId}/selected_candidate. With seedSelection: auto, the first completed take of the current version is picked for you.
  • seed is informational: the same seed does not reproduce a capture.

Authorization

headerX-Api-Key<token>

Your secret API key (sk_atmee_...; older keys start sk_live_), sent as X-Api-Key. Keep it on your server and never send it to a browser.

Path Parameters

avatarId*string
Formatuuid

Query Parameters

versions?string

Which takes items lists. current (the default) is the current version's takes and the serving one; all adds every older version's.

Default"current"
Value in"current""all"

Response Body

The candidates, oldest first, with presigned preview URLs.

application/json
  1. response
items*array<>
versions?array<>

Every version, oldest first.

servingCandidateId?string
Formatuuid
selectedCandidateId?string

The picked candidate. The avatar serves it once its config is built, a few seconds after the pick.

Formatuuid
generation*integer

The generation of the current version's takes (informational).

seedSelection*string
Value in"auto""manual"
selectionRequired*boolean

Manual mode and a completed candidate of the current version is waiting to be promoted.

rebuilding*boolean

A candidate serves while a newer version is still being built.

warning?string

Set when many candidates have been tried for one image and voice pair; usually the pair itself does not work.

Example Request
curl -X GET 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/candidates'
Example Response
{  "items": [    {      "candidateId": "10f4deb6-fd4e-4907-a47e-355caf6e449d",      "generation": 0,      "versionId": "string",      "current": true,      "restorable": true,      "seed": 0,      "status": "pending",      "serving": true,      "previewUrl": "http://example.com",      "previewExpiresAt": "2019-08-24T14:15:22Z",      "userFeedback": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "versions": [    {      "versionId": "string",      "current": true,      "serving": true,      "restorable": true,      "takes": 0,      "createdAt": "2019-08-24T14:15:22Z",      "portraitUrl": "http://example.com",      "voiceSampleUrl": "http://example.com",      "previewMessage": "string",      "language": "string"    }  ],  "servingCandidateId": "908e27ac-861b-45dc-ab30-d9e3b56dc291",  "selectedCandidateId": "ecabe377-180f-4e15-820f-e34d12b31008",  "generation": 0,  "seedSelection": "auto",  "selectionRequired": true,  "rebuilding": true,  "warning": "string"}