Response (200)
{
"api_keys": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"is_active": true,
"name": "name",
"scopes": [
"string"
],
"expires_at": "2019-12-27T18:11:19.117Z",
"type": "compliance_api_key"
}
],
"organization_id": "organization_id",
"settings": [
{
"name": "ai_powered_artifacts_enabled",
"value": true,
"type": "boolean"
}
],
"type": "effective_organization_settings"
}Compliance API › Groups
List Compliance Groups
GET /v1/compliance/groups
List Compliance Groups
Query parameters
limit: optional numberMaximum results (default: 500, max: 1000)
default: 500, maximum: 1000, minimum: 1
name_prefix: optional stringFilter groups by name prefix
default: ""
page: optional stringOpaque pagination token from a previous response's
next_pagefield. 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.
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
Read more about versioning and our version history here.
"x-api-key": optional string
Returns
data: array of objectList of groups
id: stringGroup identifier (tagged ID)
created_at: string or nullGroup creation timestamp (RFC 3339)
format: date-time
description: stringGroup description
name: stringGroup name
roles: array of string or nullRole IDs assigned to this group.
source_type: stringHow the group was created ('direct' or 'scim')
updated_at: string or nullGroup last-updated timestamp (RFC 3339)
format: date-time
has_more: booleanWhether more records exist beyond the current result set
next_page: string or nullToken to retrieve the next page. Use this as the 'page' parameter in your next request
Example
curl https://api.anthropic.com/v1/compliance/groups \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"