Skip to main content
GET

List contact attachments

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

Returns 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

contactIdstringrequired

Contact 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/json
object
items[]string[]

Error responses

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