curl --request GET \
--url https://api.bland.ai/v1/guard_rails \
--header 'authorization: <authorization>'{
"data": [
{
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "tcpa:ai_disclosure",
"name": null,
"description": null,
"prompt": null,
"config": {
"end_seconds": 30
},
"attachments": [
{
"source_type": "PERSONA",
"source_id": "98765432-1234-1234-1234-123456789012",
"actions": [
{ "type": "end_call" }
]
}
],
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z"
},
{
"id": "b2c3d4e5-6789-01bc-defg-2345678901bc",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "custom",
"name": "No Medical Advice",
"description": "Prevents the agent from providing medical advice",
"prompt": "Flag if the agent provides any medical advice, diagnosis, or treatment recommendations",
"config": {},
"attachments": [
{
"source_type": "PATHWAY",
"source_id": "11111111-2222-3333-4444-555555555555",
"actions": [
{ "type": "transfer", "config": { "phone_number": "+15551234567" } }
]
}
],
"created_at": "2025-01-16T14:20:00.000Z",
"updated_at": "2025-01-16T14:20:00.000Z"
}
],
"errors": null
}
Retrieve a list of all guard rails in your organization.
curl --request GET \
--url https://api.bland.ai/v1/guard_rails \
--header 'authorization: <authorization>'{
"data": [
{
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "tcpa:ai_disclosure",
"name": null,
"description": null,
"prompt": null,
"config": {
"end_seconds": 30
},
"attachments": [
{
"source_type": "PERSONA",
"source_id": "98765432-1234-1234-1234-123456789012",
"actions": [
{ "type": "end_call" }
]
}
],
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z"
},
{
"id": "b2c3d4e5-6789-01bc-defg-2345678901bc",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "custom",
"name": "No Medical Advice",
"description": "Prevents the agent from providing medical advice",
"prompt": "Flag if the agent provides any medical advice, diagnosis, or treatment recommendations",
"config": {},
"attachments": [
{
"source_type": "PATHWAY",
"source_id": "11111111-2222-3333-4444-555555555555",
"actions": [
{ "type": "transfer", "config": { "phone_number": "+15551234567" } }
]
}
],
"created_at": "2025-01-16T14:20:00.000Z",
"updated_at": "2025-01-16T14:20:00.000Z"
}
],
"errors": null
}
PERSONA, PATHWAY, INBOUNDtcpa:ai_disclosure, tcpa:recording_disclosure, tcpa:self_introduction, tcpa:opt_out, or custom.end_seconds.source_type (PERSONA, PATHWAY, or INBOUND), source_id, and actions.{
"data": [
{
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "tcpa:ai_disclosure",
"name": null,
"description": null,
"prompt": null,
"config": {
"end_seconds": 30
},
"attachments": [
{
"source_type": "PERSONA",
"source_id": "98765432-1234-1234-1234-123456789012",
"actions": [
{ "type": "end_call" }
]
}
],
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z"
},
{
"id": "b2c3d4e5-6789-01bc-defg-2345678901bc",
"org_id": "12345678-1234-1234-1234-123456789012",
"type": "custom",
"name": "No Medical Advice",
"description": "Prevents the agent from providing medical advice",
"prompt": "Flag if the agent provides any medical advice, diagnosis, or treatment recommendations",
"config": {},
"attachments": [
{
"source_type": "PATHWAY",
"source_id": "11111111-2222-3333-4444-555555555555",
"actions": [
{ "type": "transfer", "config": { "phone_number": "+15551234567" } }
]
}
],
"created_at": "2025-01-16T14:20:00.000Z",
"updated_at": "2025-01-16T14:20:00.000Z"
}
],
"errors": null
}
Was this page helpful?