Queue calls
Trigger/schedule a call to a queue
Initiate a call and place it in a queue.
This is the "call back" building block: instead of connecting the
called party to a specific user (as /call does), the call is
placed into one of your call queues and will be distributed to the
next available agent, exactly as if the person had called in and
waited. The optional position parameter lets you insert the call at
a given waiting position in the queue instead of at the end.
GET or POST https://api.ubity.com/queue_call
| Parameter | Description |
|---|---|
| key | Your Ubity API key |
| queue | The queue you want the call to be placed in |
| number | The phone number to call (ie. '5551112222') |
| redirect | (optional) The HTTP redirect code and URL that the API must answer (useful from a web browser) |
| timeout | (optional) Timeout |
| position | (optional) Waiting position in queue |
Any arbitrary parameter is accepted and will be given back along the callbacks related to that call (see callback section).
% curl -H "Accept: application/json;version=0" "https://api.ubity.com/queue_call?key=KKKK&queue=QQQQ&number=5551112222"
{
"api_key": "KKKK",
"code": 200,
"diagnostic": "Success",
"mode": "normal",
"queue_call": true,
"stamp": "2018-02-16 14:39",
"url": "https://api.ubity.com/queue_call?key=KKKK&queue=QQQQ&number=5551112222",
"version": 0
}%