Organizations (Beta)

List and manage organizations the authenticated caller can access.

List organizations the caller can access

get

Returns every organization the authenticated user / API key can act in, ordered with the primary (default-fallback) org first. Use this to discover valid org_id values to pass into other beta tools — required for users who belong to multiple orgs and want to scope a particular call to a non-primary org.

Responses
200

OK

application/json
idstringRequired

Organization ID. Pass as org_id to other tools.

namestringRequired

Human-readable organization name.

domainstring · nullableOptional

Email domain associated with the org (e.g. 'acme.com'), or null if unset. For other org-management fields (postal address, deactivation flag, created_at), use get_organization on a specific org_id.

rolestring · enumRequired

Caller's role in this org: 'user', 'admin', 'support', 'cloud_rep', or 'restricted_user'. Staff users are reported as 'admin' for every active org.

Possible values:
kindundefined · enumRequired

How the caller has access: 'direct' (regular member), 'staff' (staff-level access to every active org), or 'partnership' (inherited via a channel partnership).

Possible values:
is_primarybooleanRequired

True for the org the caller's tokens default to when no org_id is passed. Matches the earliest-joined direct membership returned by User.active_memberships.

denied_permissionsstring[]Required

List of Resource:action strings the caller's role is denied (e.g. 'PurchasePlanV2:execute'). Anything not listed is permitted. Use to gate write/destructive recommendations.

get
/beta/v1/organizations

Get an organization's management details

get

Returns the org-management view of a single organization: name, domain, primary address, deactivation flag, and created_at. For the cross-org list of orgs the caller can access (with role / kind / denied_permissions), use GET /organizations.

Path parameters
org_idstring · uuidRequired
Responses
200

OK

application/json
idstringRead-onlyOptional

Organization ID.

namestringRequired

Organization name. Unique across the platform.

domainstring · nullableOptional

Email domain associated with the org (e.g. 'acme.com'). Used for domain-based onboarding flows.

created_atstring · date-timeRead-onlyOptional

When the org was created.

primary_addressany ofOptional

The org's primary postal address (optional).

or
object · nullableOptional
get
/beta/v1/organizations/{org_id}

Update an organization's management details

patch

Partial-update: every field is optional. Send only the fields you want to change. Sending primary_address replaces the existing address in full; pass null to clear it. Deactivation is intentionally not exposed here — use POST /organizations/<org_id>/deactivate. Requires the caller to have admin role on the org (the Organization:write casbin permission).

Path parameters
org_idstring · uuidRequired
Body
namestring · min: 1Optional

New organization name.

domainstring · min: 1 · nullableOptional

New email domain, or null to clear.

primary_addressany ofOptional

Replacement primary address. Send the full address object. Pass null to clear the existing address.

or
object · nullableOptional
Responses
200

OK

application/json
idstringRead-onlyOptional

Organization ID.

namestringRequired

Organization name. Unique across the platform.

domainstring · nullableOptional

Email domain associated with the org (e.g. 'acme.com'). Used for domain-based onboarding flows.

created_atstring · date-timeRead-onlyOptional

When the org was created.

primary_addressany ofOptional

The org's primary postal address (optional).

or
object · nullableOptional
patch
/beta/v1/organizations/{org_id}

Deactivate an organization

post

Soft-disables the organization: it stops appearing in list_organizations results and members lose access. Intentionally a one-way door from this API surface — there is no corresponding reactivate endpoint, and once deactivated the org cannot be reached via these admin endpoints at all (the auth layer filters deactivated orgs). Reactivation requires reaching out to Archera support. Returns 204 with no body — there is no further state the caller can read post-deactivation. Requires the caller to have admin role on the org (the Organization:write casbin permission).

Path parameters
org_idstring · uuidRequired
Responses
post
/beta/v1/organizations/{org_id}/deactivate

No content

Last updated

Was this helpful?