Claude Platform Docs

Ottieni l'organizzazione corrente

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

Recupera le informazioni sull'organizzazione associata alla chiave API autenticata.

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

Ottieni l'organizzazione corrente
require "anthropic"

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

beta_organization = anthropic.beta.organization.retrieve

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