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

The body is of type object.

Response

200
application/json

Call ID

The response is of type object.