POST
/
v1
/
call
curl --request POST \
  --url https://api.penciled.com/v1/call \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "<string>",
  "variables": {}
}'
{
  "call_id": "call_id_12345"
}

This endpoint generates a new call.

Request

Body Parameters

  • agent_id (string, required): The ID of the agent that will be making the call.
  • variables (object, required): The variables required by the agent.

Authorizations

Authorization
string
header
required

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

Body

application/json
Specify the details of the call
agent_id
string
required

The ID of the agent that will be making the call

variables
object
required

The variables required by the agent

Response

200
application/json
Call ID
call_id
string

The ID of the call generated