Auth API reference

Auth API · Apps

get/v1/apps/{app_id}Auth

Get app details

Path parameters

app_id*string

Id of the app.

Response · 200

id*string

Unique identifier of the app.

slug*string

URL-safe identifier of the app, unique within its parent.

Example: "acme-app"

display_name*string

Human-readable name of the app.

Example: "Acme"

workspace_id*string

Owning workspace UUID.

status*object

App status: `active`, `suspended` (sign-ins refused) or `archived`.

environment*object

Which environment this app IS. One app is one environment — there is no switch; a staging app is a separate app created via `POST /v1/apps/:appId/clone`. Set at create time and never changed afterwards. Every app that predates this field is `production`.

Example: "production"

created_by*string

Account that created the app.

metadata*object

Free-form JSON object you attach to the app; returned as stored.

created_at*string · date-time

When the app was created (ISO 8601).

updated_at*string · date-time

When the app was last changed (ISO 8601).

audit_retention_days*number

Days of `audit_log` history kept for this app. A nightly job deletes rows older than this. 30-3650.

Example: 365

webhook_attempt_retention_days*number

Days of outbound-webhook delivery-attempt history kept for this app. 7-365.

Example: 30

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}
Authorization: Bearer YOUR_TOKEN

Response

{
  "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
}