Batch calls
This section provides instructions for using the /call/batch-call endpoint to retrieve the status and details of a list calls made through our API.
Step 1: Prepare your request
Endpoint:
/call/batch-call
Method:
POST
URL:
https://api.talkstackai.com/call/batch-call
Headers: Include
Content-Type: multipart/form-data
.Authorization: Bearer token or x-api-key in headers
Step 2: Create the Request Body
The request body will be FormData with three required keys. These keys are projectId
, agentId
, and file
.
projectId
: id of the project for which you want to fetch the call list.agentId
: id of the agent which will make the calls.file
: It should either be an excel sheet or csv file. All the numbers listed in this file will be called using the agent provided.File should have
number
column. It is where the numbers are you want to make calls to must be.You can optionally pass dynamic variables under
dynamicVariables
column
Last updated