Users
POST /users
Changed onAdds a user to the organization with the given role and sends them an invite email. If the email address already belongs to an Axiom account, Axiom keeps its existing name. API tokens can't assign the owner role.
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesusers|create
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "jane.doe@example.com",
"name": "Jane Doe",
"role": "member"
}Response
Added user.
Example response
{
"email": "john.doe@example.com",
"id": "usr_123456789",
"name": "John Doe",
"role": {
"id": "role_123456789",
"name": "Organization Admin"
}
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info