Skip to content

Create a user
deprecated

Request

Security
ApiKeyAuth or BearerAuth
Bodyapplication/jsonrequired

The user to create

namestring
emailstring

The email address to be associated with the user. Must not be associated with any other users.

phone_numberstring(PhoneNumberString)

A phone number. Always in E.164 format. See https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers.

POST
/v1/users
curl -i -X POST \
  /v1/users \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "email": "string",
    "phone_number": "string"
  }'

Responses

The user was created

Bodyapplication/json
dataobject(User)required
pagingobject(Paging)
Response
{ "data": { "id": "string", "email": "string", "name": "string", "roles": [], "avatar_url": "string", "phone_number": "string" }, "paging": { "cursors": {}, "next_page": "string", "prev_page": "string" } }