Attachments
This API allows users to retrieve attachments associated with a specific record in a table. Attachments can include various types of files such as documents, images, and other resources uploaded to the system.
Create an attachment for a record
The file to upload
201
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
POST /tables/{tableId}/records/{recordId}/attachments HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 13
{
"file": null
}
{
"id": "94c8aff7-18d6-42f3-8f79-5143c7f23e0f",
"recordId": "648fac6b-f7a7-4908-b9d1-7cc5af4c289c",
"name": "document.jpeg",
"type": "image/jpeg",
"size": 1678186,
"createdDateTime": "2025-09-01T14:39:20.839477Z"
}
List all attachments for a record
Table identifier
Record identifier
Bearer token for authentication
Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6ImQ3NmVlOTI2LTJhNDYtNGIzMy04NDIzLTczNjFiZDM5YmU0MyIsICJpYXQiOjE3NTY3Mzc1NjIsICJleHAiOjE3NTY3NDExNjIsICJjdXN0b206dGVhbUlkIjoiYTlmYmY0ZGMtZGEzNS00YzIzLWE1YjItMTFlOTQ0NzNiZjBlIn0.
200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
GET /tables/{tableId}/records/{recordId}/attachments HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
[
{
"id": "99f59cfa-d992-4bb4-8739-79224ccb5ee9",
"recordId": "d4e2e3b7-fd71-4ee8-adb0-d0e69e0cf965",
"name": "document.jpeg",
"type": "image/jpeg",
"size": 1678186,
"createdDateTime": "2025-09-01T14:39:22.338552Z"
}
]
Get link of a specific attachment
Table identifier
Record identifier
Attachment identifier
Bearer token for authentication
Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6ImU5ZjhhZTBmLTQ3NmItNDYzMS1hNTNmLWIzZDIyM2M3ZTcyNyIsICJpYXQiOjE3NTY3Mzc1NjEsICJleHAiOjE3NTY3NDExNjEsICJjdXN0b206dGVhbUlkIjoiODM4MzA5NDAtMzRjNy00ZjZiLWIwZTUtNWE5ZDE5ZmM4ZTUwIn0.
200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
GET /tables/{tableId}/records/{recordId}/attachments/{attachmentId} HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
{
"link": "http://attachments-bucket.localhost:51847/attachments/e9f8ae0f-476b-4631-a53f-b3d223c7e727/27f847ed-57df-45a8-945c-6738ebfef5a8/sample.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250901T143921Z&X-Amz-SignedHeaders=host&X-Amz-Credential=test%2F20250901%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Expires=5&X-Amz-Signature=87564431e8320cee7a070e53fdd2c6396782c1b72e67068dd984b6bcb0d819b7"
}
Delete an attachment from a record
Table identifier
Record identifier
Attachment identifier
Bearer token for authentication
Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjY2NGExOGQ5LWIwMzgtNDIyOC05ZDhlLTA2OGQ2ZTI1NTljMyIsICJpYXQiOjE3NTY3Mzc1NjIsICJleHAiOjE3NTY3NDExNjIsICJjdXN0b206dGVhbUlkIjoiNTI0NmIxNDItODZiMC00M2M1LTgyYzctNTVlZjJiZjkzMWZjIn0.
204
No content
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
DELETE /tables/{tableId}/records/{recordId}/attachments/{attachmentId} HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
No content
Last updated
Was this helpful?