Retrieve an organization by ID
OrgRetrieveResponse orgs().retrieve(OrgRetrieveParamsparams = OrgRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
/v1/orgs/{orgId}
Retrieves a single organization by its unique organization ID. Returns the complete organization object with name, status, and timestamps.
Parameters
Returns
Retrieve an organization by ID
package com.avara.example;
import com.avara.client.AvaraClient;
import com.avara.client.okhttp.AvaraOkHttpClient;
import com.avara.models.orgs.OrgRetrieveParams;
import com.avara.models.orgs.OrgRetrieveResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
AvaraClient client = AvaraOkHttpClient.fromEnv();
OrgRetrieveResponse org = client.orgs().retrieve("org_1234567890abcdef1234567890abcdef");
}
}
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
Returns Examples
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}