Get Organization Details
client.organizations.get(stringorganizationID, RequestOptionsoptions?): Organization { id, billing_email, created_at, 9 more }
GET/v1/organizations/{organization_id}
Get Organization Details
import NirvanaLabs from '@nirvana-labs/nirvana';
const client = new NirvanaLabs({
apiKey: process.env['NIRVANA_LABS_API_KEY'], // This is the default and can be omitted
});
const organization = await client.organizations.get('organization_id');
console.log(organization.id);{
"id": "123e4567-e89b-12d3-a456-426614174000",
"billing_email": "billing@example.com",
"created_at": "2025-01-01T00:00:00Z",
"domains": [
{
"id": "456e7890-e89b-12d3-a456-426614174000",
"domain": "example.com",
"verified": true
}
],
"metronome_customer_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Organization",
"personal": false,
"services": {
"cloud": true,
"jit_provisioning": true,
"scim": false,
"siem": false,
"sso": false
},
"stripe_customer_id": "cus_1234567890",
"type": "company",
"updated_at": "2025-01-01T00:00:00Z",
"auth_id": "org_01H8GQBX3Z"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"billing_email": "billing@example.com",
"created_at": "2025-01-01T00:00:00Z",
"domains": [
{
"id": "456e7890-e89b-12d3-a456-426614174000",
"domain": "example.com",
"verified": true
}
],
"metronome_customer_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Organization",
"personal": false,
"services": {
"cloud": true,
"jit_provisioning": true,
"scim": false,
"siem": false,
"sso": false
},
"stripe_customer_id": "cus_1234567890",
"type": "company",
"updated_at": "2025-01-01T00:00:00Z",
"auth_id": "org_01H8GQBX3Z"
}