/v1/apps/{app_id}/audit-sink/setup-statusAuthGet the audit export checklist: destination, receiver test and delivery.
Rows, in order: `destination` (not_set until a sink exists), `test_batch` (pass once the receiver accepted a test batch with the current address and secret; blocked when the last test was refused; carries `test.action: audit_sink.test`, run with `POST /v1/apps/{appId}/audit-sink/test`), and `delivery` (blocked when export stopped after repeated failures, attention while paused or while recent batches fail). Computed from the stored sink on every request; answers 200 whether or not a sink exists.
Path parameters
app_id*stringId of the app.
Response · 200 The checklist, computed now.
checked_at*string · date-timeWhen the server computed these rows.
Example: "2026-10-16T12:00:00.000Z"
complete*booleanTrue when no row is `not_set` or `blocked`. `attention` rows do not stop setup from being complete.
Example: false
rows*arrayChecklist rows in the order they should be shown.
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/audit-sink/setup-status
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const setupStatus = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").auditSink.setupStatus();auth.admin.app(…).auditSink.setupStatus(options?): Auth.SetupStatus
Response
{
"checked_at": "2026-10-16T12:00:00.000Z",
"complete": false,
"rows": [
{
"id": "redirect_origins",
"title": "Sites allowed to start sign-in",
"state": "blocked",
"detail": "No site is allowed to start sign-in, so web sign-in is refused. Add the origin of your site, for example https://app.example.com.",
"fix": {},
"test": {}
}
]
}