Download image attachment

URL

GET https://api.complycube.com/v1/documents/:id/download/:side

Download an existing image attachment.

Headers

NameTypeDescription

Authorization*

string

The API live or test key.

Path parameters

NameTypeDescription

id*

string

The ID of the document.

side*

string

The side of the document to download. Valid values include: 1. front 2. back

Example request

curl -X POST https://api.complycube.com/v1/documents/{:documentId}/download/{:side} \
     -H 'Authorization: <YOUR_API_KEY>'

Example response

{
    "fileName": "front-test.jpg",
    "contentType": "image/jpg",
    "data": "<BASE64_DATA_CONTENT>"
}

Last updated