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. Only the account that created
it can read it.
Scopes: avatars:read or avatars:write read any upload;
generation:write reads portrait, voice and clip uploads (a
clip's inputs and output).
header
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.
uploadId*stringFormat
uuidThe upload.
application/json- response
uploadId*stringFormat
uuidkind*UploadKindValue in
"portrait""voice""knowledge"status*stringValue in
"pending""uploaded""consumed""expired"size?integerBytes received, once uploaded.
Format
int64contentType?stringThe declared type, then the type the file was sent with.
fileName?stringexpiresAt*stringFormat
date-timecurl -X GET 'https://api.atmanity.us/v1/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "kind": "portrait", "status": "pending", "size": 0, "contentType": "string", "fileName": "string", "expiresAt": "2019-08-24T14:15:22Z"}
