Pinnacle
API ReferenceCallsCall lifecycle

Create Call

Serverhttps://api.pinnacle.sh/
POST
/calls

Request body

Edit JSON, then apply it to your request.

JSON

Start an outbound voice call from a voice-enabled phone number owned by your team.

Retrying safely. Send an Idempotency-Key header and the call is placed at most once, however many times the request is repeated. This matters more here than on most endpoints: a retry without one dials the recipient a second time.

  • Same key, same request: returns the original call with 200 instead of 201, and no new call is placed.
  • Same key, different request: 422. The key is bound to the request it was first used with, so returning the unrelated original call would be worse than refusing.
  • Same key while the first attempt is still in flight: 409. Retry once it settles.

Keys are scoped to your team and expire after 24 hours. Two requests count as the same when to, from, record and metadata match; metadata key order is not significant.

Header Parameters

Idempotency-KeystringOptional

Client-generated key making this request safe to retry. Use a fresh value per distinct call (a UUID is fine) and reuse it only when retrying that same call.

Length
length <= 255
Example
"4f56d61d-8f58-4a2f-b3f0-9c821cf19f3a"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

tostring

Destination phone number in E.164 format.

Match
^\+[1-9]\d{1,14}$
Example
"+14155550142"
fromstring

Voice-enabled phone number owned by your team.

Match
^\+[1-9]\d{1,14}$
Example
"+14155550100"
recordbooleanOptional

Start recording as soon as the call stream connects.

Example
true
objectOptional

String metadata carried on future call events. Maximum serialized size is 2 KB.

Properties
properties <= 50

Response Body

application/json

application/json

application/json

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