Claude Platform Docs

Obtenir l'organisation actuelle

$client->beta->organization->retrieve(): BetaOrganization
GET/v1/organizations/me

Récupérer les informations sur l'organisation associée à la clé API authentifiée.

Returns
class BetaOrganization { $type = 'organization'; $id; $name; }
"organization" type

Object type.

For Organizations, this is always "organization".

string id

ID of the Organization.

string name

Name of the Organization.

Obtenir l'organisation actuelle
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaOrganization = $client->beta->organization->retrieve();

var_dump($betaOrganization);
Returns Examples
Response 200
{
  "id": "12345678-1234-5678-1234-567812345678",
  "name": "Organization Name",
  "type": "organization"
}