curl -i --user AUTH_ID:AUTH_TOKEN \
    -H "Content-Type: application/json" \
    -d '{"name": "testuser", "username": "testcredential", "Password": "test12332434!"}'  \
    https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/
{
  "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
  "message": "credential created successfully.",
  "credential_uuid": "f19c4773-4ae6-4b75-92ea-9cf3ea4227d6"
}

Create a new credentials list.

API Endpoint

POST
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/

Attributes

name
string

Friendly name for the credentials list.

username
string

Username to be sent in response to an auth challenge of the SIP INVITE.

password
string

Password to authenticate the SIP request.

Returns

If successful, returns “credential created successfully.” in the message field along with a credential_uuid.

curl -i --user AUTH_ID:AUTH_TOKEN \
    -H "Content-Type: application/json" \
    -d '{"name": "testuser", "username": "testcredential", "Password": "test12332434!"}'  \
    https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/
{
  "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
  "message": "credential created successfully.",
  "credential_uuid": "f19c4773-4ae6-4b75-92ea-9cf3ea4227d6"
}