Create a subaccount

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
subaccount_namestringRequired
The name for the new subaccount. This should be a unique identifier that distinguishes it from other subaccounts within the main account.
user_emailstringOptional
This is the email address of the user you wish to invite to the subaccount. When this optional parameter is filled in, a "sign in" link will be generated and sent back in the response. The user can use this link to sign in and set up their account.
twilio_account_sidstringOptional
This is the Twilio SID of the subaccount.
twilio_auth_tokenstringOptional
This is the Twilio Token of the subaccount.

Response

200
statusstring
Whether the request was successful.
responseobject

Errors

400
Bad Request Error