Claude Platform Docs

获取当前组织

GET/v1/organizations/me

检索与已认证 API 密钥关联的组织的信息。

Returns
Organization object{ id, name, type }
id: string

ID of the Organization.

formatuuid
name: string

Name of the Organization.

type: "organization"

Object type.

For Organizations, this is always "organization".

defaultorganization
获取当前组织
cURL
curl https://api.anthropic.com/v1/organizations/me \
    -H 'anthropic-version: 2023-06-01' \
    -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
Returns Examples
Response 200
{
  "id": "12345678-1234-5678-1234-567812345678",
  "name": "Organization Name",
  "type": "organization"
}