Skip to main content
GET
/
v2
/
guardrails
Get Guardrails (All Sets)
curl --request GET \
  --url https://tavusapi.com/v2/guardrails \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "guardrails_id": "g12345",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:30:00Z"
    }
  ],
  "total_count": 15
}

Documentation Index

Fetch the complete documentation index at: https://docs.tavus.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Query Parameters

limit
integer

The number of guardrails to return per page. Default is 10.

page
integer

The page number to return. Default is 1.

Response

Successfully retrieved guardrails

data
object[]

Guardrail sets for the current page; use total_count for the full count.

total_count
integer

The total number of guardrails

Example:

15