Wipple CPaaS
Menu
REST API / About the REST API

About the REST API

The Wipple CPaaS REST API lets your back-end systems create, query, update and end calls, and inspect the conferences and queues that are active on your account.

API endpoint

All requests are sent to the API endpoint assigned to your account. In this documentation the host name is written as {API_ENDPOINT}; the base URL is therefore:

https://{API_ENDPOINT}/v1

Every call-control resource lives beneath your account:

https://{API_ENDPOINT}/v1/Accounts/{AccountSid}/...

{AccountSid} is the identifier of your account. It also appears as account_sid in every webhook.

Authentication

The API uses bearer authentication. Send your API key in the Authorization header of every request:

Authorization: Bearer <token>

API keys grant full control over the calls on your account. Store them securely and never embed them in client-side code.

Request format

Requests that carry a body must use Content-Type: application/json. Path segments such as {AccountSid}, {CallSid} and {ConferenceName} are replaced by the actual identifiers.

HTTP response codes

Request Success status Body
POST 201 Created JSON object with a sid property referencing the created resource
PUT 202 Accepted or 204 No Content Empty, unless stated otherwise on the endpoint page
DELETE 204 No Content Empty
GET 200 OK JSON payload

Errors are reported with a 4xx or 5xx status. Where a body is returned it is a JSON object with a msg property describing the problem:

{
  "msg": "call not found"
}

Endpoints

Calls

Endpoint Description
Create a call Originate an outbound call
List calls List the calls active on the account
Get a call Retrieve one active call
Update a call Change an active call: redirect, mute, hold, record, send DTMF, and more
Delete a call End an active call
Get call count Count the active inbound and outbound calls

Conferences

Endpoint Description
List conferences List the conferences active on the account
Start conference listen Stream the mixed audio of a conference to a WebSocket server
Stop conference listen Stop streaming conference audio

Queues

Endpoint Description
List queues List the call queues active on the account