/v1/apps/{app_id}/credentialsAuthList M2M clients
Path parameters
app_id*stringId of the app.
Query parameters
limitintegerPage size. Defaults to 20, clamped to 100.
cursorstringOpaque `next_cursor` from the previous page.
Response · 200
data*arrayThe M2M client 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/{app_id}/credentials
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 credential of auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").credentials.list()) {
console.log(credential);
}
const page = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").credentials.list({}, { timeout: 5_000 });auth.admin.app(…).credentials.list(params?, options?): PagePromise<Auth.M2mClientSummary>
Response
{
"data": [
{
"id": "string",
"app_id": "string",
"client_id": "string",
"name": "string",
"is_active": false,
"last_used_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"pagination": {
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ",
"has_more": false
}
}