Skip to main content
GET
/
attachments
/
{id}
/
download
cURL
curl --request GET \
  --url https://api.useanima.sh/v1/attachments/{id}/download \
  --header 'Authorization: Bearer <token>'
{
  "url": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Path Parameters

id
required

Unique attachment identifier

Pattern: ^[0-9a-z]+$

Response

200 - application/json

OK

Pre-signed download URL for an attachment

url
string<uri>
required

Pre-signed URL for downloading the attachment

expiresAt
string<date-time>
required

Timestamp when the download URL expires