POST/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json

Create a SIP credential

Creates a SIP credential in the specified credential list. Supply Username and Password; the username can be up to 32 characters, and the password must meet the documented length and complexity requirements. The response includes the credential identifier and username, but not the password.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters · 2 body fields
AccountSidstringrequired
The 34-character account identifier, beginning with `AC` followed by 32 hexadecimal characters.
CredentialListSidstringrequired
The 34-character identifier of the credential list, beginning with `CL` followed by 32 hexadecimal characters.

SIP credential details. Include both Username and Password.

Usernamestringrequired
The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long.
Passwordstringrequired
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`)

1 status code
201Returns the created credential, including its `sid`, account and credential list identifiers, username, creation and update dates, and URI.
sidstringoptional
A 34 character string that uniquely identifies this resource.
account_sidstringoptional
The unique id of the Account that is responsible for this resource.
credential_list_sidstringoptional
The unique id that identifies the credential list that includes this credential.
usernamestringoptional
The username for this credential.
date_createdstringoptional
The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
date_updatedstringoptional
The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
uristringoptional
The URI for this resource, relative to `https://api.twilio.com`

Error handling

The AccountSid path parameter must be a 34-character account identifier beginning with AC followed by 32 hexadecimal characters, and the CredentialListSid path parameter must use the same format with the CL prefix. Username and Password are required; Username can be up to 32 characters, and Password must be at least 12 characters and contain at least one digit and mixed case.