Obter organização atual
GET/v1/organizations/me
Recupere informações sobre a organização associada à chave de API autenticada.
Returns
Obter organização atual
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"
}