/v1/appsAuthList apps in workspaces the caller is a member of. Pass `workspace_id` to scope the result to a single workspace — required from the per-workspace console page so cross-tenant memberships do not leak.
Query parameters
workspace_idstringLimit the result to this one workspace (UUID). The caller must be a member; an id the caller does not belong to returns nothing. Omit to cover every workspace the caller belongs to.
limitintegerPage size (default 20, max 100).
cursorstringOpaque `next_cursor` from the previous page.
Response · 200
data*arrayThe app items on this page.
pagination*objectnext_cursor*stringOpaque cursor for the next page. `null` when no more pages are available.
Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ"
has_more*booleanTrue iff another page exists; if true, pass `next_cursor` on the next request.
Example: false
Example
Request
GET https://api.auth.productcraft.co/v1/apps
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
for await (const app of auth.apps.list()) {
console.log(app);
}
const page = await auth.apps.list({}, { timeout: 5_000 });auth.apps.list(params?, options?): PagePromise<Auth.App>
Response
{
"data": [
{
"id": "string",
"slug": "acme-app",
"display_name": "Acme",
"workspace_id": "string",
"status": {},
"environment": "production",
"created_by": "string",
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"audit_retention_days": 365,
"webhook_attempt_retention_days": 30
}
],
"pagination": {
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ",
"has_more": false
}
}