curl --request POST \
--url http://localhost:3000/v1/user \
--header 'Content-Type: application/json' \
--header 'X-Bunker-Token: <api-key>' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "user@example.com",
"login": "john"
}
'{
"status": "ok",
"token": "db80789b-0ad7-0690-035a-fd2c42531e87"
}User
Create a new user record
Creates a new encrypted user record. Databunker extracts login, phone, and email from the request
and builds hashed indexes for lookup. These values must be unique across all users.
POST
/
v1
/
user
curl --request POST \
--url http://localhost:3000/v1/user \
--header 'Content-Type: application/json' \
--header 'X-Bunker-Token: <api-key>' \
--data '
{
"firstName": "John",
"lastName": "Doe",
"email": "user@example.com",
"login": "john"
}
'{
"status": "ok",
"token": "db80789b-0ad7-0690-035a-fd2c42531e87"
}Body
application/jsonapplication/x-www-form-urlencoded
User data can contain any additional fields. The email, phone, and login fields are extracted and indexed for lookup. At least one indexed field is recommended.