Skip to main content
Endpoints represent SIP users that can register with Plivo and make/receive calls through Voice SDKs (Web, iOS, Android) or SIP softphones. Each endpoint has a unique username, password, and SIP URI.

The Endpoint Object

Example Endpoint Object


Create an Endpoint

Create a new SIP endpoint.

Arguments

Returns

Returns the created endpoint with a 12-digit number appended to the username.

Response

username
string
Username for the endpoint, with a 12-digit number appended to the username you provided.
alias
string
Human-readable alias for the endpoint.
message
string
Status of the request. Returns created on successful endpoint creation.
endpoint_id
string
Unique identifier for the endpoint. Used in all endpoint API operations.
api_id
string
Unique identifier for the API request.

Retrieve an Endpoint

Get details of a specific endpoint.

Arguments

No arguments required.
The password returned is an MD5 hash of the actual password.

Response

alias
string
Human-readable alias for the endpoint.
application
string
URI of the application attached to the endpoint.
endpoint_id
string
Unique identifier for the endpoint. Used in all endpoint API operations.
resource_uri
string
URI of the endpoint object.
sip_registered
string
true if the endpoint is registered on a SIP client. Default: false.
sip_uri
string
SIP URI of the endpoint. External users can call this endpoint on this URI.
sub_account
string
Subaccount the endpoint is linked to. null if not linked.
username
string
Username for the endpoint.

List All Endpoints

Retrieve all endpoints in your account.

Arguments

No arguments required.

Response

api_id
string
Unique identifier for the API request.
meta
object
Pagination metadata: limit (results per page), offset (items skipped), total_count (total matching endpoints).
objects
array
Array of endpoint objects — see The Endpoint Object.

Update an Endpoint

Update an endpoint’s password, alias, or attached application.

Arguments

Response

message
string
Status of the request. Returns changed on a successful update.
api_id
string
Unique identifier for the API request.

Delete an Endpoint

Permanently delete an endpoint.

Arguments

No arguments required.

Response


Generate a JWT Token

Generate a JWT (JSON Web Token) for client-side authentication with Voice SDKs.

Arguments

sub
string
Custom subject claim for the token.
nbf
integer
“Not before” timestamp (Unix epoch). The token is not valid before this time.
exp
integer
Token expiry time (Unix epoch). Allowed range: 3 minutes to 24 hours from creation.

Response

Returns a JWT token string that you can use for client SDK authentication.