Get Current Organization
BetaOrganization beta().organization().retrieve(OrganizationRetrieveParamsparams = OrganizationRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())GET/v1/organizations/me
Retrieve information about the organization associated with the authenticated API key.
Get Current Organization
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.BetaOrganization;
import com.anthropic.models.beta.organization.OrganizationRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaOrganization betaOrganization = client.beta().organization().retrieve();
}
}{
"id": "12345678-1234-5678-1234-567812345678",
"name": "Organization Name",
"type": "organization"
}Returns Examples
{
"id": "12345678-1234-5678-1234-567812345678",
"name": "Organization Name",
"type": "organization"
}