Create User
Creates a new end user in VaultsPay.
POST/v1/users
Body parameters
address sub-fields
Request
curl -X POST https://api.vaultspay.ae/v1/users \
-H "Authorization: Bearer sk_test_yourApiKeyHere" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
-d '{
"email": "ali@example.com",
"first_name": "Ali",
"last_name": "Hassan",
"mobile": "+971501234567",
"date_of_birth": "1993-05-14",
"nationality": "AE",
"address": {
"line1": "Sheikh Zayed Road",
"city": "Dubai",
"country": "AE"
}
}'Response
201 Created
{
"id": "usr_01HX71YM6FJ3A8W7T5K6NRB2DN",
"object": "user",
"email": "ali@example.com",
"first_name": "Ali",
"last_name": "Hassan",
"mobile": "+971501234567",
"date_of_birth": "1993-05-14",
"nationality": "AE",
"kyc": { "status": "pending", "level": "basic" },
"status": "active",
"created_at": "2026-04-24T14:52:03.182Z"
}Errors
| HTTP | Code | Description |
|---|---|---|
| 400 | invalid_email | email is malformed. |
| 400 | invalid_phone | mobile is not in E.164 format. |
| 409 | duplicate_email | An existing user already has that email. |
| 422 | validation_failed | One or more fields are missing or invalid. |