Organizations

List user organizations

List organizations the current user is a member of.

GET/api/orgs

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

curl -X GET "https://loading/api/orgs"
{
  "organizations": [
    {
      "id": "string",
      "name": "string",
      "slug": "string",
      "role": "owner"
    }
  ]
}
{
  "type": "https://docs.appstrate.dev/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or missing session",
  "code": "unauthorized",
  "requestId": "req_abc123"
}