API Endpoint
The Credentials Object
A credentials object contains username and password for SIP digest authentication when your PBX sends calls to Plivo.Attributes
Unique identifier for the credentials.
Friendly name for the credentials.
Username for SIP authentication. Must be 5 to 20 characters, containing only alphanumeric characters.
Password for SIP authentication (only set on create/update, never returned in responses). Must be 5 to 20 characters, containing only alphanumeric characters and the special characters
~!@#$%^&*()_+, with at least one special character.Example Object
The password is never returned in API responses for security. It is only used when creating or updating credentials.
List All Credentials
Get all credentials for your account.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/
Query Parameters
Response
Unique identifier for the API request.
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching credentials).Array of credentials objects — see The Credentials Object.
Example
cURL
Retrieve Credentials
Get details of specific credentials.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/{credential_uuid}/
Response
Unique identifier for the credentials.
Friendly name for the credentials.
Username for SIP authentication.
Example
cURL
Create Credentials
Create a new credential set for SIP digest authentication.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
credential created successfully. on a successful creation.Unique identifier for the credentials.
Error Codes
Example
cURL
Update Credentials
Modify an existing credential’s name, username, or password.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/{credential_uuid}/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
Credential updated successfully. on a successful update.Unique identifier for the credentials.
Example
cURL
Delete Credentials
Permanently delete credentials.HTTP Request
DELETE https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Credential/{credential_uuid}/
Response
HTTP 204 No ContentExample
cURL
Usage with Trunks
After creating credentials, attach them to an outbound trunk.Example
cURL
Related
- Trunks - Create and manage SIP trunks
- IP Access Control Lists - Alternative authentication via IP whitelisting