Create a new Twilio Subaccount from the account making the request

POST /2010-04-01/Accounts.json

Twilio accounts (aka Project) or subaccounts

Create a new Twilio Subaccount from the account making the request

application/x-www-form-urlencoded

Body

  • A human readable description of the account to create, defaults to SubAccount Created at {YYYY-MM-DD HH:MM meridian}

Responses

  • 201

    Created

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

      The authorization token for this account

    • date_created string(date-time-rfc-2822) | null

      The date this account was created

    • date_updated string(date-time-rfc-2822) | null

      The date this account was last updated

    • friendly_name string | null

      A human readable description of this account

    • owner_account_sid string | null

      The unique 34 character id representing the parent of this account

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

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • status string | null

      The status of this account

      Values are active, suspended, or closed.

    • subresource_uris object(uri-map) | null

      Account Instance Subresources

    • type string | null

      The type of this account

      Values are Trial or Full.

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string'
Request example
{
  "FriendlyName": "string"
}
Response examples (201)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}