Skip to main content
Everything about an app except its licenses, variables, webhooks and access lists, which have their own pages. Rotating an app’s secret or signing key, the customer portal policy and Commerce stay in the dashboard.

List apps

endpoint
Your apps, sorted by name. Deleted apps are left out. Scope read:apps.
createdAt can be null on an old app.

Create an app

endpoint
Creates an app the way the dashboard does: a new app secret and an Ed25519 signing key. Scope write:apps. Free. At most 20 apps an hour per account through the API.

Request body

Any other field is a 400.

Response (201)

appSecret is in this response only. AuthForge keeps a hash of it. Store it now; if it is lost, rotate it in the dashboard.
signingPublicKey is the raw 32-byte Ed25519 public key in base64, the value the SDKs take to verify signed responses.

Get an app

endpoint
One app’s settings. Never its secret or private key. Scope read:apps.

Update an app

endpoint
Set or clear the credit burn caps and turn self-serve offline activation on or off. Scope write:apps.
At least one field. null removes a cap. Responds { "ok": true }. The name cannot be changed through the API.

Delete an app

endpoint
Deletes the app, as the dashboard does. Needs both write:apps and admin:apps.
Validations for the app stop at once (invalid_app), and the app disappears from every list and route. Deleting an app that is already deleted answers { "ok": true, "alreadyDeleted": true }.

Pause and unpause

endpoint
Takes the app offline: validations and check-ins answer app_disabled for every customer. Optional body { "reason": "..." } (up to 500 characters). Scope admin:apps. Responds { "ok": true, "pausedAt": "..." }.
endpoint
Brings it back. Scope admin:apps. Responds { "ok": true }.

Usage

endpoint
Authentication totals: totalAuths, successCount, failureCount, uniqueHwids. period defaults to 24h. Scope read:apps.
endpoint
Failed authentications grouped by license and result, newest first, at most 20 groups. since defaults to 24 hours ago. Scope read:logs.

Auth logs

endpoint
Search the log, newest first. Scope read:logs. Query: startDate and endDate (ISO 8601, default the last 24 hours), result, licenseKey, ip, hwid, limit (up to 500, default 100) and cursor. A filtered page can hold fewer than limit rows; keep paging until cursor is null.
Your app ID ships inside your app, so anyone can send requests that name it. So that such requests cannot fill your log, a request turned away by the per-IP limit and a check-in whose session token does not verify write no row, and a wrong app secret writes at most 10 invalid_app rows a minute per app, with the detail app secret did not match.

Follow the log

endpoint
The log oldest first, for a client that polls, such as a terminal tail. Scope read:logs.
  • Send cursor as since next time. It stays the same when nothing new came in.
  • hasMore: true means a full page came back and more may be waiting: ask again at once. Otherwise wait a few seconds; every 3 to 5 seconds is plenty and well inside the rate limit.
  • Reads stop two seconds behind the clock (settledUntil). A log row is stamped when its request starts and written just after, so the newest two seconds are left for the next poll and no row is skipped.
  • count is how many events the row stands for. Successful check-ins are logged once per credit they cost, so such a row stands for several.
  • Each call reads only the rows it returns, with no filter. Filter on your side, or search with GET /v1/apps/:appId/logs.
  • Rows are kept for 90 days.