Claude Platform Docs

Get Current Organization

beta.organization.retrieve() -> BetaOrganization
GET/v1/organizations/me

Retrieve information about the organization associated with the authenticated API key.

Returns
class BetaOrganization { 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".

Get Current Organization

require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

beta_organization = anthropic.beta.organization.retrieve

puts(beta_organization)
{
  "id": "12345678-1234-5678-1234-567812345678",
  "name": "Organization Name",
  "type": "organization"
}
Returns Examples
{
  "id": "12345678-1234-5678-1234-567812345678",
  "name": "Organization Name",
  "type": "organization"
}