Resolve

Resolves attachment for given avatar & attachment id.

GET /avatars/{AVATAR_ID}/attachments/{ATTACHMENT_ID}

Request

curl -X GET "https://api.loomai.com/v0.5/avatars/{AVATAR_ID}/attachments/{ATTACHMENT_ID}"

Parameter

Transport

Type

Description

redirect

query

boolean

(Optional) 307 Temporary Redirect to attachment storage location if true. Default is false.

Response

On success the endpoint returns HTTP 200 OK as well as a JSON body containing attachment type, name (if applicable, eg. animation / sticker name) & storage location.

If query parameter ?redirect=true has been passed, the endpoint redirects to the attachment's storage location instead.

For details on available attachment types, see Schema > Attachment Type.

{
  "id": int64,
  "type": "string",
  "name": "string",
  "url": "string",
  "updated_at": "string" // ISO-8601 DATETIME
}

Last updated