Pinnacle
API ReferenceCallsStreaming and events

Create Call Stream Token

Serverhttps://api.pinnacle.sh/
POST
/calls/{id}/stream-token

Request body

Edit JSON, then apply it to your request.

JSON

Mint a short-lived WebSocket token for a call. Use the returned stream_url to connect to Pinnacle's bidirectional voice stream.

Path Parameters

idstring

Pinnacle call ID.

Length
1 <= length
Example
"resource_01J8K3R7M9"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

commands_enabledbooleanOptional

Whether this WebSocket may send call commands. Defaults to true.

Example
true
stream_idstringOptional

Customer-chosen stream ID for reconnects and multiple subscribers.

Example
"resource_01J8K3R7M9"
recordbooleanOptional

Enable recording for this WebSocket stream.

Example
true

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

Pinnacle referenceAsk Pinnacle

Get a sourced answer from the published documentation.

ViewingPinnacle documentation

Conversations are saved for analysis.

Try asking