Substratal Apps Substratal Apps Hub Interface Specifications
GitHub

Docs 00-shared COPY-AND-STATES.md

Copy, States & Error Messages

Use these strings verbatim (localize via each platform's string catalog). Sentence case on every platform.

Status and value labels

Domain value Label Tile / row helper text
entitlement active Active —
scheduled Scheduled Starts {date}
disabled Turned off Turned off by an administrator
expired Expired Access ended {date}
revoked Revoked Access was removed
none No access Get access · (standard app on Free) Included with Standard
source purchase / trial / admin_grant / org_seat Purchased / Trial / Granted by admin / Via {org name}
source free Free Managed by Substratal
source subscription Standard Your subscription · or · Via {org name}'s subscription
app access_tier free / standard Free / Standard
user plan free / standard Free / Standard
subscription active / trialing / past_due Active / Trial / Payment issue — / Trial ends {date} / We couldn't charge your card. Update it in Manage billing.
subscription canceled / unpaid / incomplete / incomplete_expired / paused Canceled / Unpaid / Checkout not finished / Checkout expired / Paused
cancel_at_period_end: true Ends {date} Standard access continues until {date}.
user invited / suspended / deleted Invited / Suspended / Deleted
member scope all_members / allowlist / denylist Everyone in the organization / Only selected members / Everyone except selected members
tier shared / isolated / dedicated_region Shared / Isolated / Dedicated region
device active / inactive On / Off
device inactive_reason unregistered / session_revoked / user_suspended / user_deleted / stale / limit / credential_removed / application_retired Notifications turned off on the device / Signed out / Account suspended / Account deleted / Not opened in 9 months / Replaced by a newer device / Push setup removed by the app / App retired
notification state unread / read / archived Unread / Read / Archived
notification priority high Important
notification source platform Substratal
push status queued / sent / failed / skipped Sending / Pushed to {n} devices / Couldn't push / Not pushed
skip_reason push_not_requested / push_disabled / no_devices / no_credentials / credential_failed / expired Sent to inbox only / Notifications are off for this app / No devices to push to / Push isn't set up for this app / Push setup needs attention / Expired before it could be sent
push credential active / failed / disabled Active / Needs attention / Retired disabled: The application was retired
app review_status approved / pending_review / rejected / suspended / retired Approved / In review / Rejected / Suspended / Retired pending_review: In review {n} days · retired: Retired {date}. Nothing can be added to it.
app holder_count {n} people have access a User grant and an Organization grant count once each
list count (page.total) {n} {things} total_capped: true → 10,000+ {things}

Confirmations

Action Title Body Destructive button
Access off Turn off {app} for {name}? They'll lose access right away. You can turn it back on later. Turn off
Access off (platform-managed) Turn off {app} for {name}? This access comes with their {Free plan / Standard subscription}. It stays off until you turn it back on, even if their plan changes. Turn off
Remove grant (<24h) Remove this grant? Use this only for a grant made by mistake. It won't appear as revoked — it'll be gone. Remove
Suspend user Suspend {name}? They'll be signed out everywhere, stop receiving push notifications, and can't sign in until reactivated. Suspend
Delete user Delete {name}? Their account is deactivated. An admin can restore it. Delete
Delete my account Delete your account? Your account is deactivated now and permanently erased on {date}. Until then, support can cancel it. Delete account
Delete my account (paying) Cancel your subscription first? You have a Standard subscription. Deleting your account doesn't stop billing — cancel it in Manage billing. Manage billing (secondary: Delete anyway)
Rotate API key Rotate this key? The current secret stops working immediately. Update every service that uses it first. Rotate now
Revoke API key Revoke {key name}? This can't be undone. Revoke
Rotate webhook secret Rotate signing secret? Both the old and new secret are valid for 24 hours. Rotate
Sign out everywhere Sign out of all other sessions? Every other device will need to sign in again and will stop receiving push notifications until then. Sign out
Sign out everywhere (staff) Sign {name} out everywhere? Every session they have ends now, on every device, and their push notifications stop until they sign in again. Their account stays active. Sign out everywhere
Remove member Remove {name} from {org}? They lose any app access that came from this organization, including its Standard subscription. Remove
Change org coverage Update who's covered? {n} people gain Standard and {m} lose it right away. Billing changes on the next daily sync. Update
Remove device Stop notifications on {device}? That device stops getting push notifications until it's set up again. Remove
Turn off push (this device) Turn off notifications on this device? You'll still see everything in your Inbox. Turn off
Retire application Retire {app}? This can't be undone. Everyone loses access, its API keys are revoked, its webhooks and push credentials are turned off, and its devices stop getting notifications. Its roles, settings and audit history stay. Tell people why: Retire (needs a reason)
Delete test application Delete {app}? This test application and its roles are deleted. Its audit history stays. Type {slug} to confirm. Delete
Change access tier (live app) Change the access tier to {Free / Restricted / Standard}? Standard → Free: Everyone gains access. Standard subscribers keep it. · Restricted → Free: Everyone gains access. People you granted access keep it. · → Restricted: Only people you've granted access keep it. Everyone else loses access, Standard subscribers included. · Free → Standard: Only people on the Standard plan, and people you've granted access, keep it. Everyone else loses access. · Restricted → Standard: People on the Standard plan gain access. People you granted access keep it. Then: Its tokens still include each user's plan, so the app can keep some features for Standard subscribers. Change tier (secondary: Keep as is)
Remove push credential Remove {APNs / FCM / Web Push}? {app} stops sending push notifications through {provider}. (Web Push: every browser that signed up for notifications has to sign up again.) Remove

Empty states

Screen Title Body Action
Home (no apps) No apps yet When someone gives you access to an app, it shows up here. —
Inbox You're all caught up New alerts and updates from your apps show up here. —
Inbox (Archived) Nothing archived Notifications are kept for 90 days. —
Devices No devices yet Turn on notifications to get alerts on this device. Turn on
Organizations No organizations Create one to manage a team and share apps. New organization
Users (search miss) No results for "{q}" Check the spelling or search by user ID. Clear search
API Keys No API keys Create a key so your backend can call Substratal. Create key
Webhooks No webhooks Get notified when access changes. Add webhook
Push credentials Push isn't set up Add APNs, FCM or Web Push so this app can send notifications. Add provider
Audit No events in this range Try a wider date range. —
Forbidden You don't have access to this Ask an administrator if you think you should. —

Upsell and plan copy

Where Copy
Standard tile on Free Included with Standard
Upsell sheet Get every app and service for $6.99 a month, or $76.99 a year. · Upgrade to Standard
Org upsell Cover your team: $6.99 per person a month, or $76.99 a year. You choose who's included.
Billing interval choice Monthly · Yearly
Yearly saving Yearly saves {amount} a year compared with monthly. ({amount} = 12 × the monthly price − the yearly price, from GET /billing/prices; $6.89 today)
Your price $6.99 per user a month · $76.99 per user a year
Yearly org seats Members you add during the year are prorated and invoiced right away.
Monthly org seats Members you add are billed from the next invoice.
Leaving for payment You'll finish on our secure payment page in your browser.
Covered by org Your organization covers you with Standard.
Double coverage Your organization already covers you. You can cancel your own subscription in Manage billing.
Waiting after checkout Finishing up… This usually takes a few seconds.
Downgraded Your Standard access ended on {date}. Your data is kept and comes back when you subscribe again.
Business / Enterprise Need more? Contact sales for business and enterprise plans.

Access tier and the plan claim

Every app token, and GET /users/{id}/apps/{appId}/effective-permissions, carries plan (draft.36): a plain string, free or standard today, more values maybe later; treat a missing or unknown value as free. The Hub's wording matches the API docs (docs/api-reference/auth.md, The app token, and docs/access-control.md, Gating paid features in a free Application): a plan change shows up in the next token issued, which is never more than one token lifetime (5 minutes) old.

Where Copy
APL-03 Free Everyone can use it. Your app's tokens include each user's plan (free or standard), so you can keep some features for Standard subscribers. How to gate paid features
APL-03 Restricted Only people you grant access to can use it, for example after they pay you. Grant access on the Access tab.
APL-03 Standard Only people on the Standard plan can use it, through their own subscription or an organization's, plus anyone you grant access to.
APL-02 Free hint For everyone. Your app's tokens include each user's plan, so you can keep some features for Standard subscribers.
APL-03 App token What this app's tokens tell it about the person signed in. This is an example for this app, not a real person's token.
— entitlement_status Whether the person can use this app now: active, or why not.
— effective_permissions This app's own permission keys that the person has, from their roles. (None defined: This app doesn't define any permissions yet, so the list is empty. Add them on Permissions & roles.)
— plan The person's plan, free or standard: standard unlocks paid features. A plan change shows up in the next token issued, within 5 minutes. Treat a missing or unknown value as free.
ACX-04 Plan in their next app token: Free (free) / Standard (standard) / {plan}, which apps that don't know it treat as Free · What an app token issued now would carry, with the entitlement status and effective permissions. An app can keep features for Standard subscribers, so a locked feature may mean they're on Free. A plan change shows up in the next token issued, within 5 minutes.
ACX-05, one app Access tier: Free. Everyone has access; your app gates paid features with the plan claim. · Access tier: Restricted. Only the people granted access here can use it. · Access tier: Standard. People on the Standard plan have access, plus anyone granted it here. · Change the access tier
BIL-01 Apps you sign in to can see whether you're on Free or Standard, so they can unlock features for subscribers.

Error code → message

error.code HTTP Message
unauthenticated 401 Your session ended. Sign in again.
session_revoked 401 You were signed out from another device.
forbidden 403 You don't have permission to do that.
not_found 404 This item doesn't exist or was removed.
validation_failed 422 (field-level from details)
not_unique 409 That {field} is already in use.
email_taken 409 An account with this email may already exist. Sign in or reset your password.
version_conflict 409 This changed since you opened it. Reload · Re-apply
entitlement_already_exists 409 This person already has access. View it
entitlement_platform_managed 409 This access is managed by Substratal. You can only turn it off or back on.
entitlement_required 403 Access to this app is turned off.
invalid_source 422 Free and Standard access can't be granted by hand.
subscription_exists 409 You already have a subscription. Manage billing
no_billing_account 409 There's no billing account yet. Subscribe first.
plan_requires_sales 422 Business and enterprise plans are arranged with sales. Contact sales
subscription_not_found 404 This organization doesn't have a subscription yet. Subscribe
member_override_not_a_member 422 {name} isn't an active member of this organization.
test_mode_billing_unavailable 409 Billing isn't available in test mode here.
billing_unavailable 503 Billing is temporarily unavailable. Try again in {n}s.
push_credential_exists 409 This provider is already set up. Edit it instead.
invalid_push_credential 422 That key file isn't valid for {provider}.
push_not_configured 409 Push isn't set up for this app yet.
invalid_device_token 422 (silent; retry registration on next launch)
reserved_category 422 Categories starting with security., account. or billing. are reserved.
notification_too_large 422 This notification is {n} bytes over the 4 KB push limit.
invalid_status_transition 409 That change isn't allowed.
user_token_required 400 Sign in as a person to do this.
test_user_expired 403 This test account has expired.
email_not_verified 403 Verify your email to register apps. Resend email
moderation_field_forbidden 403 Only Substratal staff can change that.
embedded_login_not_allowed 403 (not shown: APP-03 switches to the hosted launch)
role_scope_mismatch 403 You can only use this app's own roles.
api_key_in_browser 400 Something went wrong on our side. Request ID {id} (client bug: an API Key was sent from the browser)
tenant_suspended 403 This workspace is suspended. Contact support.
destructive_operation_restricted 403 This key can't perform destructive actions.
idempotency_key_reused 409 That request was already sent with different details. Try again.
rate_limited 429 Too many attempts. Try again in {n}s. (Notifications to one person: That person has had too many notifications from this app this hour.)
method_not_allowed 405 Something went wrong on our side. Request ID {id} (client bug: log details.allowed)
api_version_required 400 Something went wrong on our side. Request ID {id} (client bug: the request skipped the version header)
unsupported_api_version 400 This version of Substratal is no longer supported. Update to keep going. Update (GLB-03 Update required)
application_retired 409 {app} is retired, so nothing new can be added to it.
invalid_review_transition 409 Only approved or suspended applications can be retired.
live_mode_required 403 Retiring a live application needs a live-mode sign-in.
application_not_deletable 409 Only test-mode applications can be deleted. Retire it instead.
application_in_use 409 This application is still used by {references}. Remove those first.
invalid_image 422 That image can't be used: {reason}. Use a PNG, JPEG or WebP under {max} MB.
upload_not_found 404 That upload expired. Choose the image again.
passkey_invalid 400/401 That passkey didn't work. Try again, or use a code.
passkey_not_registered 404 That passkey isn't set up for your account.
passkey_already_registered 409 This passkey is already on your account.
passkey_limit_reached 409 You have 10 passkeys, the most allowed. Remove one first.
passkey_not_found 404 This passkey was already removed.
recent_sign_in_required 403 Sign in again to turn on two-step verification.
access_tier_reserved 422 Standard is only for Substratal's own apps. Choose Free or Invite only.
application_not_available 409 You can change who gets in only while the app is approved or in review.
delivery_not_found 404 This delivery is older than 30 days, or isn't on this webhook.
unknown_permission 422 {key} isn't one of this application's permissions.
scim_token_not_found 404 (not an error: ORG-08 shows the "Not set up" state below)
not_implemented 501 (never shown — the feature is hidden behind its flag)
service_unavailable 503 Substratal is briefly unavailable. Retrying in {n}s.
internal_error 500 Something went wrong on our side. Request ID {id}
plan_limit_reached 409 Reserved by the API for future business plans; nothing returns it today. If seen: You've reached a plan limit. Contact sales

API version notices (GLB-03):

State Copy
Update available (Deprecation + Sunset) A new version of Substratal is available. This version stops working on {sunset_date}. Update · Not now
Update required (unsupported_api_version) Update Substratal to continue. This version can no longer connect. Update

SCIM provisioning (ORG-08):

State Copy
Not set up SCIM provisioning isn't set up. Connect your identity provider to invite and remove members automatically. Set up
SCIM token created Copy this token into your identity provider now. You won't see it again.
Rotate SCIM token confirm Rotate the SCIM token? Your identity provider stops syncing until you paste the new token. Rotate · Cancel
Turn off SCIM confirm Turn off SCIM provisioning? People already provisioned stay members. Turn off · Cancel

Always show the X-Request-Id (or equivalent) in a "Details" disclosure for 5xx errors so support can trace it.

Push notification text (platform alerts shown by the Hub)

The API supplies title and body; the Hub supplies actions per category:

Category Actions on the notification
security.new_sign_in It was me · Review sessions
security.password_changed, security.email_changed, security.mfa_disabled, security.mfa_method_removed, security.session_reuse_detected Secure my account
account.organization_invitation Accept · View
account.access_granted Open {app}

Loading

  • Lists: skeleton rows (shape of the real row) after 300 ms; never a full-screen spinner for list refreshes.
  • Actions: button shows inline progress and is disabled; the rest of the screen stays interactive.