Skip to main content
POST
/
v1
/
users
Create a new user
curl --request POST \
  --url https://api.example.com/v1/users \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": {
    "email": "<string>",
    "username": "<string>",
    "role": "SYSTEM",
    "auth_method": "<string>",
    "password": "<string>"
  },
  "send_welcome_email": true
}
'
{
  "data": {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "email": "<string>",
    "username": "<string>",
    "role": "SYSTEM",
    "auth_method": "<string>",
    "password_needs_reset": true,
    "password": "<string>"
  }
}

Body

application/json
user
LocalUserData · object
required
send_welcome_email
boolean
default:true

Response

The newly created user.

data
LocalUser · object
required