Guard Rails
Create Guard Rail
Create a new guard rail for compliance monitoring.
POST
Guard rails monitor AI responses during calls to catch compliance violations and trigger automated actions. Learn more in the Guard Rails documentation.
Docs for agents: llms.txt
Headers
string
required
Your API key for authentication.
Body Parameters
TCPA Guard Rails
string
required
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.object
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
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.string
required
Must be
custom for custom guard rails.string
required
Display name for the guard rail. This doesn’t affect the behaviour and is only for your reference.
string
required
Description of what this guard rail detects. This doesn’t affect the behaviour and is only for your reference.
string
required
Detection prompt that describes what to flag.
Action Types
Each attachment requires anactions array. Available action types:
Response
object
The created guard rail object containing
id, org_id, type, name, description, prompt, config, attachments, created_at, and updated_at.array
Any errors that occurred (null if none).
Docs for agents: llms.txt