Create a call action
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.
agentId
Agent this action belongs to (ObjectId)
category
When the action fires
Allowed values:
provider
Integration provider (e.g. hubspot, salesforce)
config
action_type
The operation to perform on the provider object
Allowed values:
object
Provider object type to act on (e.g. contact, deal)
Response
Call action created
success
data
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

