/{app_slug}/v1/auth/me/tenantsAuthList 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*stringSlug of the app.
Response · 200 Every tenant membership the caller holds in this app.
data*arrayThe tenants the user belongs to.
Example
Request
GET https://api.auth.productcraft.co/{app_slug}/v1/auth/me/tenants
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const myTenants = await auth.consumer("my-app").me.tenants.list();auth.consumer(…).me.tenants.list(options?): Auth.MyTenants
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"
}
]
}