Obtenir l'organisation actuelle
GET/v1/organizations/me
Récupérez les informations sur l'organisation associée à la clé API authentifiée.
Returns
Obtenir l'organisation actuelle
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaOrganization = await client.beta.organization.retrieve();
console.log(betaOrganization.id);Response 200
{
"id": "12345678-1234-5678-1234-567812345678",
"name": "Organization Name",
"type": "organization"
}Returns Examples
Response 200
{
"id": "12345678-1234-5678-1234-567812345678",
"name": "Organization Name",
"type": "organization"
}