Skip to main content
GET

Get a contact attachment

Scope:contacts:contacts.read
https://api.holded.com/api/v2/contacts/{contactId}/attachments/{filename}

Downloads a single attachment from a contact. The response body contains the raw file bytes. Use the `Content-Disposition` header to obtain the original file name.

Parameters

Path parameters

contactIdstringrequired

Contact ID (24-char hex ObjectId)

filenamestringrequired

Attachment file name (case-insensitive match)

Request

python
import requests

url = "https://api.holded.com/api/v2/contacts/{contactId}/attachments/{filename}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
"string"

Success responses

200File binary content. The Content-Type header reflects the actual mime type of the stored file (e.g. image/png, application/pdf); files with no identifiable type are served as application/octet-stream.application/octet-stream
string<binary>

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Contact or attachment not foundapplication/json
429Rate limit exceededapplication/json