Database Attachments

Download an attachment

GET
/api/records/{country}/{key}/files/{file_id}

Returns the attachment metadata, including the download_link of the file.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /oauth2/token (valid for 300 seconds).

In: header

Path Parameters

country*string

Lowercase ISO country code where the record is stored. One REST API instance serves one country (for https://se-restapi-mt-01.api.incountry.io it is se).

key*string

Record key (record_key) of the record.

file_id*string

Identifier of the attachment.

Response Body

application/json

curl -X GET "https://example.com/api/records/se/d1c2e12cfeababc8b95daf6902e210b1/files/5416a334-6ce6-4e3b-9a0d-464cb417c094"
{  "file_id": "string",  "filename": "string",  "hash": "string",  "mime_type": "string",  "size": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "download_link": "string"}