Create or Update User
Create or update a user and their personal data by user locator. If the user doesn’t exist, they will be created.
API scope required: users.create
Headers
API key required for authentication
Path Parameters
A user locator can be of the format:
email:<email>userId:<userId>phoneNumber:<phoneNumber>twitter:<handle>x:<handle>
Body
Optional user details including name, date of birth, and country of residence
{
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1990-01-15",
"countryOfResidence": "US"
}Optional KYC data for identity verification
{
"nationality": "US",
"addressOfResidence": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "New York",
"stateOrRegion": "NY",
"postalCode": "10001"
},
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"identityDocument": {
"type": "passport",
"number": "AB123456",
"issuingCountryCode": "ES"
}
}Optional verification timestamps.
{
"idVerificationTimestamp": "2024-01-15T10:30:00Z",
"livenessVerificationTimestamp": "2024-01-15T10:32:00Z"
}Optional due diligence information for compliance purposes
- Option 1
- Option 2
{
"employmentStatus": "full-time",
"sourceOfFunds": "salary-disbursement",
"industry": "financial-institution",
"estimatedYearlyIncome": "income-50k-100k"
}Response
User updated
Whether user details have been provided
true
Whether KYC data has been provided
false
Whether due diligence data has been provided
false
Whether verification history has been provided
false
User's email address
"john.doe@example.com"
User's phone number
"+1234567890"
Unique user identifier
"usr_1234567890"
List of accepted legal documents
{
"type": "crossmint-privacy-policy",
"acceptedAt": "2023-01-01T00:00:00.000Z",
"isValidVersion": true
}
