Auth API reference

Auth API · Consumer-Auth

get/{app_slug}/v1/auth/me/tenantsAuth

List the EndUser's tenant memberships in this app

Returns each tenant the caller is a member of, including the tenant slug + display name and the member's role. Powers a tenant-switcher UI on the customer's product.

Path parameters

app_slug*string

Slug of the app.

Response · 200 Every tenant membership the caller holds in this app.

data*array

The tenants the user belongs to.

Example

Request

GET https://api.auth.productcraft.co/{app_slug}/v1/auth/me/tenants
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "tenant_id": "string",
      "display_id": "tnt_3a9f2b1c0d4e",
      "tenant_slug": "string",
      "display_name": "string",
      "role_name": "string",
      "joined_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}