Add User

POST {{baseUrl}}/users

Add user to the organization with given role if not exists. Returns the user object in response. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Request Body

{"email"=>"<string>", "role"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;5e9c204dbde1298f6bcb5ef2&quot;,&quot;first_name&quot;:&quot;Example&quot;,&quot;last_name&quot;:&quot;User&quot;,&quot;username_for_display&quot;:&quot;user&quot;,&quot;email&quot;:&quot;user@example.com&quot;,&quot;contact&quot;:{&quot;dial_code&quot;:&quot;&quot;,&quot;phone_number&quot;:&quot;&quot;},&quot;secondary_emails&quot;:null,&quot;email_verified&quot;:false,&quot;time_zone&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;bio&quot;:&quot;&quot;,&quot;notification_rules&quot;:[{&quot;type&quot;:&quot;Email&quot;,&quot;time&quot;:0},{&quot;type&quot;:&quot;Push&quot;,&quot;time&quot;:0},{&quot;type&quot;:&quot;SMS&quot;,&quot;time&quot;:1},{&quot;type&quot;:&quot;Phone&quot;,&quot;time&quot;:2}],&quot;user_image&quot;:false}}