POST
/
batches
curl --request POST \
  --url https://api.bolna.dev/batches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: text/csv' \
  --data '{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "from_phone_number": "+19876543007"
}'
{
  "batch_id": "3c90c3cc0d444b5088888dd25736052a",
  "state": "created"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

text/csv
agent_id
string
required

The ID of the agent

file
file
required

CSV file to upload

from_phone_number
string

Phone number from which the batch will be called alongwith country code (in E.164 format)

Example:

"+19876543007"

Response

200
application/json
agent status response
batch_id
string
required

The ID of the batch

Example:

"3c90c3cc0d444b5088888dd25736052a"

state
enum<string>
required

Status of the request

Available options:
created