List organizations

The organizations your token can manage, with your role in each.

GET /organizations

Returns the orgs you can manage. What “can manage” means depends on the token:

  • A console token gets every org you belong to, and can manage any of them by naming it in the path (see Overview).
  • An org token gets the host’s org, or [] if you are not a member of it.

Not belonging to any org is an empty array, not an error.

Authorization

Any user token. The answer is scoped to the token, never widened by the request.

Response

200 OK with an array of organizations.

[
  {
    "id": "org_65f1c2a9e4b0d3f7a1c8e901",
    "slug": "acme",
    "logo": "https://…",
    "role": "owner"
  }
]
FieldTypeDescription
idstringorg_…
slugstring
logoURL
roleowner | memberYour role in it

Example

curl https://loginwith.loginwith.dev/organizations \
  -H "Authorization: Bearer $TOKEN"