List Compliance Groups
api/compliance/groups/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/groups/list Changed · +13 / -14 lines
# List Compliance Groups ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List Compliance Groups ### Query Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: List Compliance Groups -url: https://platform.claude.com/docs/en/api/compliance/groups/list ---- +# List Compliance Groups -## List Compliance Groups +**GET** `/v1/compliance/groups` -**get** `/v1/compliance/groups` - List Compliance Groups -### Query Parameters +## Query parameters - `limit: optional number` Maximum results (default: 500, max: 1000) + default: 500, maximum: 1000, minimum: 1 + - `name_prefix: optional string` Filter groups by name prefix + default: "" + - `page: optional string` Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice. -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns -- `data: array of object { id, created_at, description, 4 more }` +- `data: array of object` List of groups
Token to retrieve the next page. Use this as the 'page' parameter in your next request -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/groups \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {