Skip to content

List attached files of an entity record

GET https://api.copper.com/developer_api/v1/{{entity_type}}/{{entity_id}}/files

This API endpoint lists all the attached files for a given entity type and id, where {{entity_type}} and {{entity_id}} are replaced with the following:

Field Type Details Default
entity_type* string Must be one of: "leads", "people", "opportunities", "companies", "projects"
entity_id* number ID of the entity record

* indicates a required field

Example Requests

List attached files of an existing lead

1
2
3
4
5
curl --location --request GET "https://api.copper.com/developer_api/v1/leads/210110/files/" \
  --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
  --header "X-PW-Application: developer_api" \
  --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
  --header "Content-Type: application/json"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
[
  {
    "id": 2556402,
    "is_deleted": false,
    "file_name": "picture.png",
    "file_size": 3113,
    "content_type": "binary/octet-stream",
    "creator_id": 46748,
    "date_created": 1558049825,
    "date_modified": null
  }
]