cURL
curl --request POST \ --url https://api.avenia.io:8443/v2/v2/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "documentType": "<string>", "isDoubleSided": true } '
{ "id": "<string>", "uploadURLFront": "<string>", "uploadURLBack": "<string>", "sessionId": "<string>", "livenessUrl": "<string>", "validateLivenessToken": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sub-account ID
OK