Rensei docs

List the organizations (workspaces) the authenticated principal belongs to.

List the organizations (workspaces) the authenticated principal belongs to. - Rensei REST API operation reference.

GET
/api/org/list

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Response Body

The caller’s org memberships with their role, plus the active org id. An org-scoped API key returns only its bound org (role "admin").

application/json
  1. response
orgs*array<>
activeOrgId*|

Verified active organization hint, or null when no unique authorized choice is available.

Example Request
curl -X GET 'https://app.rensei.ai/api/org/list'
Example Response
{  "orgs": [    {      "id": "string",      "name": "string",      "slug": "string",      "role": "owner"    }  ],  "activeOrgId": "string"}