Skip to main content
POST
Create a document upload URL

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
file_name
string
required

Your name for the file. Use letters, numbers, spaces, dashes, or underscores, and end it in .jpg, .jpeg, .png, .webp, or .pdf. Blaaiz adds a random prefix and returns the result in data.file_name.

Maximum string length: 128
Pattern: ^[a-zA-Z0-9_ -]+\.(jpg|jpeg|png|webp|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

Response

Verification session document upload URL generated successfully.

message
string
required
data
object
required