GET
/
guardrails
List guardrails
curl --request GET \
  --url https://api.portkey.ai/v1/guardrails \
  --header 'x-portkey-api-key: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "active",
      "created_at": "2023-11-07T05:31:56Z",
      "last_updated_at": "2023-11-07T05:31:56Z",
      "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "total": 1
}

Authorizations

x-portkey-api-key
string
header
required

Query Parameters

workspace_id
string

Workspace UUID to filter guardrails

organisation_id
string

Organisation UUID to filter guardrails

page_size
integer
default:100

Number of items per page

Required range: 1 <= x <= 1000
current_page
integer
default:0

Current page number (0-indexed)

Required range: x >= 0

Response

200
application/json

List of guardrails retrieved successfully

The response is of type object.