Claude Platform Docs

Obter organização atual

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

Recupere informações sobre a organização associada à chave de API autenticada.

Returns
class OrganizationInfo { type: :organization, id, name }
type: :organization

Object type.

For Organizations, this is always "organization".

id: String

ID of the Organization.

formatuuid
name: String

Name of the Organization.

Obter organização atual
require "anthropic"

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

organization_info = anthropic.organization.retrieve

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