List 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.
itemslists the current version's takes and the serving take;versions=alladds every older version's.versionsalways lists every version, oldest first, with what going back to it restores.- Pick one with
PUT /v1/avatars/{avatarId}/selected_candidate. WithseedSelection: auto, the first completed take of the current version is picked for you. seedis informational: the same seed does not reproduce a capture.
X-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.
avatarId*stringuuidversions?stringWhich takes items lists. current (the default) is the current version's takes and the serving one; all adds every older version's.
"current""current""all"The candidates, oldest first, with presigned preview URLs.
application/json- response
items*array<>versions?array<>Every version, oldest first.
servingCandidateId?stringuuidselectedCandidateId?stringThe picked candidate. The avatar serves it once its config is built, a few seconds after the pick.
uuidgeneration*integerThe generation of the current version's takes (informational).
seedSelection*string"auto""manual"selectionRequired*booleanManual mode and a completed candidate of the current version is waiting to be promoted.
rebuilding*booleanA candidate serves while a newer version is still being built.
warning?stringSet when many candidates have been tried for one image and voice pair; usually the pair itself does not work.
curl -X GET 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/candidates'{ "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"}Get an upload GET
Returns the upload's status: pending until the file arrives, then uploaded (usable once), consumed once a create or replace used it, or expired an hour after it was created.
Capture more candidates POST
Captures count more candidates of a v2 avatar from its current inputs, without preprocessing again.

