POST
Returns a short-lived presigned URL for a verification document. One endpoint, two modes — the body decides which. For {customerId}, use application.customerId from GET /v2/applications. For a new application it’s the same value as applicationId. The id must belong to the signed-in user.
Use this for every schema field with kyc_type: "documentUrls". It’s three calls:1. Presign. Send collection (kyc for a KYC form, kyb for a KYB form), the field’s key as documentType, and the file’s contentType:
documentType must be the schema field’s key. The file is stored under it, so presign separately for each field and submit each file only as that field’s answer.Always send contentType. Its subtype becomes the file’s extension (application/pdf → .pdf, image/jpeg → .jpeg, image/png → .png), and the submit checks that extension against the field’s formats. Without contentType the file has no usable extension and the submit rejects it.The response:
2. Upload. PUT the file’s bytes to uploadUrl with the same Content-Type header. Don’t send your bearer token on this call; the URL carries its own authorisation.3. Submit. Answer the field with s3://<bucket>/<key> from the presign response, in Submit KYC data or Submit KYB data:
The upload doesn’t check the file’s size. Before uploading, check it against the field’s validation.minFileSize and validation.maxFileSize, which are in kilobytes (5120 is 5 MB).For a field with multiple: true, presign and upload each file separately, then submit an array of s3:// URLs.
The URLs expire. expiresInSeconds is the URL lifetime in seconds, as a positive whole number. Zero, negative and fractional values are rejected with a 400. Values from 1 to 59 are raised to 60, values above 3600 are lowered to 3600, and the default is 900. Request the presign right before the transfer.
Fields with kyc_type: "documents" don’t use this endpoint, and they can’t currently be submitted through the API. See Answer encodings.

Authorizations

Authorization
string
header
required

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

Path Parameters

customerId
string
required

The application's customerId from GET /v2/applications. For a new application it is the same value as applicationId.

Body

application/json
collection
enum<string>

Upload: required. kyc for a KYC form, kyb for a KYB form. Download by key: required.

Available options:
kyc,
kyb
documentType
string

Upload: required. The key of the schema field the file answers, e.g. confirmationOfResidenceDocument. The file is stored under it.

contentType
string

Upload: send it. The MIME type the file will be PUT with, e.g. application/pdf. Its subtype becomes the stored file's extension (application/pdf → .pdf, image/jpeg → .jpeg), which the submit checks against the field's formats. Defaults to application/octet-stream, which no field accepts.

applicationId
string

Download: required. The application the document belongs to.

s3Url
string

Download: the document's storage URL, s3://<bucket>/<key>, as submitted in the form. Use this or collection + key.

key
string

Download: the document's storage key. Send with collection.

expiresInSeconds
integer

URL lifetime in seconds, as a positive whole number. Zero, negative and fractional values are rejected with a 400. Values from 1 to 59 are raised to 60, values above 3600 are lowered to 3600, and the default is 900.

Required range: x >= 1

Response

Presigned URL

success
boolean
Example:

true

data
object