Claude Platform Docs

取得目前組織

GET/v1/organizations/me

擷取與已驗證 API 金鑰相關聯之組織的資訊。

Returns
BetaOrganization 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 https://api.anthropic.com/v1/organizations/me \
    -H 'anthropic-version: 2023-06-01' \
    -H "X-Api-Key: $ANTHROPIC_API_KEY"
Returns Examples
Response 200
{
  "id": "12345678-1234-5678-1234-567812345678",
  "name": "Organization Name",
  "type": "organization"
}