Get a file
curl --request GET \
--url https://api-prod.heliyos.ai/v1/platform/attachments/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.heliyos.ai/v1/platform/attachments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-prod.heliyos.ai/v1/platform/attachments/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"meta": {
"message": "Attachment fetched successfully."
},
"data": {
"_id": "6729c0d4e5f6a7b8c9d0e1f2",
"organizationId": "66a0f1e2d3c4b5a697887766",
"fileName": "sales-playbook.pdf",
"fileSize": 1048576,
"mimeType": "application/pdf",
"url": "https://example-bucket.s3.amazonaws.com/66a0f1e2d3c4b5a697887766/1762248700000-sales-playbook.pdf",
"storageProvider": "S3",
"storageKey": "66a0f1e2d3c4b5a697887766/1762248700000-sales-playbook.pdf",
"description": "How we qualify and price enterprise deals.",
"isKbFile": true,
"relationships": [
{
"objectId": "66a0f1e2d3c4b5a697887766",
"objectType": "organization"
}
],
"metadata": {
"created": {
"at": "2026-11-04T09:35:00.000Z",
"by": "66a0f1e2d3c4b5a697881111"
},
"updated": {
"at": "2026-11-04T09:35:00.000Z",
"by": "66a0f1e2d3c4b5a697881111"
}
}
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}Files
Get a file
Returns one file’s details: name, content type, size, kind and the resources it is attached to. To download the file itself, use Get a file download link.
GET
/
v1
/
platform
/
attachments
/
{id}
Get a file
curl --request GET \
--url https://api-prod.heliyos.ai/v1/platform/attachments/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-prod.heliyos.ai/v1/platform/attachments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-prod.heliyos.ai/v1/platform/attachments/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"meta": {
"message": "Attachment fetched successfully."
},
"data": {
"_id": "6729c0d4e5f6a7b8c9d0e1f2",
"organizationId": "66a0f1e2d3c4b5a697887766",
"fileName": "sales-playbook.pdf",
"fileSize": 1048576,
"mimeType": "application/pdf",
"url": "https://example-bucket.s3.amazonaws.com/66a0f1e2d3c4b5a697887766/1762248700000-sales-playbook.pdf",
"storageProvider": "S3",
"storageKey": "66a0f1e2d3c4b5a697887766/1762248700000-sales-playbook.pdf",
"description": "How we qualify and price enterprise deals.",
"isKbFile": true,
"relationships": [
{
"objectId": "66a0f1e2d3c4b5a697887766",
"objectType": "organization"
}
],
"metadata": {
"created": {
"at": "2026-11-04T09:35:00.000Z",
"by": "66a0f1e2d3c4b5a697881111"
},
"updated": {
"at": "2026-11-04T09:35:00.000Z",
"by": "66a0f1e2d3c4b5a697881111"
}
}
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}{
"message": "<string>",
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}
}In the Heliyos MCP server:
heliyos_files_get.Authorizations
A workspace API key, sent as Authorization: Bearer heliyos_.... Create one in Heliyos under Settings → API keys. A key acts as a workspace admin in the one workspace it was created in.
Path Parameters
The file's id.
Pattern:
^[0-9a-fA-F]{24}$Was this page helpful?

