cURL
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
Workspace UUID to filter guardrails
Organisation UUID to filter guardrails
Number of items per page
1 <= x <= 1000
Current page number (0-indexed)
x >= 0
List of guardrails retrieved successfully
Array of guardrail summaries
Show child attributes
Unique identifier of the guardrail
Name of the guardrail
URL-friendly slug
Creation timestamp
Last update timestamp
UUID of the user who created the guardrail
Organisation UUID
Workspace UUID (null for organisation-level guardrails)
Current status of the guardrail
active
archived
UUID of the user who last updated the guardrail
Total number of guardrails available
Was this page helpful?