Skip to main content
GET
/
api
/
sdk
/
guardrail
/
agent
/
{agent_id}
List all guardrails for a specific agent
curl --request GET \
  --url https://api.example.com/api/sdk/guardrail/agent/{agent_id}
{
  "guardrails": [
    {
      "type": "<string>",
      "instruction": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Path Parameters

agent_id
string<uuid>
required

Response

Successful Response

guardrails
GuardrailResponse · object[]
required