Skip to main content
GET
/
api
/
v1
/
media
/
{attachment_id}
/
access
Get Attachment Access Url
curl --request GET \
  --url https://api.example.com/api/v1/media/{attachment_id}/access \
  --header 'Authorization: Bearer <token>'
{
  "download_url": "<string>",
  "expires_in": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

attachment_id
string
required

Query Parameters

expiration_minutes
integer
default:60

URL expiration time in minutes

Required range: 1 <= x <= 1440

Response

Successful Response

download_url
string
required
expires_in
integer
required

URL expiration time in seconds