POST
Upload a KYC document

Authorizations

Authorization
string
header
required

The user's id_token from authentication — the ID token, not the access_token. The program and environment (sandbox/prod) are read from the token.

Path Parameters

applicationId
string
required

The application id from create / get.

Body

application/json
documentType
string
required

Required. A document type from the program's KYC schema.

fileName
string
required

Required. Original filename with extension.

fileBase64
string
required

Required. Base64-encoded file content.

country
string
required

Required. Country of issue (ISO code).

contentType
string
required

Required. MIME type, e.g. application/pdf.

Response

Uploaded

success
boolean
Example:

true

documentUrl
string

Storage URI of the uploaded document.