Skip to main content
GET
/
api
/
v1
/
files
/
{id}
/
download
Download file directly by attachment ID
curl --request GET \
  --url https://api.example.com/api/v1/files/{id}/download \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 400,
  "message": "Validation failed",
  "errors": [
    {
      "code": "invalid_type",
      "message": "Expected string, received number",
      "path": [
        "email"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Response

File stream