POST
/
users
curl --request POST \
  --url https://api.axiom.co/v2/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jane.doe@example.com",
  "name": "Jane Doe",
  "role": "member"
}'
{
  "email": "john.doe@example.com",
  "id": "usr_123456789",
  "name": "John Doe",
  "role": {
    "id": "role_123456789",
    "name": "Organization Admin"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Object representing a new user creation request

email
string
required

Email address of the new user

Example:

"jane.doe@example.com"

name
string
required

Full name of the new user

Example:

"Jane Doe"

role
string
required

Role to assign to the new user

Example:

"member"

Response

200 - application/json
User

Represents a user in the system

email
string
required

User's email address

Example:

"john.doe@example.com"

id
string
required

Unique identifier for the user

Example:

"usr_123456789"

name
string
required

User's full name

Example:

"John Doe"

role
object
required

Detailed information about a user's role