Hi team!
According to List all Files and Links endpoint from Freshsales, it should return the temporary URL for the attachments, but I’m only getting like this:
GET:
https://domain.myfreshworks.com/crm/sales/api/deals/16001435608/document_associations
{
"documents": [
{
"id": 16000151188,
"url": "/documents/16000151188",
"thumbnail_url": null,
"name": "nicolas.jpg",
"is_shared": true,
"content_file_size": 442796,
"content_content_type": "image/jpeg",
"content_updated_at": "2022-06-24T14:19:40-04:00",
"content_file_size_readable": "432.42 KB",
"created_at": "2022-06-24T14:19:40-04:00",
"is_attached": false,
"creater_id": 16000035571
},
{
"id": 16000151176,
"url": "/documents/16000151176",
"thumbnail_url": null,
"name": "PowerBiDeskManual.pdf",
"is_shared": true,
"content_file_size": 719705,
"content_content_type": "application/pdf",
"content_updated_at": "2022-06-24T14:14:14-04:00",
"content_file_size_readable": "702.84 KB",
"created_at": "2022-06-24T14:14:14-04:00",
"is_attached": false,
"creater_id": 16000035571
}
],
"users": [
{
"id": 16000035571,
"display_name": "Samuel Pares",
"email": "samuel@loupen.com.br",
"is_active": true,
"work_number": null,
"mobile_number": null
}
],
"document_associations": [
{
"id": 16000208857,
"created_at": "2022-06-24T14:19:40-04:00",
"attachable": {
"type": "document",
"id": 16000151188
},
"creater_id": 16000035571
},
{
"id": 16000208845,
"created_at": "2022-06-24T14:14:14-04:00",
"attachable": {
"type": "document",
"id": 16000151176
},
"creater_id": 16000035571
}
],
"meta": {
"total_pages": 1,
"total": 2
}
}
How can I get the correct URL?