List Policies
Retrieve a paginated list of all guardrails policies in your account.Query Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
status | string | No | - | Filter policies by status |
page | integer | No | 1 | Page number (must be >= 1) |
per_page | integer | No | 10 | Number of items per page (must be between 1 and 100) |
Example Request
Example Response
Error Responses
400 Bad Request - Invalid Pagination Parameters
Pagination
The response includes pagination metadata to help you navigate through the results:page
: Current page numberper_page
: Number of items per pagetotal_count
: Total number of items across all pagestotal_pages
: Total number of pageshas_next
: Boolean indicating if thereβs a next pagehas_previous
: Boolean indicating if thereβs a previous page
page
parameter. For example, to get page 2:
Authorizations
Query Parameters
Filter policies by status
Page number (must be >= 1)
Required range:
x >= 1
Example:
1
Number of items per page (must be between 1 and 100)
Required range:
1 <= x <= 100
Example:
10