GET
List contact attachments
Scope:
contacts:contacts.readhttps://api.holded.com/api/v2/contacts/{contactId}/attachmentsReturns the list of file names attached to a contact. Each item is a plain file name string (e.g. `invoice.pdf`). Use the file name to download individual files via the Get attachment endpoint.
Parameters
Path parameters
contactId
stringrequiredContact ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/contacts/{contactId}/attachments"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
json
{
"items": [
"string"
]
}Success responses
200List of attachment file namesapplication/jsonobject
items[]string[]
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Contact not foundapplication/json429Rate limit exceededapplication/json