Skip to main content
GET
Get the current organization
Returns the organization tied to the calling key or session. Any active member can call it. Use it as a first check in scripts so you know which organization the rest of your calls affect. Related guide: User provisioning: onboard people at scale. The organization the key or session belongs to. Any active member.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Response

200 - application/json

The organization

id
string
name
string
slug
string
byoLegacy
boolean

Cloud creation posture. true = the organization creates bring-your-own agents only; false = hosted agents are the default. Ignored on self-hosted deployments.

byoEnabled
boolean

When byoLegacy is false, whether bring-your-own agents may be created alongside hosted ones. Ignored on self-hosted deployments.