Query parameters
| Parameter | Description | |
|---|---|---|
objectIdstring |
optional | Object Id is required |
objectTypestring |
optional | Object Type is optional. For Hubspot value must be one of CONTACT, TICKET, COMPANY, DEAL. Required to list Hubspot attachments. |
Header parameters
| Parameter | Description | |
|---|---|---|
Authorizationstring |
optional | Replace the API_Key placeholder with your actual API key. |
Request body
{
"resource": "{{resource-id}}",
"resourceType": "folder",
"source": "HUBSPOT",
"objectType": "CONTACT",
"objectId": "51"
}Example request
curl --request GET \ --url 'https://api.cloudfiles.io/v1/attachments?objectId=string&objectType=string' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header 'authorization: Bearer API_Key' \ --data '"{\n \"resource\": \"{{resource-id}}\",\n \"resourceType\": \"folder\",\n \"source\": \"HUBSPOT\",\n \"objectType\": \"CONTACT\",\n \"objectId\": \"51\"\n}"'
Response body
[
{
"id": "att_123",
"type": "external",
"objectId": "deal_456",
"objectType": "hubspot_deal",
"createdAt": "2026-07-05T10:00:00Z",
"createdBy": "usr_1"
},
{
"id": "att_124",
"type": "internal",
"objectId": "fld_789",
"objectType": "folder",
"createdAt": "2026-07-06T11:00:00Z",
"createdBy": "usr_2"
}
]