Prerequisites
- An active credential based SIP connection
Create a Credential
The following API request will create a telephony credential.connection_idis requiredexpires_atis recommended for security especially when many are expected to be creatednameandtagare recommended for easy management
Propagation Time and Immediate Use
Telephony credential creation is not guaranteed to be immediately usable for SDK login or registration. In create-then-login flows, the first authentication attempt can fail transiently even though the API request succeeded. Best practices:- Prefer creating credentials ahead of time when possible
- If you create credentials on demand, wait about 5 seconds before the first login or registration attempt
- If you cannot wait, retry with short exponential backoff and treat early failures as transient
Updating a Credential
After a credential’s creation, it may be updated via the PATCH endpoint.expired credential since that state is terminal.
Revoking a Credential
A client-side application’s voice capabilities can be revoked by removing the corresponding credential.Managing Credentials
The following filters are useful when managing many credentials.filter[resource_id]e.g.filter[resource_id]=connection:1567510696929005999. Note thatconnection:must be prepended to the connection ID.filter[status]e.g.filter[status]=expiredfilter[status]e.g.filter[tag]=sandbox
How Telephony Credentials Should Be Used
A telephony credential is a SIP identity for one SDK device. Best practices:- Create a separate telephony credential for each device
- Do not share one telephony credential across concurrent devices
- JWTs minted from the same telephony credential still represent the same SIP identity
SDK Authentication
SDKs are authenticated withsip_usernamewhich starts withgencredsip_password
Check SIP Registration Status
After an SDK client logs in, you can verify whether the underlying telephony credential is currently registered.sip_username (gencred...) as username.
Limits
Currently, there exists- No limit on count of telephony credentials on a connection,
- Nor any limit on the aggregate count of telephony credentials on a single account.