Skip to content
Hayonix

API reference · Organizations

List the organizations you belong to

GET/v1/orgs
Console sessionPaginated

Returns every organization you are a member of, with your role in each, ordered by ID (oldest first). Only available to a signed-in user, not to API keys.

Console session only. The console calls this with a signed-in session; API keys are refused.

Request

Query parameters

  • limitinteger

    1–200, default 50

    1–200

  • cursorstring

    `next_cursor` of the previous page

    up to 200 characters

Response

200 a page of results — Your organizations, oldest first

  • The items of this page.

    Show 6 fields of data
    • objectstringrequired

      Always `organization`: the type of this object

      One oforganization

    • idstringrequired

      Unique ID (`org_…`)

      ID with prefix org_

    • namestringrequired

      Its name

    • slugstringrequired

      Short URL-safe name, unique across the platform

    • rolestring | nullrequired

      Your role in this organization; null when the caller is an API key

      One ofowneradmindeveloperbillingviewer

    • created_atstring (date-time)required

      When it was created (ISO 8601, UTC)

  • next_cursorstring | nullrequired

    Pass as `cursor` for the next page; null on the last page.

Example response
Example response
{
  "data": [
    {
      "object": "organization",
      "id": "org_01jc5zq4m8k3v6x9t2w7r0b1e4",
      "name": "string",
      "slug": "string",
      "role": "owner",
      "created_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "next_cursor": "string"
}

Errors

Errors use the standard envelope. What this operation can answer:

Errors
StatusTypeWhen
400invalid_request_errorA parameter or body field is missing or not allowed; param names it.
401authentication_errorThe key or session is missing, revoked or expired.
403permission_errorThe credential lacks the permission this needs, or the organization is suspended.
429rate_limit_error rate_limitedToo many requests; retry after retry-after seconds.