Получить текущую организацию
GET/v1/organizations/me
Возвращает информацию об организации, связанной с аутентифицированным ключом API.
Parameters
Returns
Получить текущую организацию
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.OrganizationInfo;
import com.anthropic.models.organization.OrganizationRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
OrganizationInfo organizationInfo = client.organization().retrieve();
}
}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"
}