Document Operations

Show/download attachment

Changed on

<small>Requires an API token with the Document Reader role.</small>

Returns the details of a single attachment of the given document.

The download_url field of the response contains a temporary URL that can be used to fetch the file content. The URL is pre-authenticated - i.e. it can be requested without sending any additional HTTP headers.

Note that the download_url will expire a short time after the response is returned. If the URL has expired, this endpoint can be requested again to obtain a new download_url.

get/documents/{document}/attachments/{attachment}

Request

  • Base URL
    https://app.fynk.com/v1/api
  • URL
    https://app.fynk.com/v1/api/documents/{document}/attachments/{attachment}
  • Auth
    HTTP bearer

Path parameters

documentstring required

The document UUID

attachmentstring required

The attachment UUID

Response

AttachmentResource

Example response

{
  "data": {
    "uuid": "c3f8ca57-b1a4-4560-b3fe-5f3fffb333dd",
    "sha256": "697651f6ceea8a931289ff64cb62f78ceea5d36f7e84590fe9d5920b2dce52cf",
    "file_name": "Appendix_A.pdf",
    "file_size": 544600,
    "mime_type": "application/pdf",
    "download_url": "https:..."
  }
}

Changes