Breadcrumbs

[Integrations] Retrieve an attachment

Retrieve content of an attachment.

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

  • HTTP method: GET

  • Parameters:

    • objectId: instance id

    • attachmentFieldId : field id

    • revisionId: file revision id (can be find in attachments list API response)

Example

Bash
 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#'

Response

Bash
file content