Create a new End User.

POST /v1/EndUsers

Create a new End User.

application/x-www-form-urlencoded

Body

  • FriendlyName string Required

    The string that you assigned to describe the resource.

  • Type string Required

    The type of end user of the Bundle resource - can be individual or business.

  • Attributes

    The set of parameters that are the attributes of the End User resource which are derived End User Types.

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sid string | null

      The unique string created by Twilio to identify the End User resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IT[0-9a-fA-F]{32}$.

    • account_sid string | null

      The SID of the Account that created the End User resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • friendly_name string | null

      The string that you assigned to describe the resource.

    • type string | null

      The type of end user of the Bundle resource - can be individual or business.

    • attributes

      The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.

    • date_created string(date-time) | null

      The date and time in GMT when the resource was created specified in ISO 8601 format.

    • date_updated string(date-time) | null

      The date and time in GMT when the resource was last updated specified in ISO 8601 format.

    • url string(uri) | null

      The absolute URL of the End User resource.

POST /v1/EndUsers
curl \
 --request POST 'https://trusthub.twilio.com/v1/EndUsers' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Type=authorized_representative_1&Attributes=%7B%7D&FriendlyName=auth_rep_1'
Request example
{"Type"=>"authorized_representative_1", "Attributes"=>"{}", "FriendlyName"=>"auth_rep_1"}
Response examples (201)
{
  "sid": "ITaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://trusthub.twilio.com/v1/EndUsers/ITaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "type": "authorized_representative_1",
  "attributes": {
    "email": "foobar@test.com",
    "last_name": "test",
    "first_name": "rep1",
    "job_position": "CEO",
    "phone_number": "+11234567890",
    "business_title": "ceo"
  },
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2021-02-16T20:40:57Z",
  "date_updated": "2021-02-16T20:40:57Z",
  "friendly_name": "auth_rep_1"
}