Create a call action

View as Markdown
Creates a new call action for an agent. Call actions define automated behaviors that fire at specific points in a call lifecycle. - **`trigger`** actions fire to initiate an outbound call and require `config.phoneNumberFieldName`. - **`post-call`** actions fire after a call ends (e.g. to update a CRM record).

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Request

This endpoint expects an object.
agentIdstringRequired

Agent this action belongs to (ObjectId)

categoryenumRequired
When the action fires
Allowed values:
providerstringRequired

Integration provider (e.g. hubspot, salesforce)

configobjectRequired
action_typeenumOptional
The operation to perform on the provider object
Allowed values:
objectstringOptional

Provider object type to act on (e.g. contact, deal)

Response

Call action created
successboolean
dataobject
A call action that fires automatically at a specific point in the call lifecycle

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error