Headers
Your API key for authentication.
Body Parameters
TCPA Guard Rails
The type of TCPA guard rail:
tcpa:ai_disclosure- AI must disclose it’s an AItcpa:recording_disclosure- Must disclose the call is being recordedtcpa:self_introduction- Must identify who is callingtcpa:opt_out- Monitors for user opt-out requests
tcpa:opt_out type is different from the others: it’s not time-based and instead monitors the entire conversation to detect if the agent continues to engage after the user opts out. The config.end_seconds field is not needed for this type.Configuration object. Required for time-based TCPA guard rails (
tcpa:ai_disclosure, tcpa:recording_disclosure, tcpa:self_introduction).end_seconds(number) - Time window in seconds. If the required disclosure is not made within this time, the configured actions will trigger.
Array of sources to attach this guard rail to.
source_type(string, required) - Type of source:PERSONA,PATHWAY, orINBOUNDsource_id(string, required) - ID of the source to attach toactions(array, required) - Actions to take when the guard rail triggers
Custom Guard Rails (Enterprise)
Custom guard rails use your own detection prompt. Limited to 5 per organization.Must be
custom for custom guard rails.Display name for the guard rail. This doesn’t affect the behaviour and is only for your reference.
Description of what this guard rail detects. This doesn’t affect the behaviour and is only for your reference.
Detection prompt that describes what to flag.
Action Types
Each attachment requires anactions array. Available action types:
| Action Type | Description | Config |
|---|---|---|
end_call | Immediately terminate the call | None |
transfer | Transfer to a human agent | { "phone_number": "+15551234567" } |
move_to_node | Jump to a specific pathway node | { "node_id": "node-uuid" } |
Response
The created guard rail object containing
id, org_id, type, name, description, prompt, config, attachments, created_at, and updated_at.Any errors that occurred (null if none).