Create user
cURL
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" } }
The access token received from the authorization server in the OAuth 2.0 flow.
Object representing a new user creation request
Email address of the new user
"jane.doe@example.com"
Full name of the new user
"Jane Doe"
Role to assign to the new user
"member"
User
Represents a user in the system
User's email address
"john.doe@example.com"
Unique identifier for the user
"usr_123456789"
User's full name
"John Doe"
Detailed information about a user's role
Show child attributes
Was this page helpful?