To enable the Compliance API, see the setup guide.
Set up the Compliance APIEine lokale Sitzung abrufen
GET/v1/compliance/apps/sessions/local/{local_session_id}
Ruft eine lokale Sitzung ab.
Die Antwort ist dasselbe Sitzungsobjekt, das der List-Endpunkt zurückgibt,
wobei user.email_address auf dieselbe Weise aufgelöst wird. Die Aufbewahrung wird
beim Ausliefern der Antwort durchgesetzt: Eine Sitzung, bei der jeder
Inferenzaufruf die Aufbewahrungsfrist überschritten hat, gibt 404 zurück.
Path parameters
Headers
Returns
Eine lokale Sitzung abrufen
cURL
curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"type": "compliance_local_session",
"id": "clls_eyJ2IjoxLCJvIjoiOWEx…",
"organization_uuid": "9a1e0000-0000-0000-0000-000000000000",
"workspace_id": "wrkspc_01SvYKoWVRVHoEbwESNvzYdR",
"user": {
"id": "user_01GpKpLmNoPqRsTuVwXyZaBc",
"email_address": "engineer@example.com"
},
"product_surface": "cowork",
"created_at": "2026-07-09T14:02:11Z",
"updated_at": "2026-07-09T15:47:33Z"
}Returns Examples
Response 200
{
"type": "compliance_local_session",
"id": "clls_eyJ2IjoxLCJvIjoiOWEx…",
"organization_uuid": "9a1e0000-0000-0000-0000-000000000000",
"workspace_id": "wrkspc_01SvYKoWVRVHoEbwESNvzYdR",
"user": {
"id": "user_01GpKpLmNoPqRsTuVwXyZaBc",
"email_address": "engineer@example.com"
},
"product_surface": "cowork",
"created_at": "2026-07-09T14:02:11Z",
"updated_at": "2026-07-09T15:47:33Z"
}