Skip to main content
POST

Authorizations

Authorization
string
header
required

Use your OAuth client credentials to obtain a short-lived Bearer token from POST /oauth/token.

Path Parameters

sessionId
string<uuid>
required

The verification session id returned by the create endpoint.

Body

application/json
filename
string
required

The name Blaaiz stores the document under.

Maximum string length: 191
content_type
enum<string>
required

The media type of the file.

Available options:
image/jpeg,
image/png,
image/webp,
application/pdf
id_doc_type
enum<string>
required

What the document is. UTILITY_BILL and BANK_STATEMENT satisfy the proof-of-address step. Every other type except SELFIE satisfies the documents step. Which types a session accepts depends on its requirement set. A session that includes SELFIE rejects a SELFIE upload, because Blaaiz captures the selfie.

Available options:
PASSPORT,
ID_CARD,
DRIVERS,
RESIDENCE_PERMIT,
UTILITY_BILL,
BANK_STATEMENT,
SELFIE
country
string
required

The country of the document, as an ISO 3166-1 alpha-3 code.

Required string length: 3
file_name
string

The data.file_name value the upload-url endpoint returned. Send this or content_base64, never both.

Maximum string length: 150
Pattern: ^[a-zA-Z0-9_ -]+\.(jpg|jpeg|png|webp|pdf)$
content_base64
string

The file, base64 encoded. The decoded file must be 700 KB or smaller. Send this or file_name, never both.

Response

Verification session document uploaded successfully.

message
string
required
data
object
required