Upload a User Document
REST
Upload a User Document
Upload a document for a user.
API scope required: users.create
POST
Upload a User Document
Headers
API key required for authentication
Body
application/json
Reference to the user who owns this document
Example:
{ "userLocator": "email:user@example.com" }Type of document
Available options:
id-passport, id-idcard-back, id-idcard-front, id-residency-permit, proof-of-address, proof-of-income, selfie-front, selfie-left, selfie-right Example:
"id-passport"
Base64 encoded document data
Minimum string length:
1Example:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
Document expiration date in YYYY-MM-DD format
Pattern:
^\d{4}-\d{2}-\d{2}$Example:
"2030-12-31"
Response
Document replaced successfully
Unique identifier for the document
Example:
"doc_abc123xyz"
Type of document
Available options:
id-passport, id-idcard-back, id-idcard-front, id-residency-permit, proof-of-address, proof-of-income, selfie-front, selfie-left, selfie-right Example:
"id-passport"
ISO 8601 timestamp when the document was created
Example:
"2024-12-05T10:30:00.000Z"
Document expiration date in YYYY-MM-DD format
Example:
"2030-12-31"

