Get attachment

Gets/downloads an attachment of a record.

Note the trailing filename can be any string, it is used to ensure that browsers download certain file types, like Excel spreadsheets.

Optionally, if preview query parameter is set and equal to TRUE, response headers will be modified to allow for correct embed behaviour to preview attachment file on supported browsers.

Request

GET https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/field/{fieldId}/blob/{blobId}/{filename}

Response

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/field/carknkldta8h4o3/blob/ccwnp64ldta8ds82/Case_20230325_154639_UTC_01_00.xlsx
Next item
Get billing account