Upload Onboarding Document File by ID
POST/v1/users/onboardings/:id/documents
Upload onboarding documents (up to 25 MiB per file). Provide one of the following document combinations:
<ul>
<li>Provide selfie, document_front, document_back and document_file_type.</li>
<li>Provide selfie and document_id.</li>
</ul>
Submitting all required documents starts onboarding processing; the final result is asynchronous.
If you have submitted a liveness video for this onboarding, also provide document_front as a JPEG or PNG image up to 5 MiB, including when using document_id. This image is required to compare the person in the video with the identity document. A missing or incompatible image prevents processing from starting; correct it while the onboarding is pending.
Request
Path Parameters
Onboarding ID.
Header Parameters
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
UUID (v4) of the product that the request should use. Send it explicitly when the authenticated user has more than one product or when the integration must select a specific product. If omitted and the endpoint does not require it, the API uses the authenticated user's default product.
UUID (v4) of the user on whose behalf the request should run within the selected product. If omitted, the request runs as the authenticated user. Requires x-product-uuid.
Possible values: [pt-BR, en-US]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
- multipart/form-data
Body
required
Possible values: [rg, cnh]
Document type specified for document_front and document_back. Required when not using document_id. Possible values: rg, cnh.
Document ID for digital identity validation. Requires selfie. If a liveness video has been submitted, document_front is also required for face comparison.
Front side of the document. Required when document_id is not provided or a liveness video has been submitted. For comparison with a submitted video, provide JPEG or PNG up to 5 MiB.
Back side of the document. Required when document_id is not provided.
User selfie. Always required.
Proof of address document. Optional.
Responses
- 200
- 400
- 401
- 422
The file upload returned successfully.
If any required params are missing or has invalid format or type.
User authentication failed.
If any required params are missing or has invalid format or type.