---
title: "Create a new credential resource."
method: POST
path: "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json"
tags: ["Api20100401Credential"]
---

# Create a new credential resource.

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

## Request

- Base URL: `https://api.twilio.com`
- URL: `https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json`
- Auth: HTTP basic

Create a new credential resource.

## Path parameters

- `AccountSid` string, required
- `CredentialListSid` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `Username` string, required: 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.
  - `Password` string, required: 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`)

## Response `201`

Created

- ApiV2010AccountSipSipCredentialListSipCredential
  - `sid` string, nullable: A 34 character string that uniquely identifies this resource.
  - `account_sid` string, nullable: The unique id of the Account that is responsible for this resource.
  - `credential_list_sid` string, nullable: The unique id that identifies the credential list that includes this credential.
  - `username` string, nullable: The username for this credential.
  - `date_created` string, date-time-rfc-2822, nullable: 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_updated` string, date-time-rfc-2822, nullable: 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.
  - `uri` string, nullable: The URI for this resource, relative to `https://api.twilio.com`

---

[API](https://skmtc.dev/twilio/apis/api-v2010.md) - [All operations](https://skmtc.dev/twilio/apis/api-v2010/llms.txt) - [OpenAPI document](https://skmtc.dev/twilio/apis/api-v2010/revisions/bfdf249a1298?raw)
