Atmee.aiDocs
APIAPI referenceAvatars

Get the portrait

GET
/v1/avatars/{avatarId}/appearance

Returns a presigned URL of the portrait last given. The URL expires after about an hour.

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

Response Body

The portrait file last given, as a presigned URL.

application/json
  1. response
url?string

A presigned download URL of the file last given; null when none was given or it could not be signed.

expiresAt?string

When the URL stops working; GET again for a fresh one.

Formatdate-time
Example Request
curl -X GET 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/appearance'
Example Response
{  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z"}