Claude Platform Docs

現在の組織を取得

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

認証されたAPIキーに関連付けられた組織に関する情報を取得します。

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

現在の組織を取得
<?php

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

use Anthropic\Client;

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

$organizationInfo = $client->organization->retrieve();

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