Retrieve an attachment

Download the content of a file attached to an instance, using its revision ID.

1 min read

Retrieve content of an attachment.

Send the request

Review the endpoint and parameters:

  • HTTP URL: https://<your-instance>.yooi.io/api/attachment/{objectId}/{attachmentFieldId}/{revisionId}
  • HTTP method: GET

Run the example

Use this cURL command:

curl -X 'GET' \
  'https://<your-instance>.yooi.io/api/attachment/cc416276-73c4-4cb8-a090-d101422f36aa/51842f47-311c-47aa-90ea-947eb4722417/643cc691-bb77-439d-a7ca-cc66ef4fde57' \
  -H 'Authorization: Bearer #yourtoken#'

Review the response

file content

Read more

Related articles

Was this page helpful?