Upload a verification document
Add one document to a session. Send the bytes one of two ways, never both: file_name names a file you already staged through the upload-url endpoint, and content_base64 carries the bytes inline. Use file_name for every real document, because a request body larger than about 8 KB is rejected at the network edge. An inline document must be 700 KB or smaller after decoding, and a staged file must be 5 MB or smaller. The session must be AWAITING_INPUT. The response is the session, with steps.documents set to SUBMITTED. Merchant KYC must be enabled for your business. Required scope: compliance-kyc:create.
Authorizations
Use your OAuth client credentials to obtain a short-lived Bearer token from POST /oauth/token.
Path Parameters
The verification session id returned by the create endpoint.
Body
The name Blaaiz stores the document under.
191The media type of the file.
image/jpeg, image/png, image/webp, application/pdf 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.
PASSPORT, ID_CARD, DRIVERS, RESIDENCE_PERMIT, UTILITY_BILL, BANK_STATEMENT, SELFIE The country of the document, as an ISO 3166-1 alpha-3 code.
3The data.file_name value the upload-url endpoint returned. Send this or content_base64, never both.
150^[a-zA-Z0-9_ -]+\.(jpg|jpeg|png|webp|pdf)$The file, base64 encoded. The decoded file must be 700 KB or smaller. Send this or file_name, never both.

