Skip to content

List projects for the active tenant

Session principals: scoped to activeTenantId; tenant ADMIN+/SUPER_ADMIN see all tenant projects, others see only their own. A project-level API key principal (the project’s own apiKey/apiSecret, header X-API-Key or _ak/key query — NOT a scoped key) returns just that one project. Does not use requireApiScope.

Projects

Media typeapplication/json
object
projects
Array<object>
object
id
string
name
string
slug
string
description
string | null
domain
string | null
isActive
boolean
createdAt
string
updatedAt
string
_count
object
members
integer

Stale/absent active tenant (session)

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Not authorized

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}