DLS Hosted PBX User API (v2)
The DLS Hosted PBX User API is a REST API for the things a user does in the Hosted PBX web interface: placing calls, sending SMS and MMS, retrieving call records, recordings and transcriptions, managing contacts, voicemail, faxes and call routing, and receiving webhook notifications as calls ring, connect and end. Requests and responses are JSON, and each user signs in once to get an authentication token.
How the User API Works
Authentication
Sign in once with the extension's username and web password to receive a token, then send it as a Bearer token on every request. Changing the web password revokes the token.
Requests and Responses
GET reads, POST creates, PUT and PATCH update, DELETE removes. Successful requests return JSON; errors return a standard HTTP status with a JSON message.
Rate Limits
60 requests per minute and 1,200 per hour for each token. Sign-in is limited to 5 requests per minute; DLS support can raise the other limits.
Permissions
Each user can reach only what their PBX permission profile allows. A 403 response names the permission the request needs.
What You Can Do with the User API
Calls and Call Notes
Place calls, read the user's call reports, download recordings, and keep one note per call.
SMS and MMS
Send text and picture messages and search the messages the user owns.
Transcriptions
Fetch the transcript text, status and details of a recorded call.
Webhooks
Register HTTPS addresses that receive a signed notice as the user's calls ring, are answered, are transferred and end.
Contacts
Create, update and delete personal contacts and read the user's full directory.
Voicemail and Fax
List, move, download and delete voicemail; send faxes and download sent and received documents.
Call Routing
Set Standard, Follow Me, Camp or Call Screen routing, edit Follow Me steps and schedules, and manage blacklists.
Devices and Keys
Get SIP registration details and TLS certificates for a softphone, and read or change BLF key assignments.
User API Reference
Every endpoint with its parameters, request and response examples, and error codes. Use the search box at the top of the left-hand menu to find an endpoint, or download the OpenAPI specification.
User API FAQ
A REST API for the actions a user takes in the Hosted PBX web interface, such as placing calls, sending SMS and MMS, retrieving call records, recordings and transcriptions, and managing contacts, voicemail, faxes and call routing.
Send a POST to /api/v2/user/authenticate on your PBX with Basic authentication (the extension’s username and web password). The response is a token; send it as a Bearer token with every other request. Signing in again replaces the old token, and changing the web password revokes it.
60 requests per minute and 1,200 requests per hour for each token. Sign-in requests are limited to 5 per minute, and requests with a bad token are limited to 10 per minute per IP address. DLS support can raise the per-token limits.
The user’s PBX permission profile does not allow that action. The response names the permission needed, and the PBX administrator can grant it under System, Permissions.
Yes. The Webhooks endpoint registers HTTPS addresses that receive a signed JSON notice as calls to the user’s extension ring, are answered, are transferred and end.
The User API (v2) works on behalf of one signed-in user. The Admin API (v1) uses an extension and an API key and covers predictive dialer, reporting, status and SMS methods.
Need Help with the API?
DLS Communications support can answer questions about the API, raise rate limits and take requests for new endpoints. Call 800-323-2099.