Skip to main content
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": "[email protected]",
  "login": "john"
}
'
{
  "status": "ok",
  "token": "db80789b-0ad7-0690-035a-fd2c42531e87"
}

Authorizations

X-Bunker-Token
string
header
required

Root access token for Databunker API

Body

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.

email
string<email>

User email (unique, creates search index)

phone
string

User phone number (unique, creates search index)

login
string

User login name (unique, creates search index)

firstName
string

User first name

first
string

Alternative field for first name

lastName
string

User last name

last
string

Alternative field for last name

Response

User created successfully

status
enum<string>
required
Available options:
ok
Example:

"ok"

token
string<uuid>

Unique user token (pseudonymized identity)