Claude Platform Docs

Obtener la organización actual

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

Recupera información sobre la organización asociada con la clave 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.

Obtener la organización actual
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"
}