Skip to navigation

List files attached to a lead

View as Markdown

List the files on a lead, newest first (by date_created). This includes files attached to the lead directly, and attachments of the lead’s emails, notes, SMS, WhatsApp messages and opportunities. last_object_type and last_object_id say where each file was most recently attached.

Returns 403 if you can’t see the lead, and 404 if it doesn’t exist.

Authentication

AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer

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

Path parameters

idstringRequired

ID of the lead, e.g. lead_70jZ5hiVt5X31MZ3vJ0R0GJMqJEihkoF7TtSVFbN2ty.

Query parameters

_limitintegerOptional<=100Defaults to 100
Number of results to return.
_skipintegerOptional<=10000Defaults to 0
Number of results to skip before returning, for pagination.
_fieldsstringOptional

Comma-separated list of fields to include in the response.

Response

Successful response
datalist of objects
The results on this page.
has_moreboolean
Whether more results exist after this page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error