Articles in this support section discuss Telebroad's legacy APIs. To learn about the current version of Telebroad APIs, which offer additional authentication options and support for advanced features, please go to https://developers.telebroad.com/.
The POST/call/pickup method allows a user to pick up a call on a selected phone number. For this method to work, the call must be placed using the POST/send/call method so it can be identified with a unique ID.
Parameters
All parameters go in the request body in JSON Raw format.
| Parameter | Type | Operation |
| dnumber | string | The phone number or line where the call is to be picked up. |
| callid | string | A unique ID number for the call. This need to be obtained from the uniqueid field in the response received from the post/send/call request. |
Example
To pick up a call on internal line 1214840, use this syntax:
HTTPS method: POST
Header
webserv.telebroad.com/api/teleconsole/rest/call/pickup
Body
{"dnumber":"1214840", "callid":"1519784628.70134037"}
Response:
If the call was redirected successfully:
{
"error": null,
"result": "1"
}
If there was a problem redirecting the call (usually due to wrong uniqueid or if the call has already ended):
{
"error":{
"code": 444,
"message": "The call does not exist."
}
}