Skip to content
Docs

Organizations

Create Organization
$ nirvana organizations create
POST/v1/organizations
Get Organization Details
$ nirvana organizations get
GET/v1/organizations/{organization_id}
Update Organization
$ nirvana organizations update
PATCH/v1/organizations/{organization_id}
List Organizations
$ nirvana organizations list
GET/v1/organizations
Leave Organization
$ nirvana organizations leave
POST/v1/organizations/{organization_id}/leave
ModelsExpand Collapse
organization: object { id, billing_email, billing_state, 11 more }

Organization response.

id: string

Organization ID.

billing_email: string

Billing email. Null when no custom billing email is set (reverts to the oldest owner’s email).

billing_state: "unfunded" or "active" or "requires_action" or 2 more

Organization billing lifecycle state.

"unfunded"
"active"
"requires_action"
"suspended"
"closed"
billing_state_since: string

When the organization entered its current billing state.

charging_model: "manual" or "prepaid"

How the organization is charged for resource usage.

"manual"
"prepaid"
created_at: string

When the Organization was created.

domains: array of OrganizationDomain { id, domain, verified }

Domains associated with the organization.

id: string

Domain ID.

domain: string

Domain name.

verified: boolean

Whether the domain has been verified.

name: string

Organization name.

personal: boolean

Whether the organization is a personal Organization.

services: object { cloud, jit_provisioning, scim, 2 more }

Services that the Organization has access to.

cloud: boolean

Whether cloud services are enabled for the organization.

jit_provisioning: boolean

Whether just-in-time provisioning is enabled for the organization.

scim: boolean

Whether SCIM provisioning is enabled for the organization.

siem: boolean

Whether SIEM integration is enabled for the organization.

sso: boolean

Whether single sign-on is enabled for the organization.

stripe_customer_id: string

Stripe customer ID.

type: "personal" or "company"

Organization type.

"personal"
"company"
updated_at: string

When the Organization was updated.

auth_id: optional string

Authentication provider organization ID.

organization_domain: object { id, domain, verified }

Organization domain details.

id: string

Domain ID.

domain: string

Domain name.

verified: boolean

Whether the domain has been verified.

organization_list: object { items, pagination }
items: array of Organization { id, billing_email, billing_state, 11 more }
id: string

Organization ID.

billing_email: string

Billing email. Null when no custom billing email is set (reverts to the oldest owner’s email).

billing_state: "unfunded" or "active" or "requires_action" or 2 more

Organization billing lifecycle state.

"unfunded"
"active"
"requires_action"
"suspended"
"closed"
billing_state_since: string

When the organization entered its current billing state.

charging_model: "manual" or "prepaid"

How the organization is charged for resource usage.

"manual"
"prepaid"
created_at: string

When the Organization was created.

domains: array of OrganizationDomain { id, domain, verified }

Domains associated with the organization.

id: string

Domain ID.

domain: string

Domain name.

verified: boolean

Whether the domain has been verified.

name: string

Organization name.

personal: boolean

Whether the organization is a personal Organization.

services: object { cloud, jit_provisioning, scim, 2 more }

Services that the Organization has access to.

cloud: boolean

Whether cloud services are enabled for the organization.

jit_provisioning: boolean

Whether just-in-time provisioning is enabled for the organization.

scim: boolean

Whether SCIM provisioning is enabled for the organization.

siem: boolean

Whether SIEM integration is enabled for the organization.

sso: boolean

Whether single sign-on is enabled for the organization.

stripe_customer_id: string

Stripe customer ID.

type: "personal" or "company"

Organization type.

"personal"
"company"
updated_at: string

When the Organization was updated.

auth_id: optional string

Authentication provider organization ID.

organization_services: object { cloud, jit_provisioning, scim, 2 more }

Services that the Organization has access to.

cloud: boolean

Whether cloud services are enabled for the organization.

jit_provisioning: boolean

Whether just-in-time provisioning is enabled for the organization.

scim: boolean

Whether SCIM provisioning is enabled for the organization.

siem: boolean

Whether SIEM integration is enabled for the organization.

sso: boolean

Whether single sign-on is enabled for the organization.

organization_type: "personal" or "company"

Organization type.

"personal"
"company"

OrganizationsMemberships

Get Organization Membership
$ nirvana organizations:memberships get
GET/v1/organizations/{organization_id}/memberships/{membership_id}
List Organization Memberships
$ nirvana organizations:memberships list
GET/v1/organizations/{organization_id}/memberships
ModelsExpand Collapse
organization_membership: object { id, created_at, organization_id, 3 more }

Organization membership details.

id: string

Membership ID.

created_at: string

When the membership was created.

organization_id: string

Organization ID.

role: "owner" or "member"

Role of the user in the organization.

"owner"
"member"
updated_at: string

When the membership was updated.

user_id: string

User ID.

organization_membership_list: object { items, pagination }
items: array of OrganizationMembership { id, created_at, organization_id, 3 more }
id: string

Membership ID.

created_at: string

When the membership was created.

organization_id: string

Organization ID.

role: "owner" or "member"

Role of the user in the organization.

"owner"
"member"
updated_at: string

When the membership was updated.

user_id: string

User ID.

OrganizationsAddress

Create Organization Address
$ nirvana organizations:address create
POST/v1/organizations/{organization_id}/address
Get Organization Address
$ nirvana organizations:address get
GET/v1/organizations/{organization_id}/address
Update Organization Address
$ nirvana organizations:address update
PATCH/v1/organizations/{organization_id}/address
ModelsExpand Collapse
organization_address: object { id, city, country, 9 more }

Organization address details.

id: string

Address ID.

city: string

City or locality.

country: string

Two-letter ISO 3166-1 alpha-2 country code.

created_at: string

When the address was created.

line1: string

First line of the street address.

line2: string

Second line of the street address. Null when not provided.

organization_id: string

Organization ID the address belongs to.

postal_code: string

Postal or ZIP code.

state: string

State, province, or region. Null when not provided.

tax_id: string

Tax identification number. Null when not provided.

tax_id_type: string

Type of the tax identification number. Null when not provided.

updated_at: string

When the address was updated.

OrganizationsBilling

Get Organization Billing Summary
$ nirvana organizations:billing summary
GET/v1/organizations/{organization_id}/billing/summary
ModelsExpand Collapse
billing_history_entry: object { id, amount, created_at, 3 more }

A single billing history line item: a prepaid credit or a manual adjustment.

id: string

Unique identifier for the entry.

amount: string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

created_at: string

When the entry was recorded.

currency: string

ISO 4217 currency code.

type: "grant" or "adjustment"

Kind of entry.

"grant"
"adjustment"
description: optional string

Human-readable note describing the entry, when available.

billing_history_entry_list: object { items, pagination }
items: array of BillingHistoryEntry { id, amount, created_at, 3 more }
id: string

Unique identifier for the entry.

amount: string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

created_at: string

When the entry was recorded.

currency: string

ISO 4217 currency code.

type: "grant" or "adjustment"

Kind of entry.

"grant"
"adjustment"
description: optional string

Human-readable note describing the entry, when available.

billing_history_entry_type: "grant" or "adjustment"

Kind of entry.

"grant"
"adjustment"
daily_cost_point: object { cost, date }

Total usage cost for a single UTC day.

cost: string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

date: string

UTC calendar day (YYYY-MM-DD).

organization_daily_cost: object { currency, days, from, to }

Daily usage cost over a date range: one entry per UTC day (zero on idle days), summing open and closed resources. Suitable for a daily cost bar chart.

currency: string

ISO 4217 currency code.

days: array of DailyCostPoint { cost, date }

One entry per UTC day in the range, oldest first.

cost: string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

date: string

UTC calendar day (YYYY-MM-DD).

from: string

Inclusive start of the range, as a UTC calendar day (YYYY-MM-DD).

to: string

Inclusive end of the range, as a UTC calendar day (YYYY-MM-DD).