Herald
OpenapiExt

List a user's organizations in the caller's Client App

Every organization of the user under the calling app, with the user's tier in each. Deleted organizations drop out (membership cascade).

GET
/api/ext/realms/{realmId}/orgs

Every organization of the user under the calling app, with the user's tier in each. Deleted organizations drop out (membership cascade).

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

realmId*string

Realm ID

Query Parameters

userId*string

User account ID

page?integer

Page number (1-based, default 1)

Formatint64
Range0 <= value
pageSize?integer

Page size (1-100, default 20)

Formatint64
Range0 <= value

Response Body

User's organization list

application/json
  1. response
items*array<>
page*integer
Formatint64
Range0 <= value
pageSize*integer
Formatint64
Range0 <= value
total*integer
Formatint64
Example Request
curl -X GET 'https://example.com/api/ext/realms/string/orgs?userId=string'
Example Response
{
  "items": [
    {
      "externalId": "string",
      "isOwner": true,
      "joinedAt": "string",
      "name": "string",
      "orgId": "string",
      "role": {
        "id": "string",
        "name": "string"
      }
    }
  ],
  "page": 0,
  "pageSize": 0,
  "total": 0
}