🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
curl --request GET \
--url https://api.portkey.ai/v1/guardrails \
--header 'x-portkey-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 1
}Retrieves a paginated list of guardrails for the specified workspace or organisation
curl --request GET \
--url https://api.portkey.ai/v1/guardrails \
--header 'x-portkey-api-key: <api-key>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"total": 1
}Workspace UUID to filter guardrails
Organisation UUID to filter guardrails
Number of items per page
1 <= x <= 1000Current page number (0-indexed)
x >= 0Was this page helpful?