API reference · Organizations
Get an organization
/v1/orgs/{org_id}Returns the organization with your role in it (role is null when the caller is an API key).
Console session only: no API key can be granted the org:read permission it needs. Requires the org:read permission (a key's scope, or a role that includes it).
Request
Path parameters
org_idstringYour organization. The SDKs and the CLI fill it in from the API key.
ID with prefix org_
Response
200 Organization — The organization
objectstringrequiredAlways `organization`: the type of this object
One of
organizationidstringrequiredUnique ID (`org_…`)
ID with prefix org_
namestringrequiredIts name
slugstringrequiredShort URL-safe name, unique across the platform
rolestring | nullrequiredYour role in this organization; null when the caller is an API key
One of
owneradmindeveloperbillingviewercreated_atstring (date-time)requiredWhen it was created (ISO 8601, UTC)
Example response
{
"object": "organization",
"id": "org_01jc5zq4m8k3v6x9t2w7r0b1e4",
"name": "string",
"slug": "string",
"role": "owner",
"created_at": "2026-01-01T00:00:00.000Z"
}Errors
Errors use the standard envelope. What this operation can answer:
| Status | Type | When |
|---|---|---|
401 | authentication_error | The key or session is missing, revoked or expired. |
403 | permission_error | The credential lacks the permission this needs, or the organization is suspended. |
429 | rate_limit_error rate_limited | Too many requests; retry after retry-after seconds. |