Download image attachment

Download an image attachment

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

Downloads an existing image attachment.

Path Parameters

Name
Type
Description

id

string

The ID of the document.

side

string

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

Headers

Name
Type
Description

Authorization

string

The API live or test key

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

Example request

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

Last updated