Substratal Apps Substratal Apps Hub Interface Specifications
GitHub

Docs 00-shared/API-SCREEN-MAP.csv

API → screen map

All 154 operations of the Substratal Apps Platform API and the screens that call them (100 % covered). Screen IDs link to the screen specs.

methodpathsummaryscreens
GET/healthHealth checkGLB-03
POST/auth/signupCreate an account with email and passwordAUTH-03
POST/auth/loginExchange email and password for a session (or an MFA challenge)AUTH-01
POST/auth/mfa/verifyComplete a login that returned an MFA challengeAUTH-02
POST/auth/mfa/passkey-optionsPasskey request options for a sign-in MFA challenge (with the mfa_token)AUTH-02
POST/auth/reauthenticateProve a second factor again, for step-up (User token, MFA enabled)GLB-03
POST/auth/reauthenticate/passkey-optionsPasskey request options for step-up (User token)GLB-03
POST/auth/token/refreshRotate a platform refresh token for a new access tokenGLB-03
POST/auth/logoutRevoke the current session, or every sessionACC-01 GLB-03
POST/auth/app-tokensMint a per-app JWT from a platform session (embedded login); claims include entitlement_status, effective_permissions and plan (free|standard)APP-03
POST/auth/oauth/authorization-codesMint a one-time authorization code for a hosted launch (PKCE)APP-03
POST/auth/oauth/tokenExchange an authorization code or app refresh token for an app token(called by the launched Application, not the Hub; see APP-03)
POST/auth/email/verifyConfirm an email address from an emailed tokenAUTH-04
POST/auth/email/verify/resendRe-send a verification email (always 202)AUTH-04
POST/auth/password/forgotSend a password-reset email (always 202)AUTH-05
POST/auth/password/resetSet a new password from a reset token (revokes every session)AUTH-06
POST/auth/invitations/acceptSet a password on an invited account, activate it, and sign inAUTH-07
POST/auth/sso/{provider}/callbackComplete an SSO login (reserved — 501 until the broker integration ships)AUTH-01
POST/users/{id}/passwordChange password given the current one (self only)ACC-03
POST/users/{id}/mfa/totpBegin TOTP enrollment (self only)ACC-05
DELETE/users/{id}/mfa/totpSupport reset of a user's TOTP (requires users.manage)USR-03
POST/users/{id}/mfa/totp/confirmConfirm TOTP enrollment with a first code; returns recovery codes onceACC-05
POST/users/{id}/mfa/totp/disableTurn TOTP off given a current code or recovery code (self only)ACC-06
POST/users/{id}/mfa/passkeys/registration-optionsOptions to register a new passkey (self)ACC-04 ACC-05
GET/users/{id}/mfa/passkeysList the User's passkeys (self or users.manage)ACC-04 USR-03
POST/users/{id}/mfa/passkeysRegister a passkey (self)ACC-04 ACC-05
PATCH/users/{id}/mfa/passkeys/{passkeyId}Rename a passkeyACC-04
DELETE/users/{id}/mfa/passkeys/{passkeyId}Remove a passkey (step-up)ACC-04
GET/users/{id}/sessionsList active sessions (self or users.manage)ACC-04 USR-04
POST/users/{id}/sessions/revoke-allRevoke every session (self or users.manage)ACC-04 USR-04
DELETE/users/{id}/sessions/{sessionId}Revoke one sessionACC-04 USR-04
GET/usersList or search usersUSR-01 NTF-06 GLB-01 ROL-02
POST/usersCreate (invite) a userUSR-02
POST/users/bulk-inviteInvite up to 25 people at once (per-item results)USR-02
POST/users/bulk-suspendSuspend up to 25 Users at once (step-up; per-item results)USR-01
GET/users/{id}Fetch one userACC-01 ACC-04 APP-01 USR-03
PATCH/users/{id}Update email (self, pending verification) or status (users.manage)ACC-02 USR-03
DELETE/users/{id}Soft-delete a user (self or users.manage)USR-03
POST/users/{id}/suspendSuspend a user (users.manage)USR-05
POST/users/{id}/invitationRe-send the invitation email to an invited user (users.manage)USR-03
GET/users/{id}/exportExport everything this API holds about this userACC-07 USR-03
POST/users/{id}/erasure-requestsRequest right-to-erasure (soft-delete now, hard-delete cascade in 7 days)ACC-08
DELETE/users/{id}/erasure-requests/currentCancel a scheduled erasure inside its 7-day window (users.manage)USR-03
GET/users/{id}/erasure-requests/currentRead the User's pending erasure requestUSR-03
GET/users/{id}/profileFetch global ProfileACC-01 USR-03
PATCH/users/{id}/profileUpdate global Profile (self or users.manage)ACC-01
POST/users/{id}/avatar/uploadsStart an avatar upload (presigned POST)ACC-01
POST/users/{id}/avatar/uploads/{uploadId}/completeCheck the uploaded avatar and set avatar_urlACC-01
DELETE/users/{id}/avatarRemove the User's hosted avatarACC-01
GET/users/{id}/settingsFetch global Settings (self, or platform users.list)SET-01 NTF-03
PATCH/users/{id}/settingsUpdate global Settings (self or users.manage)SET-01
GET/users/{id}/apps/{appId}/profileFetch per-app AppProfile (self, the app's own key, or platform users.list; defaults if none written yet)APP-04
PATCH/users/{id}/apps/{appId}/profileUpdate per-app AppProfile (custom is merged one level; null removes a key)APP-04
GET/users/{id}/apps/{appId}/settingsFetch fully resolved per-app settings (self, the app's own key, or platform users.list)SET-02 SET-01
PATCH/users/{id}/apps/{appId}/settingsWrite per-app overrides (validated against settings_schema; null clears)SET-02 SET-01
GET/applicationsList the catalog (filtered by visibility rules)APP-01 ACX-01 APL-01 BIL-01 NTF-01
POST/applicationsRegister an Application (applications.manage, or self-service into review)APL-02
GET/applications/{id}Fetch one ApplicationAPP-02 SET-02 APL-03 ACX-05
PATCH/applications/{id}Update a catalog entry (owner — configuration; applications.manage — anything)APL-03 APL-04 APL-05 APL-06
DELETE/applications/{id}Delete an unreferenced test-mode Application (applications.manage)APL-03
POST/applications/{id}/icon/uploadsStart an icon upload (presigned POST)APL-02 APL-03
POST/applications/{id}/icon/uploads/{uploadId}/completeCheck the uploaded icon and set icon_urlAPL-02 APL-03
DELETE/applications/{id}/iconRemove the Application's hosted iconAPL-03
GET/users/{id}/entitlementsA user's entitlements, personal and org-sourcedAPP-01 APP-05 ACX-01
POST/users/{id}/entitlementsGrant a personal EntitlementACX-02
GET/entitlementsList entitlements across users (entitlements.manage or the Application's owner; app keys and owners confined)ACX-05
GET/entitlements/{id}Fetch one entitlementACX-03
PATCH/entitlements/{id}The toggle: change status, term, source (trial→purchase), order_id, or an org grant's member scopeORG-06 ORG-07 ACX-01 ACX-03
DELETE/entitlements/{id}Hard-remove a grant made in error (no order_id, under 24 hours old)ACX-01
POST/entitlements/bulk-updateTurn off, turn on or revoke up to 25 Entitlements at onceACX-05
GET/permissionsList every Permission key the caller can seeROL-01 ROL-02
GET/rolesList RolesROL-01
POST/rolesDefine a RoleROL-03
GET/roles/{id}Fetch one RoleROL-02
PATCH/roles/{id}Change a Role's permissions or descriptionROL-02
DELETE/roles/{id}Delete an unassigned, non-seed RoleROL-02
GET/users/{id}/rolesList a user's Role assignments (including implicit default_app_role)ROL-04
POST/users/{id}/roles/{roleId}Assign a Role (idempotent — 200 if already held)ROL-04
DELETE/users/{id}/roles/{roleId}Remove a Role assignment (idempotent)ROL-04
GET/users/{id}/apps/{appId}/effective-permissionsThe live access check (always 200), with the plan (free|standard) the app token carriesAPP-02 ACX-04
GET/organizationsList your Organizations (all, with organizations.manage)APP-01 ORG-01
POST/organizationsCreate an Organization (any active User; caller becomes org_admin)ORG-02
GET/organizations/{id}Fetch one OrganizationORG-03
PATCH/organizations/{id}Rename (org admin), or suspend/reactivate (organizations.manage)ORG-08
GET/organizations/{id}/membersList membersORG-03 BIL-02
POST/organizations/{id}/membersInvite a member by email (org admin), or add one directly by user_id (organizations.manage)ORG-04
POST/organizations/{id}/members/me/acceptAccept a pending membership (the invited User's own token)ORG-09
PATCH/organizations/{id}/members/{userId}Change a member's roleORG-05
DELETE/organizations/{id}/members/{userId}Remove a member or withdraw an invitation; or leave or decline (userId = me)ORG-05 ORG-08 ORG-09
GET/organizations/{id}/scim-tokenShow the Organization's SCIM token (never its secret)ORG-08
POST/organizations/{id}/scim-tokenCreate (or rotate) the Organization's SCIM tokenORG-08
DELETE/organizations/{id}/scim-tokenTurn SCIM off for the OrganizationORG-08
GET/organizations/{id}/entitlementsList org-wide (seat) grantsORG-06
POST/organizations/{id}/entitlementsGrant an app to the whole OrganizationORG-07
GET/tenantsList Tenants (your own; all with tenants.manage)BIL-04
GET/tenants/{id}Fetch one TenantBIL-04
GET/tenants/{id}/tier-change-requestsList tier-change requests for a TenantBIL-04
POST/tenants/{id}/tier-change-requestsOpen a tier-change request on a customer's behalf (tenants.manage)BIL-04
GET/tenants/{id}/tier-change-requests/{requestId}Fetch one tier-change requestBIL-04
PATCH/tenants/{id}/tier-change-requests/{requestId}Schedule, start, complete, or cancel a tier-change request (tenants.manage)BIL-04
GET/users/{id}/subscriptionA User's plan, what covers it, and their own subscription (self or billing.manage)USR-03 BIL-01
GET/billing/pricesStandard's prices, monthly and yearly (User token)APP-01 BIL-01 BIL-02
POST/users/me/billing/checkout-sessionsStart a checkout on the payment page to subscribe yourself to Standard, monthly or yearly (User token)BIL-03
POST/users/me/billing/checkout-sessions/{session_id}/confirmConfirm your checkout on return and apply the subscription at once (User token)BIL-03
POST/users/me/billing/portal-sessionsOpen the billing portal for your own subscription (User token)BIL-03
GET/organizations/{id}/subscriptionAn Organization's plan and Standard subscription (org admin or billing.manage)BIL-02
PATCH/organizations/{id}/subscriptionChoose which members the Organization's subscription covers (org admin)BIL-02
POST/organizations/{id}/billing/checkout-sessionsStart a checkout on the payment page to subscribe the Organization to Standard, monthly or yearly (org admin, User token)BIL-03
POST/organizations/{id}/billing/checkout-sessions/{session_id}/confirmConfirm the Organization's checkout on return and apply the subscription at once (org admin, User token)BIL-03
POST/organizations/{id}/billing/portal-sessionsOpen the billing portal for the Organization's subscription (org admin or billing.manage, User token)BIL-03
GET/subscriptionsList every subscriber's subscription, most recently updated first (billing.manage)RPT-01
GET/audit-eventsQuery the audit log (hot window only)KEY-04 AUD-01
GET/audit-events/{id}Fetch one Audit EventAUD-02
POST/audit-exportsExport Audit Events to a file (asynchronous)AUD-01
GET/audit-exports/{id}Fetch an export's status, and its download link once readyAUD-01
GET/webhooksList subscriptions visible to the callerWHK-01
POST/webhooksSubscribe a URL to event typesWHK-02
GET/webhooks/{id}Fetch one subscriptionWHK-03
PATCH/webhooks/{id}Change url, events, description, api_version, or re-enableWHK-02
DELETE/webhooks/{id}UnsubscribeWHK-03
POST/webhooks/{id}/rotate-secretIssue a new signing secret (24-hour overlap)WHK-03
POST/webhooks/{id}/testSend a webhook.test event nowWHK-03
GET/webhooks/{id}/deliveriesRecent delivery attempts (30-day log)WHK-03
GET/webhooks/{id}/deliveries/{deliveryId}Fetch one delivery attempt (30-day log)WHK-04
POST/webhooks/{id}/deliveries/{deliveryId}/redeliverRe-send one past event (same event id)WHK-03
GET/webhook-deliveriesDelivery attempts across every subscription visible to the caller (30-day log)WHK-01 OPS-05
GET/applications/{id}/push-credentialsList the push providers an Application has configured (the owner, the app's own key, or applications.manage)APL-07
POST/applications/{id}/push-credentialsConfigure one push provider (the owner or applications.manage, User token only)APL-07
GET/applications/{id}/push-credentials/{provider}Fetch one provider's configurationAPL-07
PATCH/applications/{id}/push-credentials/{provider}Replace key material, change non-secret fields, or re-enable a failed credential (User token only)APL-07
DELETE/applications/{id}/push-credentials/{provider}Remove a push provider (User token only)APL-07
GET/push-credentialsList push credentials across Applications (applications.manage, or an owner's own)APL-01 GLB-02 OPS-05
GET/users/{id}/devicesList a User's push devices (self, the app's own key, or users.list)NTF-03 NTF-05
POST/users/{id}/devicesRegister a push device, or refresh an existing registration (self or the app's own key)NTF-04
GET/users/{id}/devices/{deviceId}Fetch one deviceNTF-05
PATCH/users/{id}/devices/{deviceId}Update a device's name, app version, environment, or rotated token (self or the app's own key)NTF-03 NTF-04
DELETE/users/{id}/devices/{deviceId}Unregister a device (self, the app's own key, or users.manage)NTF-03 NTF-05
POST/users/{id}/devices/{deviceId}/testSend a test push to one device and wait for the provider's answer (self or the app's own key)NTF-03
GET/users/{id}/notificationsList a User's notification inbox (self, the app's own key, or users.list)NTF-01 NTF-05
POST/users/{id}/notificationsSend one notification to one User (the app's own key with notifications.send, or platform notifications.send)NTF-06
GET/users/{id}/notifications/unread-countCount unread notifications, in total and per Application (self or the app's own key)APP-01 NTF-01 GLB-03
POST/users/{id}/notifications/mark-readMark every unread notification matching the filters as read (self or the app's own key)NTF-01
GET/users/{id}/notifications/{notificationId}Fetch one notification, with its per-device deliveriesNTF-02 NTF-05
PATCH/users/{id}/notifications/{notificationId}Mark one notification read, unread, or archived (self or the app's own key)NTF-01 NTF-02
GET/api-keysList keys the caller may manageKEY-01 CFG-02
POST/api-keysCreate a key (api_keys.manage, or the Application's owner for an app-scoped key)KEY-02
GET/api-keys/{id}Fetch one key (never the secret)KEY-04
PATCH/api-keys/{id}Change name, permissions, or restrict_destructiveKEY-04
DELETE/api-keys/{id}Revoke permanentlyKEY-04
POST/api-keys/{id}/rotateIssue a new secret, invalidating the old one immediately (no overlap)KEY-04
GET/platform/settingsRead the platform's runtime switches and client feature flagsAUTH-03 GLB-03 CFG-02
PATCH/platform/settingsChange the platform's runtime switches and client feature flags (operations.manage)CFG-02
GET/usageRequest counts, errors, and latency per day, week, or monthRPT-01 APL-03 KEY-04
GET/statsCurrent counts for the console's home screen, in one callOPS-01 RPT-01