Skip to main content
POST
/
v2
/
documents
Upload Document
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>"
}

Upload Document

POST request to /v2/documents

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

subAccountId
string

Sub-account ID

Body

application/json
documentType
string
required
isDoubleSided
boolean
required

Response

OK

id
string
required
uploadURLFront
string
required
uploadURLBack
string
required
sessionId
string
required
livenessUrl
string
required
validateLivenessToken
string
required