POST
/
users
Create a new user
curl --request POST \
  --url https://backendapi.corbado.io/v2/users \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fullName": "Jane Doe",
  "status": "pending",
  "explicitWebauthnID": "<string>"
}'
{
  "userID": "usr-4693224802260150919",
  "fullName": "Jane Doe",
  "status": "pending",
  "explicitWebauthnID": "<string>",
  "updated": "<string>",
  "updatedMs": 123
}

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Body

application/json
status
enum<string>
required
Available options:
pending,
active,
disabled
fullName
string
Example:

"Jane Doe"

explicitWebauthnID
string

For Corbado Connect projects, the webauthnID can be explicitly set for a user

Response

User has been created.

userID
string
required
Example:

"usr-4693224802260150919"

status
enum<string>
required
Available options:
pending,
active,
disabled
updated
string
required
updatedMs
integer
required
fullName
string
Example:

"Jane Doe"

explicitWebauthnID
string