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.

List all attachments for a record

get

List all attachments for a record

Authorizations
Path parameters
tableIdstringRequired

Table identifier

recordIdstringRequired

Record identifier

Header parameters
AuthorizationstringRequired

Bearer token for authentication

Example: Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjFiNjdjMzE2LWM3YjAtNDY3My1iMmI5LTY3NGMxMDdlMWQ2OCIsICJpYXQiOjE3NTY0NTk4MzcsICJleHAiOjE3NTY0NjM0MzcsICJjdXN0b206dGVhbUlkIjoiNjgxMzM0YjctNmY3OC00NmRhLWE1YjktMDkxMTM3MGExNjU1In0.
Responses
200

200

application/json;charset=UTF-8
get
GET /tables/{tableId}/records/{recordId}/attachments HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
200

200

[ {
  "id" : "a6dbc446-bb77-4411-899d-eaea417cf4af",
  "recordId" : "5b8d7ebe-e25a-49de-9de6-59b3ef6786a6",
  "name" : "document.jpeg",
  "type" : "image/jpeg",
  "size" : 1678186,
  "createdDateTime" : "2025-08-29T09:30:37.659011Z"
} ]

Get link of a specific attachment

get

Get link of a specific attachment

Authorizations
Path parameters
tableIdstringRequired

Table identifier

recordIdstringRequired

Record identifier

attachmentIdstringRequired

Attachment identifier

Header parameters
AuthorizationstringRequired

Bearer token for authentication

Example: Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjQ1OTBmNjNlLTRjMzctNGQ3Ni04MGNjLWRiNDA1MjIyYzVmYSIsICJpYXQiOjE3NTY0NTk4MzcsICJleHAiOjE3NTY0NjM0MzcsICJjdXN0b206dGVhbUlkIjoiZjBhODdjN2ItZGM2Ny00ZmMzLThlYzktODUzZGU4NWNiM2M0In0.
Responses
200

200

application/json;charset=UTF-8
get
GET /tables/{tableId}/records/{recordId}/attachments/{attachmentId} HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
200

200

{
  "link" : "http://attachments-bucket.localhost:53007/attachments/4590f63e-4c37-4d76-80cc-db405222c5fa/c845772f-1efe-455e-8408-f899b2b79b96/sample.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250829T093037Z&X-Amz-SignedHeaders=host&X-Amz-Credential=test%2F20250829%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Expires=5&X-Amz-Signature=077661d3b9916487b919240fc42b42a6a8c27ce5312fa8c3d275c3ef6b7bcbfa"
}

Create an attachment for a record

post

Create an attachment for a record

Authorizations
Path parameters
tableIdstringRequired
recordIdstringRequired
Body
fileanyRequired

The file to upload

Responses
201

201

application/json;charset=UTF-8
Responseobject
post
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
}
201

201

{
  "id" : "679fb0f2-9228-43ea-8244-914733c412d1",
  "recordId" : "e399e1cd-0026-43cf-8541-ce0fcb9a8ebe",
  "name" : "document.jpeg",
  "type" : "image/jpeg",
  "size" : 1678186,
  "createdDateTime" : "2025-08-29T09:30:37.21977Z"
}

Delete an attachment from a record

delete

Delete an attachment from a record

Authorizations
Path parameters
tableIdstringRequired

Table identifier

recordIdstringRequired

Record identifier

attachmentIdstringRequired

Attachment identifier

Header parameters
AuthorizationstringRequired

Bearer token for authentication

Example: Bearer eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjQxNjRhNjgxLWM2ZjEtNDBhOS1hYzIwLTdmMmZjMGI0MTQ2MyIsICJpYXQiOjE3NTY0NTk4MzcsICJleHAiOjE3NTY0NjM0MzcsICJjdXN0b206dGVhbUlkIjoiZGU3ZDAyYjctNmM3Mi00N2ViLTk2OTAtOTZhMDU1MTVjMTEyIn0.
Responses
204

204

No content

delete
DELETE /tables/{tableId}/records/{recordId}/attachments/{attachmentId} HTTP/1.1
Host: api.sandbox.transactionlink.io
Authorization: text
Accept: */*
204

204

No content

Last updated

Was this helpful?