Skip to main content

Get Attachments

Get Attachments​

Get files for a candidate, contact, organization, job, or deal.

Request​

Send your access token in the Authorization: Bearer your_access_token header.

ParameterLocationTypeDescription
slugPathstringSlug of the candidate, contact, organization, job, or deal.
GET /v1/attachment/candidate_61e4b08a7c23d95f1046

Response​

200
{
"related_entity": {"slug": "candidate_61e4b08a7c23d95f1046"},
"total": 2,
"data": [
{
"file_name": "portfolio.pdf",
"size_bytes": 184320,
"content_type": "application/pdf",
"uploaded_at": "2026-09-26T10:30:00.000Z",
"file_link": "https://api.atzcrm.com/v1/file/public/45f193bd0a6845e1ae1c9f9c9ef7a230%3A579b49ab737e49ad84ad75eb2e65b9a5"
},
{
"file_name": "profile.jpg",
"size_bytes": 53248,
"content_type": "image/jpeg",
"uploaded_at": "2026-09-25T08:15:00.000Z",
"file_link": "https://api.atzcrm.com/v1/file/public/52ee00db43d44f8caf2a768c956ced32%3Ab9d7a9f6244e464a8ce2c73595d2aa2a"
}
],
"errors": []
}

An empty list returns "total": 0, "data": [], and "errors": [].

400
[
{
"field_name": "slug",
"error_message": "slug must be at most 80 characters"
}
]
401
{"message": "Missing Bearer token in the header"}
404
{"message": "Record not found"}
502
{"message": "Could not fetch attachments"}