Skip to main content

Apps

Manage containerized applications on the Strongly platform. Deploy, scale, start, stop, and monitor your apps programmatically.

All endpoints require a valid API key with the appropriate apps:* scope.

Base URL: https://<your-instance>/api/v1


App Object​

{
"_id": "app-dk8s1o8gwr03",
"name": "orders-ui",
"displayName": "Orders",
"description": "Order tracking front end",
"status": "running",
"url": "/apps/app-dk8s1o8gwr03/view",
"address": "https://orders-ui.<apps domain>/",
"instances": 1,
"cpu": "0.5",
"memory": "1GB",
"disk": "10GB",
"environmentVariables": { "LOG_LEVEL": "info" },
"addons": ["addon-kheofh2erh"],
"dataSources": [],
"aiModels": [],
"workflows": [],
"volumes": ["vol_def001"],
"tags": ["orders"],
"permissions": { "isPublic": false, "allowedUsers": [] },
"owner": "okRpaKPh8B9asdKb2",
"organizationId": "org-acme-1a2b3c",
"createdAt": "2026-09-23T19:13:40.840Z",
"updatedAt": "2026-09-23T19:16:20.635Z"
}
FieldDescription
_idApp ID
statusdraft (created, not deployed yet), building, deploying, running, stopped, error
waitingSet while the app waits for a machine: reason (WaitingForCapacity: the cloud has no machine of the size it asked for free right now) and detail in plain words. It starts as soon as a machine is free; waiting is absent or null otherwise.
urlThe app's page in Strongly (its viewer)
addressWhere the app is served, to a browser and to a client with its own credential (GET /apps/:id only; never build it): the root of its own host, https://<slug>.<apps domain>/, on a platform with an apps domain (signed-in users are signed in to it through Strongly; your Strongly address then serves no app), else https://<platform>/api/proxy/<app id>/. See Where an app opens
platformUpdatePendingtrue while the running app needs a restart to run the current platform version: the platform could not restart it after an update (the deployer's restart was refused). POST /apps/:id/restart applies it; absent otherwise. See Platform Updates
instancesNumber of replicas the app runs
environmentIdThe runtime environment the app runs in; the app runs at that environment's size. Absent or custom when the size is typed
cpu, memory, diskThe size the app runs at when it has no environment (disk optional). A size that was never set is absent: there is no default
gpu, gpuTypeGPU count and type, present only when set
useSpot, spotFallbackWhether the app runs on spot capacity, and whether it then falls back to on-demand when no spot is available
environmentVariablesThe app's own environment variables (returned by GET /apps/:id only, never in a list). The variables the platform sets in every app are not here: they are set at every rollout (Platform-Injected Variables)
addons, dataSources, aiModels, mlModels, workflows, featureStores, agentsIDs of the services the app connects to; they reach the app through STRONGLY_SERVICES
volumesIDs of the volumes the app mounts (not in STRONGLY_SERVICES: their files are mounted under /volumes)
permissionsisPublic and allowedUsers; change them through the app's permissions
homeAppEnabledWhether users may be bound to this app as their home app (the only thing they see after signing in)
authThe app's branded sign-in settings (GET /apps/:id only): enabled, slug, signupEnabled, access, allowedDomains, hasLogo, the pages' look (primaryColor, buttonTextColor, backgroundColor, headingFont; each absent when the pages use the platform's own) and, while enabled, pages (signIn, signUp, forgotPassword, signOut URLs). null when never set. Change them with PATCH /apps/:id/auth
nativeSignInThe app's native sign-in settings (enabled, iosBundleIds, updatedAt, updatedBy), absent when never set. Change them with PATCH /apps/:id/native-sign-in
publicAccessThe app's public access as stored (enabled, maxRequestBytes, paths, reach, who turned it on and when), absent when never set; its address is https://<auth.slug>.<apps domain>/. Read the full view with GET /apps/:id/public-access and change it with PATCH

An app has no default size. It runs at exactly the size it is given: its environment's size, or the cpu and memory typed for it. Deploy and restart refuse an app with neither.


GET /api/v1/apps​

List all apps accessible to the authenticated user.

Scope: apps:read

Query Parameters​

ParameterTypeRequiredDefaultDescription
statusstringNo--Filter by status, e.g. running, stopped
environmentIdstringNo--Filter by the runtime environment the app runs in
qstringNo--Search by app name or description
publicAccessstringNo--enabled: only public apps (an admin sees every organization's); disabled: only the others
limitintegerNo50Maximum number of results to return
cursorstringNometa.nextCursor of the previous page; omit for the first page
sortstringNo-createdAtSort field; prefix with - for descending, e.g. name, -updatedAt

Response 200 OK​

{
"data": [ { "_id": "app-dk8s1o8gwr03", "name": "orders-ui", "status": "running", "owner": "user_456", "url": "https://orders-ui.example.com", "instances": 1, "cpu": "0.5", "memory": "1GB", "createdAt": "2025-01-15T10:30:00Z", "updatedAt": "2025-02-01T14:22:00Z" } ],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "..." }
}

Each item is a summary: _id, name, displayName, description, status, owner, url, instances, cpu, memory, disk, tags, marketplace, marketplaceAppName, homeAppEnabled, createdAt, updatedAt, and waiting while the app waits for a machine. GET /apps/:id returns the full App Object (build, deployment, address, auth, permissions, services, environment variables).


GET /api/v1/apps/stats​

Count the apps GET /api/v1/apps lists, with the same filters: every one the list holds for you with these filters, not a page, counted by the database. Each by<Field> is a list of rows, one per value with how many have it ({ "<field>": value, "total": n }), most first; a value the records leave out is null.

Scope: apps:read

Query Parameters (the list's own filters)

ParameterTypeRequiredDescription
statusstringNoOnly apps with this status
environmentIdstringNoOnly apps in this runtime environment
qstringNoSearch by app name or description
publicAccessstringNoenabled or disabled, as the list takes it

Response 200 OK

{
"data": { "total": 3, "byStatus": [ { "status": "running", "total": 2 }, { "status": "stopped", "total": 1 } ], "instances": 4 },
"meta": { "requestId": "..." }
}
FieldDescription
totalHow many the list holds with these filters.
byStatusEach status with how many apps have it.
instancesThe replicas the apps are set to run, added up.

POST /api/v1/apps​

Create an app and, when you give it a source, start building it. An app builds from:

  • a volume: a folder of a volume's code, as last synced. This is the usual path for an app built in a workspace: the workspace mounts each volume's code at /volumes/<scope>/<volume name>/code, and its Sync (POST /api/v1/workspaces/:id/sync) commits and pushes that code to the volume.
  • a GitHub repository branch, cloned with one of your GitHub SSH keys (GET /api/v1/me/github-ssh-keys).
  • an uploaded archive: use POST /api/v1/apps/import instead.

With no source the app is recorded as draft. Poll GET /api/v1/apps/:id/build-status until the build is completed, then deploy it.

Give the app its size now or before you deploy it: an environmentId (the app runs at that environment's size), or cpu and memory (disk optional). There is no default size.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
namestringYesApp name
descriptionstringNoDescription
displayNamestringNoName shown in the UI
bundleSourceTypestringNovolume or github
bundleSourceobjectWith bundleSourceTypevolume: { "volumeId", "folderPath"? }, where folderPath is the folder of the volume's code holding strongly.manifest.yaml (omit it for the whole code). github: { "repoUrl", "branch", "sshKeyId", "subdirectory"? }, where repoUrl is the SSH form (git@github.com:owner/repo.git)
instancesintegerNoNumber of replicas, 1 to 10
cpustringNoCPU cores, e.g. "0.5", "2", "500m"
memorystringNoMemory, e.g. "1GB", "512MB"
diskstringNoDisk, e.g. "10GB"
gpustringNoNumber of GPUs, e.g. "1"
gpuTypestringNoGPU type when gpu is set, e.g. "nvidia-t4"
useSpotbooleanNoRun the app on spot capacity (cheaper; it can be reclaimed, and the app restarts on a new node). Default false
spotFallbackbooleanNoWith useSpot, fall back to on-demand capacity when no spot is available (default true); false waits for spot
environmentIdstringNoRuntime environment the app runs in (and at the size of)
environmentVariablesobjectNoEnvironment variables, name to value; each name is checked as PUT /apps/:id/env checks it
addons, dataSources, aiModels, mlModels, workflows, featureStores, agentsstring[]NoIDs of the services to connect (add-ons, data sources, AI Gateway models, model registry models, deployed workflows, feature stores, deployed agents), passed to the app in STRONGLY_SERVICES
volumesstring[]NoIDs of the volumes the app mounts. A project's volume you have not shared mounts at /volumes/local/<name>; every shared volume, yours included, at /volumes/shared/<name>. code/ is read-only (the code as last synced); data/ is read and write, each written file saved to the volume as a new version. Each must be a volume the app's owner may use. An app with volumes needs a disk: disk, or an environmentId whose environment has one
tagsstring[]NoTags

Any other field is refused with 400.

curl -X POST "https://<your-instance>/api/v1/apps" \
-H "X-API-Key: $STRONGLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "orders-ui", "cpu": "0.5", "memory": "1GB",
"bundleSourceType": "volume",
"bundleSource": {"volumeId": "<volume id>", "folderPath": "apps/orders-ui"}}'

A volume source needs access to use the volume; a volume you cannot use is refused with 403.

Response 201 Created​

The new app, with its build (buildId, status).


POST /api/v1/apps/import​

Create a new app and optionally attach a deployment bundle in a single multipart/form-data request. Either a name field or a file must be provided.

Scope: apps:write

Request (multipart/form-data)​

FieldTypeRequiredDescription
filefileNoZip bundle containing the app source
namestringNoApp name (required if no file uploaded)
descriptionstringNoApp description
environmentstringNoEnvironment variables as a JSON object string; each name is checked as PUT /apps/:id/env checks it
resourcesstringNoThe app size as a JSON object string with any of cpu, memory, disk, gpu, gpuType, instances, e.g. {"cpu": "0.5", "memory": "1GB"}
metadatastringNoOther app fields (those of POST /apps) as a JSON object string
deployWhenBuiltstringNotrue: the platform deploys the app when its build completes

Send the form fields before the file part: the bundle streams to the build as it arrives, so a field after the file is refused with 400. There is no size limit. A JSON field that is not a JSON object is refused with 400.

Response 201 Created​

The new app, with its build (buildId, status).


GET /api/v1/apps/minimum-size​

What the platform's services take of an app's size. An app's size is the whole pod, so its cpu and memory must be more than platform (the proxies beside every app), or more than withVolumes for an app that mounts volumes (they add the storage sidecar). A smaller size is refused when the app is deployed, started or restarted, and the app's page refuses it as you set it.

Scope: apps:read

Response 200 OK

{
"platform": { "cpuMillicores": 300, "memoryMib": 384 },
"withVolumes": { "cpuMillicores": 400, "memoryMib": 640 }
}

GET /api/v1/apps/:id​

Retrieve a single app by its ID, with its branded sign-in settings and, on request, its usage summary.

Scope: apps:read

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Query Parameters​

ParameterTypeRequiredDefaultDescription
includestringNo--analytics adds data.analytics: { range, summary } with the summary of GET /apps/:id/analytics
rangestringNo30dThe analytics range: 7d, 30d or 90d

Response 200 OK​

The App Object, in data, with auth (see the object) and, with include=analytics, analytics.


PATCH /api/v1/apps/:id​

Change an app's definition. Only the fields sent change; list fields replace the whole set. A change of environmentVariables, the services (addons to agents), volumes or autoscaling rolls a running app out at once with no downtime: a new instance starts with it and the old one is retired once the new one is ready (a stopped app gets it when it starts). A size, instances or spot change applies at the app's next deploy, start or restart.

Scope: apps:write

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Request Body​

name, description, displayName, tags, environmentVariables, addons, dataSources, aiModels, mlModels, workflows, featureStores, agents, volumes, autoscaling, scaleToZero, cpu, memory, disk, instances, useSpot, spotFallback, environmentId, environmentVersion and thumbnail. A field outside this list is refused with 400 and the list of updatable fields. volumes replaces the set the app mounts; an app given volumes without a disk is refused, naming what is missing.

The services (addons, dataSources, aiModels, mlModels, workflows, featureStores, agents) are what the app's STRONGLY_SERVICES holds, the same choices as at create. Each list replaces the set: send the full list to add, swap or remove a service; the app is not recreated. A service the app's owner or the caller may not use, or an add-on that is not running, is refused with nothing changed, naming it. A running app rolls out with the new STRONGLY_SERVICES at once as a new version (GET /apps/:id/versions); poll GET /apps/:id/status until rollout.status is complete, or failed with the reason and the version that keeps serving.

curl -X PATCH "https://<your-instance>/api/v1/apps/app-abc123" \
-H "X-API-Key: $STRONGLY_API_KEY" -H "Content-Type: application/json" \
-d '{"addons": ["addon-redis-1", "addon-pg-2"], "dataSources": []}'

autoscaling is the whole block, every field given, or null to turn autoscaling off (the app then runs instances):

FieldTypeDescription
enabledbooleantrue
minReplicasintegerFewest instances, 1 to 20
maxReplicasintegerMost instances, 1 to 50 and more than minReplicas
cpuThresholdintegerAdd instances when the average CPU use passes this percent of the app's size (1 to 100)
memoryThresholdintegerThe same for memory (1 to 100)
scaleUpCooldownintegerSeconds, 30 to 600: adds up to half the instances again once per period
scaleDownCooldownintegerSeconds, 60 to 900: removes up to a quarter of the instances once per period

A value out of range is refused with 400, naming it.

scaleToZero is {"enabled": true, "idleMinutes": 15} (minutes 1 to 1440), or null to turn it off. With it on, the running app goes to zero instances (status idle) once no request or open connection has reached it for idleMinutes; its next request wakes it (an API call waits until it is ready, up to 3 minutes). A stopped app is never woken. Turning it off on a sleeping app starts it at once. It causes no rollout. See Scale to zero when idle.

Sizes are checked as given: cpu must be a number of cores ("0.5", "500m"), memory and disk sizes ("1GB", "512MB"), and instances a whole number from 1 to 10. "disk": null removes the app's disk; it is refused while the app mounts volumes and its size has no other disk.

{ "cpu": "1", "memory": "2GB", "instances": 2 }

Response 200 OK​

The updated App Object, in data.

Errors​

StatusCodeWhen
400validation-errorAn unsupported field, a size that is not a size, or an autoscaling value out of range (the message says which)
403forbiddenYou cannot edit this app
404not-foundNo such app

PUT /api/v1/apps/:id/env​

Set an app's environment variables. The object replaces the app's environment, so send the complete set (read the app first and merge, or variables it already has are dropped). On a running app the change rolls out with no downtime: a new instance starts with the new values and the old one is retired once it is ready. On a stopped app the values are saved and applied at its next start.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
environmentVariablesobjectYesVariable name to value. Values are strings, numbers or booleans (stored as text); a name is letters, digits, _, - or . and does not start with a digit (the rule Kubernetes applies; QA=BAD or 1ST is refused before anything changes), and must not be one the platform sets in every app (APP_NAME, ENVIRONMENT, PORT, STRONGLY_APP_ID, STRONGLY_HOST, STRONGLY_URL, STRONGLY_BASE_URL, STRONGLY_API_URL, STRONGLY_PLATFORM_AUTH, STRONGLY_SERVICES).
curl -X PUT -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"environmentVariables": {"LOG_LEVEL": "info", "FEATURE_X": "true"}}' \
"$BASE/api/v1/apps/$APP_ID/env"

Response 200 OK​

The updated app (see App Object).

Errors​

StatusErrorWhen
400validation-errorenvironmentVariables is missing or not an object, an entry has an empty name or a value that is not a string, number or boolean, a name is not a valid environment variable name (named: "QA=BAD" is not a valid environment variable name: use letters, digits, '_', '-' or '.', not starting with a digit), or a name is one the platform sets (each named)

Sharing​

Who can reach an app is the platform's one sharing shape: its owner, its members (role editor can use and change it, user can only use it) and its visibility (public: every user can find and use it; on Strongly Cloud, every user of its organization). Changing it stays with its owner and editors.

MethodPathDoesScope
GET/api/v1/apps/:id/permissionsOwner, members (userId, role) and visibilityapps:read
POST/api/v1/apps/:id/permissions/membersShare with a user: { "userId", "role": "editor" | "user" }. 400 for an app user whose Home App is another app (it is their only app)apps:write
DELETE/api/v1/apps/:appId/permissions/members/:userIdStop sharing with a userapps:write
PATCH/api/v1/apps/:id/permissions{ "visibility": "public" | "private" }apps:write

Each, except a member's removal (204), answers the permissions as they are now:

{
"data": {
"resourceId": "<app id>",
"owner": "<user id>",
"members": [{ "userId": "<user id>", "role": "user" }],
"visibility": "private"
},
"meta": { "requestId": "req_abc123" }
}

DELETE /api/v1/apps/:id​

Permanently delete an app and all associated resources.

Scope: apps:write

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 204 No Content​

No response body.


POST /api/v1/apps/:id/deploy​

Deploy or redeploy the app from its current definition: its built image, size, instances, environment variables and connections. The body takes no options; change the app with PATCH /apps/:id first.

The app runs at exactly its size: its environment's, or the cpu and memory set on it. An app with neither is refused, and nothing is stopped or started.

Scope: apps:deploy

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

The app, as GET /api/v1/apps/:id answers it. The deployment has started; poll GET /apps/:id/status until rollout.status is complete or failed (status stays running when an update of a running app fails, because its previous version keeps serving).

Errors​

StatusCodeWhen
400validation-errorThe app has no size (the message names what is missing), its size is too small to hold the platform's services that run beside it (the message gives the size they take), or a body was sent
402payment-requiredA budget blocks the launch
403governance-blockedGovernance requirements for going live are not met
409invalid-stateThe image has not finished building; poll GET /apps/:id/status and deploy once it has

PUT /api/v1/apps/:id/source​

Upload a new bundle for an existing app. This starts the build of the new version and returns right away. Deploy the new version with POST /api/v1/apps/:id/deploy once GET /api/v1/apps/:id/build-status reports the build completed; a deploy while the build is still running is refused. Environment variables and size are set on the app itself (PATCH /api/v1/apps/:id), not on the upload.

Scope: apps:deploy

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Request (multipart/form-data)​

FieldTypeRequiredDescription
filefileYesZip bundle containing the new app source
descriptionstringNoUpdated description
deployWhenBuiltstringNotrue: the platform deploys the new version when its build completes

Send the form fields before the file part: the bundle streams to the build as it arrives, so a field after the file is refused with 400. There is no size limit.

Response 202 Accepted​

The build of the new version has started: the app, with its build. A version uploaded while an earlier one is still building cancels that build and builds the new one.


POST /api/v1/apps/:id/rebuild​

Build a new version of an app from source. With no body it builds from the app's recorded source (its volume folder as last synced, or its GitHub branch as it is now); after changing the code in a workspace, sync the workspace first. With a body it builds from the source given, which becomes the app's source (for example an app first uploaded as an archive, now built from its workspace volume). All configuration is kept, and the running version keeps serving until you deploy the new one.

Scope: apps:deploy

Request Body (optional)​

FieldTypeRequiredDescription
bundleSourceTypestringNovolume or github
bundleSourceobjectWith bundleSourceTypeAs in POST /api/v1/apps

Response 202 Accepted​

The build has started. Poll GET /api/v1/apps/:id/build-status until it is completed, then POST /api/v1/apps/:id/deploy. An app whose current version was an uploaded archive, rebuilt with no body, is refused with 400 (no-source).


GET /api/v1/apps/:id/versions​

The app's deployed versions, newest first, cursor-paged (limit, cursor). A version is recorded each time the app is rolled out (deployed, started or restarted) running something new.

Scope: apps:read

Response 200 OK​

{
"data": [{
"_id": "jYNdBr6SDev5RcvJ9",
"appId": "app-djwe2wlio93k",
"versionNumber": 3,
"build": { "buildId": "b-1", "repositoryUri": "<registry>/strongly/apps/shop:0.1.0", "version": "0.1.0" },
"settings": {
"environmentId": "custom", "instances": 1, "cpu": "0.5", "memory": "1GB",
"useSpot": false, "spotFallback": true, "environmentVariableNames": ["MODE"],
"addons": [], "dataSources": [], "aiModels": [], "workflows": []
},
"rollout": "rollback",
"rolledBackFrom": { "versionId": "a1b2c3", "versionNumber": 1 },
"deployedBy": "okRpaKPh8B9asdKb2",
"deployedByName": "Admin User",
"deployedAt": "2026-10-22T19:14:34.000Z",
"isCurrent": true
}],
"meta": { "total": 3 }
}

rollout is deploy, start, restart or rollback. Environment variables are named only (environmentVariableNames); their values stay on the app.

An update that failed and was rolled back automatically (get status: rollout.status failed with rolledBackTo) is in the history too: the failed version carries failed ({ "reason", "at" }, the same reason as rollout.reason), and the rollback is the current version, rollout rollback with rolledBackFrom naming the version still serving, deployed by the platform (deployedBy "platform", deployedByName "Automatic rollback") with rollbackReason saying why. The app's build is that version's again, unless a newer build was started during the failed update: that build stays the app's build and is deployed when it completes (an upload with deployWhenBuilt), or by POST /api/v1/apps/:id/deploy.


GET /api/v1/apps/:appId/versions/:id​

One version, as the list shows it. Scope: apps:read


POST /api/v1/apps/:appId/versions/:id/deploy​

Roll the app back to a version: its image and settings (environment, size, instances, capacity, autoscaling, environment variables, services, volumes) are deployed again as a new current version that names it (rolledBackFrom), with no downtime. The settings are checked as PATCH /api/v1/apps/:id checks them, and governance applies as to a deploy. The settings it changes are recorded in the app's activity (the dashboard's What changed). A build of the app still running is cancelled first, and the activity says so.

Scope: apps:deploy

Response 200 OK​

The new current version. Poll GET /api/v1/apps/:id/status until rollout.status is complete or failed.

Errors​

StatusWhen
404No such app or version
409The version is the one the app runs now (already-current)
400A setting of the version is refused now (for example a service the owner can no longer use)

POST /api/v1/apps/:id/start​

Start a stopped app.

Scope: apps:deploy

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

The app, as GET /api/v1/apps/:id answers it.


POST /api/v1/apps/:id/stop​

Stop a running app. All replicas are scaled to zero.

Scope: apps:deploy

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

The app, as GET /api/v1/apps/:id answers it.


POST /api/v1/apps/:id/restart​

Restart all replicas of a running app with a rolling restart.

Scope: apps:deploy

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

The app, as GET /api/v1/apps/:id answers it.

A restart can redeploy the app, so an app with no size is refused with 400 before anything is stopped.


GET /api/v1/apps/:id/status​

Get the real-time runtime status of an app.

Scope: apps:read

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

{
"data": {
"deployed": true,
"appId": "app_abc123",
"status": "running",
"state": "running",
"replicas": 3,
"readyReplicas": 3,
"rollout": {
"status": "failed",
"startedAt": "2026-10-30T17:52:17Z",
"finishedAt": "2026-10-30T17:53:02Z",
"reason": "The app keeps crashing on start: it exited with code 3. Last output: RuntimeError: DATABASE_URL is not set",
"version": "0.1.172",
"rolledBackTo": "0.1.171",
"logTail": "booting\nRuntimeError: DATABASE_URL is not set\n"
},
"deployError": "The app keeps crashing on start: it exited with code 3. Last output: RuntimeError: DATABASE_URL is not set. Rolled back to 0.1.171: the previous version keeps serving.",
"appName": "app_abc123",
"deployment": { "...": "..." },
"services": [ { "...": "..." } ],
"pods": [ { "...": "..." } ]
},
"meta": { "requestId": "..." }
}

status is the app's serving state. rollout is how its latest deploy (a new version, changed settings or a restart) ended: in-progress; complete once the new version is fully rolled out, every replica of it ready; or failed once a replica of the new version keeps crashing on start, cannot start (its image cannot be downloaded, a setting it needs is missing) or never becomes ready in time. reason says why in plain words (a crash with its exit code and last line of output), version is the version that failed and logTail the last lines the crashed run wrote. An update of a running app that fails is rolled back: rolledBackTo is the version that keeps serving (the version history records it: the failed version marked failed, the rollback current), and status stays running, so a deploy succeeded only when rollout.status is complete. deployError is the same failure in one sentence. state is running when every replica is ready, deploying while they come up, and stopped at zero replicas. Before the app's first deploy, data is { "deployed": false, "appId", "status", "buildStatus", "replicas": 0, "message" }, where message says whether to wait for the build, deploy, or fix a failed build.


GET /api/v1/apps/:id/logs​

Retrieve recent logs from the app containers.

Scope: apps:read

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Query Parameters​

ParameterTypeRequiredDefaultDescription
linesintegerNowhole logNumber of most recent log lines to return; omitted, the whole log since the app started
skipNewestintegerNo0How many of the newest lines to skip. With lines, returns the page before them: read a long log from its end with lines=100, then skipNewest=100, skipNewest=200, and so on
sincestringNo--Return logs after this ISO 8601 timestamp
containerstringNo--Target a specific container by name

Response 200 OK​

{
"data": [
{ "timestamp": "2025-01-20T14:22:01Z", "message": "[INFO] Server started on port 3000", "level": "info", "pod": "app-abc-7d9f-x2k", "container": "my-app" },
{ "timestamp": "2025-01-20T14:22:02Z", "message": "[INFO] Connected to database", "level": "info", "pod": "app-abc-7d9f-x2k", "container": "my-app" }
],
"meta": { "requestId": "..." }
}

Each line has the timestamp it was logged at, its message, the level the line states (error, warning, info, debug, or null), and the instance (pod) and container it came from.


GET /api/v1/apps/:id/build-status​

The state of the app's latest image build (pending, building, completed or failed), which is separate from whether the app is running. Check it after a deploy or rebuild. While the build waits for a machine to build on, waiting says why (reason and detail); it is absent or null otherwise.

Scope: apps:read

Response 200 OK​

{ "data": { "buildId": "...", "status": "building", "createdAt": "2026-10-05T13:40:02", "startedAt": "2026-10-05T13:40:05", "elapsedMinutes": 2 } }

Errors​

StatusErrorWhen
404not-foundNo app with this id that you can read
409invalid-stateThe app has never been built

GET /api/v1/apps/:id/build-logs​

The log of the app's latest image build: the place to read why a build failed.

Scope: apps:read

Query Parameters​

ParameterTypeDescription
limitnumberThe newest this many lines; every line when left out
levelstringOnly lines of this level
sincestringOnly lines after this time (ISO 8601)

Response 200 OK​

The build's log lines. An app that has never been built answers { "buildId": null, "logs": [], "message": "This app has no build yet - trigger a build/deploy first." }.


POST /api/v1/apps/:id/build-logs/download​

A signed download link that downloads the whole log of the app's current build (so far, while it runs) as <app>-<build>.log, for 5 minutes.

Scope: apps:read

Response 200 OK: a download link (url, expiresAt, expiresInSeconds, fileName, sizeBytes).


GET /api/v1/apps/:id/platform-environment​

The variables the platform sets in the app (STRONGLY_APP_ID, STRONGLY_URL, STRONGLY_SERVICES, ...), each with the value its running container was started with. While the app is not running, running is false and every name is listed with a null value. For a user who may manage the app: STRONGLY_SERVICES carries its connections' credentials.

Scope: apps:write

Response 200 OK​

{
"data": {
"running": true,
"variables": [
{ "name": "APP_NAME", "value": "store-forecast" },
{ "name": "STRONGLY_APP_ID", "value": "app-1h24rysai0k4" },
{ "name": "STRONGLY_URL", "value": "/api/proxy/app-1h24rysai0k4" }
]
}
}

The platform sets STRONGLY_URL for the install: /api/proxy/<app id> on a platform without an apps domain and "" (the app is at the root of its own host) on one with an apps domain. An app builds every link, asset path and API base from it; a value set for STRONGLY_URL, STRONGLY_HOST or STRONGLY_APP_ID is overwritten by the platform.


GET /api/v1/apps/:id/metrics​

Measure a running app now. Each call takes a fresh measurement (about 6 seconds, including a 5 second network sample). A value that cannot be measured is reported as an error, never as a zero.

Scope: apps:read

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Response 200 OK​

{
"data": {
"cpu": { "usageMillicores": 12.4, "limitMillicores": 500, "percent": 2.5 },
"memory": { "usageBytes": 94371840, "limitBytes": 1073741824, "percent": 8.8 },
"network": { "receiveBytesPerSecond": 1536.2, "transmitBytesPerSecond": 2560.4, "totalBytesPerSecond": 4096.6, "windowSeconds": 5.01 },
"responseTime": { "avgMs": 4.2, "minMs": 2.9, "maxMs": 7.1, "samples": 5, "urlPath": "/" },
"replicas": { "ready": 1, "total": 1, "measured": 1 },
"containers": [
{ "name": "my-app", "pod": "app-abc-7d9f-x2k", "role": "app", "cpuMillicores": 12.4, "cpuLimitMillicores": 500,
"cpuPercent": 2.5, "memoryBytes": 94371840, "memoryLimitBytes": 1073741824, "memoryPercent": 8.8 },
{ "name": "egress-proxy", "pod": "app-abc-7d9f-x2k", "role": "platform", "cpuMillicores": 1.1, "cpuLimitMillicores": 200,
"cpuPercent": 0.6, "memoryBytes": 31457280, "memoryLimitBytes": 134217728, "memoryPercent": 23.4 }
],
"platformContainersTotal": { "cpuMillicores": 1.1, "memoryBytes": 31457280, "count": 1 },
"measuredAt": "2026-09-23T18:30:00.000000+00:00"
},
"meta": { "requestId": "..." }
}
FieldDescription
cpu, memoryUsage of your app's container, summed over its running replicas, against the size you set.
networkReceive and transmit throughput of the app's instances in bytes per second over the sampling window.
responseTimeRound trip time of the app answering an HTTP request from the platform.
replicasReady and desired replicas, and how many were measured.
containersEvery container of every replica, with its usage and size. role is app for yours and platform for the containers the platform runs beside it.
platformContainersTotalCombined usage of the platform containers.

Errors​

StatusCodeWhen
409invalid-stateThe app is not running.
500internal-errorA measurement could not be taken; the message gives the reason.

GET /api/v1/apps/:id/time-series​

An app's CPU and memory over time, from the hourly records kept of what its workers used and requested (the platform's own containers beside it are taken out). Usage is settled hourly, so the latest hour or two arrive after they end. For its use right now, measure it with GET /api/v1/apps/:id/metrics.

Every series has the same shape: the window, its granularity, start (the start of the first point) and end (now), and points, one for every hour or UTC day of the window, from the one its start falls in to the current one (so far). A quiet point counts zero and averages nothing (null).

Scope: apps:read

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Query Parameters​

ParameterTypeRequiredDescription
windowstringNo24h (hourly points), 7d or 30d (daily UTC points). 30d when left out.
granularitystringNohourly for 24h, daily for 7d and 30d; the window's when left out. Another is refused (400).

Response 200 OK​

{
"data": {
"window": "7d",
"granularity": "daily",
"start": "2026-10-14T00:00:00Z",
"end": "2026-10-21T13:40:00Z",
"points": [
{ "timestamp": "2026-10-20T00:00:00Z", "cpuCores": 0.0052, "cpuCoresPeak": 0.0091, "cpuRequestCores": 2,
"memoryBytes": 309463177, "memoryBytesPeak": 311427072, "memoryRequestBytes": 8589934592, "runningMinutes": 1440 },
{ "timestamp": "2026-10-21T00:00:00Z", "cpuCores": null, "cpuCoresPeak": null, "cpuRequestCores": null,
"memoryBytes": null, "memoryBytesPeak": null, "memoryRequestBytes": null, "runningMinutes": 0 }
]
},
"meta": { "requestId": "..." }
}
FieldDescription
cpuCores, memoryBytesThe mean CPU cores and memory bytes used, weighted by the minutes it ran in the point.
cpuCoresPeak, memoryBytesPeakIts busiest hour in the point.
cpuRequestCores, memoryRequestBytesIts size (what it requested).
runningMinutesHow long it ran in the point; 0, with every figure null, when it did not run.

Its owner, the users it is shared with to change it, and platform admins may read it (as its Analytics tab); its app users and public viewers may not.

Errors​

StatusCodeWhen
400validation-errorA window or granularity it does not offer.
404not-foundNo such app, or one you may not see.

PATCH /api/v1/apps/:id/auth​

Set the app's branded sign-in and sign-up: its own public sign-in, sign-up, forgot-password and sign-out pages at https://<your-platform>/app/<slug>/, with the app's logo and name. People who sign up or sign in there become app users whose home app is this app: they land in the app and never see the platform. Enabling it also turns on Home App. Only the fields sent change.

Scope: apps:write

Path Parameters​

ParameterTypeRequiredDescription
idstringYesThe app ID

Request Body​

FieldTypeRequiredDescription
enabledbooleanNoTurn the branded pages on or off
slugstringNoThe URL name of the pages, at https://<your-platform>/app/<slug>/: lowercase letters, digits and hyphens; unique across apps. Defaults to one made from the app's name
signupEnabledbooleanNoWhether the public sign-up page is open (default false: people join only by invitation until you turn it on)
accessstringNoEvery new account first confirms its email with a 6-digit code. instant (default): it is usable once confirmed. approval: after that, an administrator of the app activates it
allowedDomainsstring[]NoEmail domains a sign-up must belong to, subdomains included. Empty allows any address
logostringNoA data:image/... URL under 200KB (PNG, JPG or SVG) shown on the pages; "" for none
primaryColorstringNoThe pages' button and link colour, #RRGGBB; null for the platform's own. The button text on the button and the links on the background must meet WCAG AA contrast (4.5:1), or the change is refused
buttonTextColorstringNoThe text colour on the pages' buttons, #RRGGBB; null for the platform's (white)
backgroundColorstringNoThe pages' background colour, #RRGGBB; null for the platform's (white)
headingFontstringNoA Google Fonts family for the pages' headings and app name, such as Cormorant Garamond; null for the platform's font. A family Google Fonts does not serve is refused
{ "enabled": true, "slug": "client-portal", "access": "approval", "allowedDomains": ["example.com"],
"primaryColor": "#0F2340", "buttonTextColor": "#C9A227", "backgroundColor": "#F7F8FA", "headingFont": "Cormorant Garamond" }

Response 200 OK​

{
"data": {
"appId": "app-...",
"auth": {
"enabled": true, "slug": "client-portal", "signupEnabled": true, "access": "approval",
"allowedDomains": ["example.com"], "hasLogo": false,
"primaryColor": "#0F2340", "buttonTextColor": "#C9A227", "backgroundColor": "#F7F8FA", "headingFont": "Cormorant Garamond",
"pages": {
"signIn": "https://<your-platform>/client-portal/",
"signUp": "https://<your-platform>/client-portal/signup",
"forgotPassword": "https://<your-platform>/client-portal/forgot-password",
"signOut": "https://<your-platform>/client-portal/sign-out"
}
}
}
}

Errors​

StatusCodeWhen
400validation-errorAn unknown field, a slug that is not lowercase letters, digits and hyphens, or a logo that is not a small image, a colour that is not #RRGGBB, a colour pair below WCAG AA contrast (the detail names the pair), or a heading font Google Fonts does not serve
409conflictAnother app already uses that slug
403forbiddenYou cannot configure this app
404not-foundNo such app

GET /api/v1/apps/:id/native-sign-in​

The app's native sign-in settings: whether its developer's own native apps (an iPhone app built with the StronglyAppAuth Swift package) sign its users up and in, and their iOS bundle IDs. See Native App Sign-in. Signing in itself is not a REST route: it is DDP only.

Scope: apps:read

Response 200 OK​

{ "data": { "appId": "app-...", "nativeSignIn": { "enabled": true, "iosBundleIds": ["com.example.portal"], "updatedAt": "2026-10-17T01:30:00.000Z", "updatedBy": "usr_..." } } }

nativeSignIn is null when it was never set up.


PATCH /api/v1/apps/:id/native-sign-in​

Turn native sign-in on or off and set the iOS bundle IDs. It uses the app's sign-in settings (PATCH /apps/:id/auth: sign-up open or closed, instant or approval access, allowed domains), which must be saved first; enabling it also turns on Home App. Only the fields sent change.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
enabledbooleanNoWhether the app's native apps may sign its users up and in
iosBundleIdsstring[]NoThe native apps' bundle IDs (reverse-DNS, such as com.example.portal), recorded for audit: a sign-in from an app not listed is logged

Response 200 OK​

The settings, as GET answers them.

Errors​

StatusCodeWhen
400validation-errorAn unknown field, or a bundle ID that is not reverse-DNS (invalid-bundle-id in the detail)
400sign-in-not-configuredEnabling before the app's sign-in settings are saved
403forbiddenYou cannot configure this app
404not-foundNo such app

GET /api/v1/apps/:id/mail​

The app's own mail settings: the SMTP server and sender every email the platform sends for the app goes through (sign-up and sign-in codes, password resets, invitations, team invites). See Your App's Own Mail. The password is never returned: passwordSet says whether one is stored. The app's owner, its app admins and administrators read them.

Scope: apps:read

Response 200 OK​

{ "data": { "appId": "app-...", "mail": {
"appId": "app-...", "smtpHost": "smtp.example.com", "smtpPort": 587, "security": "starttls",
"username": "mailer@example.com", "passwordSet": true,
"fromAddress": "hello@example.com", "fromName": "Field Notes",
"updatedAt": "2026-11-21T10:00:00.000Z", "updatedBy": "usr_..."
} } }

mail is null when the app has no mail settings: its emails are sent from the platform's own address.


PATCH /api/v1/apps/:id/mail​

Send the app's emails through its own SMTP server from its own address. Only the fields sent change (JSON Merge Patch); the first save needs every field but fromName. No Reply-To is added. The connection is always TLS and the server's certificate is verified.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
smtpHoststringFirst saveThe SMTP server's host name or IP address (no smtp://, no port)
smtpPortnumberFirst save1 to 65535: usually 587 with starttls, 465 with tls
securitystringFirst savestarttls (upgraded to TLS; a server without TLS is refused) or tls (TLS from the first byte). Never plain
usernamestringFirst saveThe SMTP user name
passwordstringFirst saveThe SMTP password. Write-only: stored encrypted, never returned; left out keeps the stored one; null is refused
fromAddressstringFirst saveThe address the emails are sent from
fromNamestringNoThe name shown with fromAddress; null removes it (the app's name is shown)

Response 200 OK​

The settings, as GET answers them.

Errors​

StatusCodeWhen
400validation-errorA missing or invalid field; errors names it: [{ "field": "smtpPort", "message": "..." }]
403forbiddenYou cannot manage this app's mail
404not-foundNo such app

DELETE /api/v1/apps/:id/mail​

Remove the app's mail settings and its stored password: its emails are sent from the platform's own address again.

Scope: apps:write

Response 204 No Content​


POST /api/v1/apps/:id/mail/test​

Send one test email through the app's saved mail settings to the address of the account calling. Each call sends one email.

Scope: apps:write

Response 200 OK​

{ "data": { "appId": "app-...", "delivered": true, "to": "you@example.com", "from": "\"Field Notes\" <hello@example.com>", "response": "250 2.0.0 OK queued" } }

A refused email answers delivered: false with error, the mail server's error (never the password), such as "Invalid login: 535 Authentication failed".

Errors​

StatusCodeWhen
403forbiddenYou cannot manage this app's mail
409invalid-stateThe app has no mail settings to test

GET /api/v1/apps/:id/remote-mcp​

The app's remote MCP settings: whether its users can connect the app's own MCP server to their AI clients (Claude, ChatGPT), and the URLs they and the app need. See Remote MCP for Your App's Users.

Scope: apps:read

Response 200 OK​

{ "data": {
"appId": "app-...",
"remoteMcp": {
"enabled": true, "path": "/mcp",
"scopes": [{ "name": "notes:read", "description": "Read your notes" }],
"redirectHosts": ["claude.ai", "chatgpt.com"], "loopbackRedirects": false,
"updatedAt": "2026-10-17T05:00:00.000Z", "updatedBy": "usr_..."
},
"serverUrl": "https://dev.strongly.ai/mcp/apps/app-...",
"issuer": "https://dev.strongly.ai/oauth/apps/app-...",
"jwksUrl": "https://dev.strongly.ai/oauth/jwks"
} }

remoteMcp is null when it was never set up. serverUrl is what a user adds to Claude or ChatGPT; issuer and jwksUrl verify the X-Strongly-Mcp-Token the app receives.


PATCH /api/v1/apps/:id/remote-mcp​

Turn remote MCP on or off and change its settings (JSON Merge Patch: only the fields sent change; scopes and redirectHosts are replaced whole). Needs the app's branded sign-in on (PATCH /apps/:id/auth). Only the app's owner or a platform administrator may change it. Turning it off disconnects every client. Answers as GET.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
enabledbooleanNoWhether the app's users can connect AI clients
pathstringNoThe path of the app's own MCP endpoint (default /mcp)
scopesobject[]No[{ "name", "description" }]: at least one when enabled; the description is what the consent page tells the user the client may read or do
redirectHostsstring[]Nohttps hosts a client may return users to (default claude.ai, chatgpt.com)
loopbackRedirectsbooleanNoWhether clients on the user's own computer may connect (Claude Code, MCP Inspector)

GET /api/v1/apps/:id/mcp-connections​

Every user's connections to the app's MCP server, newest first, paged. For the app's owner, app admins and platform administrators.

Scope: apps:read

ParameterTypeRequiredDefaultDescription
statusstringNoactiveactive, revoked or all
userIdstringNo--Only this user's connections
limitintegerNo50Maximum number of results
cursorstringNometa.nextCursor of the previous page

Response 200 OK​

{ "data": [ {
"_id": "Qm...", "appId": "app-...", "userId": "usr_...", "userEmail": "sample@example.com", "userName": "Sample",
"clientId": "https://claude.ai/oauth/claude-code-client-metadata", "clientName": "Claude Code",
"redirectHost": "localhost:3118", "scopes": ["notes:read"], "status": "active",
"createdAt": "...", "lastUsedAt": "...", "lastRefreshedAt": "...", "revokedAt": null, "revokedReason": null
} ], "meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "..." } }

DELETE /api/v1/apps/:appId/mcp-connections/:id​

Disconnect one user's client: its access tokens stop working at once and its refresh token is gone. The user can connect again. Scope: apps:write. Answers 204.


GET /api/v1/me/mcp-connections and DELETE /api/v1/me/mcp-connections/:id​

The caller's own connections (same fields, without userEmail and userName, with appName), and disconnecting one. An app calls them for its signed-in user (its platform token with the user's X-Strongly-User-Token, or a native app's X-Strongly-Login-Token) and reaches only that app's connections. status filters as above. Called with an API key, they need the credentials:read scope (list) or credentials:write (disconnect).


GET /api/v1/apps/:id/users​

Everyone who can open the app by name, as the Users section of its Permissions tab lists them: its owner, the Strongly users it is shared with (Sharing) and its app users (signed up through its branded pages, bound to it as their Home App, or given it to use). The list names other people, so only those who manage the app may read it: its owner, the users it is shared with to edit (Can edit), its app admins and administrators (on Strongly Cloud, also the admins of its organization). Anyone who only uses the app (Can use, an app user, a Home App user) gets 403 forbidden. The account details (status, role, freeAccess, emailVerified, signedUp, lastSignIn and the Home App binding) are only for the app's owner, its app admins and administrators.

Scope: apps:read

Query Parameters​

ParameterTypeRequiredDefaultDescription
typestringNo--platform (Strongly users) or app (app users); everyone when left out
statusstringNoallactive or pending (waiting for approval); an archived user is never listed
qstringNo--Search by name or email
sortstringNo-createdAtname, email or createdAt; prefix with - for descending
limitintegerNo50Maximum number of results
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK​

{
"data": [
{ "userId": "u-...", "name": "Dana Reyes", "email": "dana@example.com",
"type": "app", "access": "user", "homeApp": true, "emailVerified": true,
"status": "pending", "role": "user", "freeAccess": false,
"signedUp": "2026-10-02T15:12:00.000Z", "lastSignIn": null,
"homeAppBoundAt": "2026-10-02T15:12:00.000Z", "homeAppBoundBy": "u-owner", "homeAppBoundByName": "Sam Rivera" }
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "..." }
}

type is platform (a Strongly user) or app (an app user). access is owner, editor (can use and change it) or user (can only use it). homeApp says whether this app is their Home App. status is active or pending (the account waits for an administrator, or was deactivated); an archived user is never listed. role is their role in the app, the appRole it reads (owner for the app's owner; otherwise the role they were given, admin or user). Sessions and time in the app are on GET /apps/:id/analytics/users.


POST /api/v1/apps/:id/users​

Add an existing app user to the app: the app becomes their Home App. They sign in straight into the app (on its branded pages, in its native app, or on the platform's sign-in page), and appear in its users. The same as Add User with Home App in the Users section of the app's Permissions tab.

Use it for users you create yourself (POST /api/v1/users with role: "app"), for example when sign-up is closed.

A Home App is the user's only app. Every other app they were given is taken away in the same call (as Remove from the app does), and is named in removedFromApps. Afterwards no other app can be shared with them: POST /apps/:id/permissions/members on another app answers 400, and they are not offered by any other app's Add User. App users who signed up on an app's own pages, or accepted its invitation, have it as their Home App from the start.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
userIdstringYesThe user: platform role app, and no other app's Home App user

Response 201 Created​

The user, as GET /apps/:id/users lists them, plus removedFromApps: the other apps they were removed from ([{ "appId", "name" }], empty when there were none).

Errors​

StatusCodeWhen
400validation-errorNo userId, an unknown field, the user is an admin or developer (only app users have a Home App), or their Home App is already another app (the detail names it)
404not-foundNo such app
422validation-errorNo such user, or one you may not add (on Strongly Cloud, a user of another organization)
409invalid-stateThe app does not have Home App on (turn on branded or native sign-in first)

GET /api/v1/apps/:appId/users/:id​

One of the app's users, as the users list shows them: userId, name, email, emailVerified, status, role, freeAccess, homeApp, signedUp, lastSignIn. Someone who is not a user of the app is 404 not-found. Like the list, it is only for those who manage the app; anyone else gets 403 forbidden.

Scope: apps:read


PATCH /api/v1/apps/:appId/users/:id​

Change one of the app's users. Send active, freeAccess and/or role:

  • active: true activates an account waiting for approval, or one that was deactivated: it can sign in.
  • active: false deactivates it: it is signed out now and cannot sign in until activated again. The account and its data are kept.
  • freeAccess: true gives the user free access on an app that charges for access: they are never asked for a plan. false asks them for a plan again.
  • role: "admin" or "user" is their role in the app: the appRole the app reads in X-Strongly-User-Token, for example to open its admin pages to its own team. The app's owner, its app admins and platform admins (on Strongly Cloud, also the admins of its organization) change it; any other value is 400.

Scope: apps:write

Request Body​

{ "active": true }

Response 200 OK​

The user, as GET /apps/:id/users lists them.


POST /api/v1/apps/:appId/users/:id/reset-password​

Email the user a password reset code, which they enter with a new password on the app's branded reset page (https://<your-platform>/app/<slug>/reset-password) or in the app's iPhone app (Native App Sign-in). Only for a user whose Home App this app is (409 not-home-app-user otherwise).

Scope: apps:write

Response 200 OK​

The user the code was sent to, as the users list shows them.


DELETE /api/v1/apps/:appId/users/:id​

Remove the user from the app: signed out, no longer an app user of it and no longer bound to it as their home app. Their platform account is kept.

Scope: apps:write

Response 200 OK​

{ "data": { "appId": "app-...", "userId": "u-...", "removed": true } }

DELETE /api/v1/apps/:appId/users/:id/account​

Delete one of the app's app users' whole platform account, for their "delete all my data". The account is archived and never signs in again, and everything it holds is deleted: sessions, app installs and credentials, push devices, their agents of the app (their clones, with every thread, message and memory), their threads on any agent, everything else they own, their tasks, preferences, notifications and app-user entries. Only the archived account record and its cost history stay. The deletion is audited by ids and counts, never content.

Only for an app user whose Home App is this app, or who is an app user of this app only. Only the app's owner, its app admins and administrators delete users. Call it from your app with its own token (no X-Strongly-User-Token). DELETE /me is for a person deleting their own account with their own credential: an app's or an agent's token cannot use it.

Scope: apps:write

Response 204 No Content​

StatusWhen
403The user is a developer or an administrator, or a user of another app, or you do not manage the app
404The user is not a user of this app
409One of their agents is still starting or stopping: call again once it settles

DELETE /api/v1/apps/:appId/agent-subjects/:id​

Delete every conversation thread, message and task your app tagged with one of its subjects, on every agent of the app: each of its users' clones of its agents, whoever's clone or task it is, and the agents they were cloned from. A subject is your app's own id for whom a conversation or task is about (a person's id, say), given as subjectId when you open a thread (POST /agents/:id/threads), send a message (POST /agents/:agentId/threads/:id/runs) or create a task (POST /primitives/tasks); a task an agent creates while answering a tagged message carries the subject too. A tagged thread is deleted whole; a tagged message is deleted from any other thread; a tagged task is deleted with its fire history and schedule, so it never fires again. Use it when someone a conversation or reminder was about is deleted, so other users' agents keep nothing about them.

Only the app's owner, its app admins and administrators. Audited by the subject id and counts, never content.

Scope: apps:write

Response 204 No Content​


POST /api/v1/apps/:id/users/invitations​

Invite someone to the app by email. They get an email with the app's name and logo and a link to the app's branded invitation page (https://<your-platform>/app/<slug>/invitation/<token>), where they choose a password and are signed straight into the app: their account is active at once with the email confirmed, this app is their Home App and role is their role in the app (appRole). See Invitations.

It works with Allow public sign-up off (people then join only by invitation) and needs the app's branded sign-in pages on. The app's allowed email domains apply. An invited user takes a seat like any other app user. The invitation expires after 7 days. Only the app's owner, its app admins and platform admins (on Strongly Cloud, also the admins of its organization) invite.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
emailstringYesWho to invite
namestringNoTheir name, shown on the invitation page (they may change it there)
rolestringNouser (default) or admin (an app admin)
returnPathstringNoWhere in the app they land once they have chosen a password: a path inside the app that starts with one /, with its query if any (such as /invitations/123?token=abc). At most 2,000 characters. Never a full URL: a scheme, a host, //, a backslash, a . or .. segment, a control character or a /_strongly/ path is refused. Default: the app's start page
invitedByNamestringNoWho the invitation email says invited them ("Dana invited you to use ..."): plain text of 1 to 100 characters. Default: your account's name
{ "email": "sample@example.com", "name": "Sample User", "role": "user",
"returnPath": "/invitations/123?token=abc", "invitedByName": "Dana Lee" }

Use returnPath when your app invites someone for one of its own pages (a shared record, a team, a family): the person follows the link in the email, chooses a password and lands on that page, signed in, instead of the app's start page. The app receives the request like any other signed-in request. returnPath and invitedByName stay with the invitation: a resend uses them again.

Response 201 Created​

The invitation:

{ "data": {
"id": "inv-...", "appId": "app-...", "email": "sample@example.com", "name": "Sample User", "role": "user",
"status": "pending", "expiresAt": "...", "invitedBy": "usr_...", "invitedByName": "Dana Lee",
"returnPath": "/invitations/123?token=abc", "createdAt": "...", "acceptedAt": null
} }
FieldDescription
statuspending, accepted, revoked or expired
expiresAtWhen the link stops working (7 days after it was sent or last resent)
invitedByThe account that sent it
invitedByNameWho the email says invited them: the invitedByName you sent, or that account's name
returnPathWhere in the app they land on accepting, or null (the app's start page)
acceptedAtWhen the person accepted it, or null

Errors​

StatusWhen
400No email, an invalid email, a role other than admin or user, a returnPath that is not a path inside the app, an invitedByName that is empty or longer than 100 characters, or an unknown field
403You do not manage the app's users, or the email is outside the app's allowed email domains (domain-not-allowed)
404No such app
409An account with that email already exists (add an existing app user with POST /apps/:id/users), an invitation to it is pending (resend it), or the app's branded sign-in pages are off

GET /api/v1/apps/:id/users/invitations​

The app's invitations, newest first, cursor-paged. Only for those who manage the app's users.

Scope: apps:read

ParameterTypeRequiredDefaultDescription
statusstringNo--pending, accepted, revoked or expired; every invitation when left out
limitintegerNo50Maximum number of results
cursorstringNometa.nextCursor of the previous page

Response 200 OK​

{ "data": [ { "id": "inv-...", "appId": "app-...", "email": "sample@example.com", "name": null, "role": "admin",
"status": "pending", "expiresAt": "...", "invitedBy": "usr_...", "invitedByName": "Jordan Admin",
"createdAt": "...", "acceptedAt": null } ],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "..." } }

POST /api/v1/apps/:appId/users/invitations/:id/resend​

Send a pending invitation again: a new link with a fresh 7 days. The old link stops working.

Scope: apps:write

Response 200 OK​

The invitation, with its new expiresAt. A revoked or accepted invitation is 409.


DELETE /api/v1/apps/:appId/users/invitations/:id​

Revoke a pending invitation: its link stops working.

Scope: apps:write

Response 204 No Content​

A revoked or accepted invitation is 409.


GET /api/v1/apps/:id/analytics​

The app's usage over a range: the platform's own count of the requests it proxied to the app, per signed-in user and minute, turned into sessions.

Scope: apps:read

Query Parameters​

ParameterTypeRequiredDefaultDescription
rangestringNo30d7d, 30d or 90d (days ending today, UTC)

Response 200 OK​

{
"data": {
"range": "30d",
"sessionGapMinutes": 30,
"summary": {
"uniqueUsers": 12, "newUsers": 4, "returningUsers": 8,
"sessions": 57, "requests": 1830, "sessionsPerUser": 4.75,
"avgSessionMinutes": 11.3, "medianSessionMinutes": 7.0,
"activeDays": 19, "lastUsedAt": "2026-10-02T15:16:00+00:00"
},
"daily": [ { "day": "2026-09-03T00:00:00+00:00", "activeUsers": 3, "newUsers": 1, "returningUsers": 2, "sessions": 5 } ],
"sessionLengths": [ { "bucket": "Under 1 min", "sessions": 9 }, { "bucket": "1 to 5 min", "sessions": 20 } ],
"startsByWeekdayHour": [ [0, 0, 1] ]
}
}
FieldDescription
sessionGapMinutesMinutes of inactivity after which a user's next request starts a new session
summaryUnique, new (first ever seen in the range) and returning users; sessions and requests; sessions per user; average and median session length in minutes; days with any use; when the app was last used
dailyOne entry per day of the range
sessionLengthsSessions per length bucket
startsByWeekdayHourSession starts by weekday (Monday first) and UTC hour: seven arrays of 24 counts

GET /api/v1/apps/:id/analytics/users​

Who used the app over the range, one row per user.

Scope: apps:read

Query Parameters​

ParameterTypeRequiredDefaultDescription
rangestringNo30d7d, 30d or 90d
qstringNo--Search by name or email
sortstringNo-minutesname, sessions, minutes, requests or lastSeen; prefix with - for descending
limitintegerNo50Maximum number of results
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK​

{
"data": [
{ "userId": "u-...", "name": "Dana Reyes", "email": "dana@example.com",
"sessions": 9, "minutes": 84.5, "requests": 311, "lastSeen": "2026-10-02T15:16:00+00:00" }
],
"meta": { "total": 12, "limit": 50, "nextCursor": null, "requestId": "..." }
}

The paid-access endpoints need the Stripe App Payments plugin installed and on for the organization (installed once from the Marketplace by an administrator; on Strongly Cloud, by a developer of the organization); otherwise they answer 409 with code plugin-not-installed.

GET /api/v1/apps/:id/paid-access​

The app's paid-access settings. This is the app owner's own Stripe account charging the app's users; it is separate from Strongly billing and credits. It says whether a plan is required, the Stripe account on file (mode and last four characters of the key; the key itself is never returned), the webhook URL to register in Stripe, grace days and the plans on offer. paidAccess is null when it was never set up.

Scope: apps:read

Response 200 OK​

{
"data": {
"appId": "app-...",
"paidAccess": {
"enabled": true, "stripeMode": "live", "keyLastFour": "a1b2", "hasWebhookSecret": true,
"webhookUrl": "https://<your-platform>/api/stripe/webhook/app/app-...",
"graceDays": 3,
"plans": [
{ "planId": "pro", "name": "Pro", "description": "", "kind": "individual", "stripePriceId": "price_...", "minSeats": 1, "trialDays": 14 },
{ "planId": "team", "name": "Team", "description": "", "kind": "team", "stripePriceId": "price_...", "minSeats": 2, "trialDays": 0 }
],
"updatedAt": "2026-10-02T16:00:00.000Z"
}
}
}

PATCH /api/v1/apps/:id/paid-access​

Set up or change paid access with the app owner's own Stripe account (separate from Strongly billing and credits). Only the fields sent change; keys left out stay as they are.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
stripeSecretKeystringFirst timesk_live_... or sk_test_...; stored encrypted
stripeWebhookSecretstringNowhsec_... of the webhook endpoint registered in Stripe for the app's webhook URL; stored encrypted
graceDaysintegerNoDays access continues after a failed payment, 0 to 90 (default 3)
enabledbooleanNoRequire a plan from the app's users. Needs branded sign-in (PATCH /apps/:id/auth) and at least one plan

Response 200 OK​

{ "appId", "paidAccess" } as in GET /apps/:id/paid-access.

Errors​

StatusCodeWhen
400validation-errorAn unknown field, a key that is not sk_..., a secret that is not whsec_..., grace days out of range, or no key on first set-up
409invalid-stateEnabling without branded sign-in

PUT /api/v1/apps/:appId/paid-access/plans/:id​

Create or replace a plan.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
namestringYesShown to users
kindstringYesindividual (one person pays for themself) or team (one payer, seats for members)
stripePriceIdstringYesprice_... of a recurring price in the owner's Stripe account
descriptionstringNoWhat the plan includes
minSeatsintegerNoTeam plans: the fewest seats a team may have (default 1)
trialDaysintegerNoFree trial days at checkout (default 0)

Response 200 OK​

{ "appId", "paidAccess" } with the plans as they now are.


DELETE /api/v1/apps/:appId/paid-access/plans/:id​

Stop offering a plan. Subscriptions already on it continue.

Scope: apps:write

Response 200 OK​

{ "appId", "paidAccess" } with the remaining plans. 404 when there is no such plan.


GET /api/v1/apps/:id/paid-access/subscriptions​

Every subscription of the app's paid access (the app owner's Stripe account, not Strongly billing).

Scope: apps:read

Query Parameters​

ParameterTypeRequiredDefaultDescription
statusstringNoallactive, grace (a payment failed; still served), suspended or canceled
qstringNo--Search by payer name or email
sortstringNo-createdAtcreatedAt, status, seats or currentPeriodEnd; prefix with - for descending
limitintegerNo50Maximum number of results
cursorstringNometa.nextCursor of the previous page; omit for the first page

Response 200 OK​

{
"data": [
{ "_id": "...", "planId": "team", "planName": "Team", "kind": "team", "status": "active", "stripeStatus": "active",
"payer": { "userId": "u-...", "name": "Dana Reyes", "email": "dana@example.com" },
"seats": 5, "membersCount": 3, "invitesCount": 1,
"currentPeriodEnd": "2026-11-02T00:00:00.000Z", "cancelAtPeriodEnd": false,
"stripeSubscriptionId": "sub_...", "createdAt": "2026-10-02T16:00:00.000Z" }
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "..." }
}

Public access​

A public app is open to anyone on the internet without signing in, as its own website at https://<slug>.<apps domain>/ (the apps domain is the platform's, separate from your Strongly address), and at any custom domains it has. See Public Apps for the security model. Only the app's owner or an admin changes it. When the platform has no apps domain (so it serves no public apps), these routes and the custom domain routes answer 404 public-apps-disabled.

GET /api/v1/apps/:id/public-access​

The app's public access.

Scope: apps:read

Response 200 OK​

{ "data": {
"appId": "app-...", "enabled": true, "status": "live",
"slug": "my-site", "url": "https://my-site.<apps domain>/", "host": "my-site.<apps domain>", "domain": "<apps domain>", "path": "/",
"maxRequestBytes": 1048576, "paths": [], "pathUrls": [], "mode": "site", "reach": "public",
"risk": "Anyone on the internet can open this app and submit its forms without signing in. ...",
"conflicts": [],
"riskAcknowledgedAt": "2026-10-17T05:00:00.000Z", "riskAcknowledgedBy": "usr_...",
"enabledAt": "2026-10-17T05:00:00.000Z", "enabledBy": "usr_...", "disabledAt": null, "disabledBy": null,
"updatedAt": "2026-10-17T05:00:00.000Z", "updatedBy": "usr_..."
} }
FieldDescription
statusoff; preparing: on, while the app's pods restart without platform API access, or the app is not running; live: served at url
slugThe app's one URL name (shared with its branded sign-in pages)
urlThe app's address, the root of its own host: https://<slug>.<apps domain>/
hostThe app's own host, <slug>.<apps domain>: its custom domains CNAME to it
domainThe platform's apps domain
pathUrlsWith public paths: each one's full address, https://<slug>.<apps domain><path>
modesite (the whole app is public) or paths (only paths under its address are)
reachThe platform reach the app's pods run with now: public (no platform API token) or standard
riskThe text to acknowledge before turning it on
conflictsWhat stops the whole app being public (sign-in features, workflows, feature stores, agents)

PATCH /api/v1/apps/:id/public-access​

Turn public access on or off and set its settings (JSON Merge Patch: only the fields sent change). The change is all or nothing: when the app's pods can not be restarted for it, nothing is saved and the answer says why.

Scope: apps:write

Request Body​

FieldTypeRequiredDescription
enabledbooleanNoServe the app to the internet without sign-in
riskAcknowledgedbooleanWhen turning it on or widening ittrue once the user acknowledged risk
slugstringNoThe app's address is https://<slug>.<apps domain>/ (and its branded sign-in <your Strongly address>/app/<slug>/): 1 to 40 lowercase letters, digits or hyphens, not starting or ending with a hyphen; unique among apps
maxRequestBytesintegerNoThe largest request body, 1024 to 26214400 (default 1048576)
pathsstring[]NoEmpty or null: the whole app is public. Path prefixes (["/mcp"]): only those under its address are public, for callers that bring their own Authorization token; the app keeps its sign-in and platform access

Response 200 OK​

The public access, as GET answers it.

Errors​

StatusCodeWhen
400validation-errorTurning it on (or exposing more of it) without riskAcknowledged: true; a slug, size or path that is not valid
403not-authorizedYou are not the app's owner or an admin
409conflictAnother app has the slug, or the whole app can not be public while it uses sign-in features or holds workflows, feature stores or agents
502backend-unavailableThe app's pods could not be restarted for the change; nothing was saved

Custom domains​

Domains you own that serve an app, public or signed-in (a signed-in app signs its users in through Strongly there, as at its own address), on a platform with an apps domain. Each has DNS records its owner sets; it is served once DNS shows it is this app's and its certificate is issued. Reading them takes apps:read; adding, changing and removing them take apps:write and the app's owner or an admin. See Use your own domain.

GET /api/v1/apps/:id/domains​

The app's custom domains, oldest first.

{ "data": [ {
"_id": "dom_...", "appId": "app-...", "hostname": "www.example.com", "url": "https://www.example.com/",
"status": "active", "dnsTarget": "my-site.<apps domain>",
"dnsRecords": [
{ "purpose": "routing", "type": "CNAME", "name": "www.example.com", "value": "my-site.<apps domain>", "apex": false },
{ "purpose": "ownership", "type": "TXT", "name": "_strongly-verify.www.example.com", "value": "strongly-verify=...", "apex": false },
{ "purpose": "certificate", "type": "CNAME", "name": "_a1b2.www.example.com", "value": "_c3d4.acm-validations.aws", "apex": false }
],
"dns": { "status": "ok", "cname": "my-site.<apps domain>", "checkedAt": "..." },
"certificate": { "source": "issued", "certificateId": null, "status": "ISSUED", "notAfter": "...", "renewalStatus": null, "failureReason": null },
"pendingCertificate": null, "lastCheckedAt": "...", "lastCheckError": null, "createdAt": "...", "createdBy": "usr_...", "activatedAt": "..."
} ] }
FieldDescription
urlhttps://<hostname>/: the app is served at the root of the domain, paths unchanged
statuspending (waiting for DNS or the certificate), active (served), failed (the certificate could not be issued, or another app serves the hostname: lastCheckError says why), removing
dnsRecordsWhat to set at the DNS provider. routing: the CNAME to the app's host (apex: true for a root domain: use ALIAS, ANAME or CNAME flattening). ownership: the TXT record that shows the domain is this app's where its CNAME can not be seen (a root domain, a provider that proxies or flattens it). certificate: the automatic certificate's validation CNAME
dns.statusok (it reaches the platform and its CNAME names this app's host or its TXT record carries its token), pending (it does not resolve yet), unverified (it reaches the platform but is not shown to be this app's), misdirected (it points elsewhere)
certificateThe certificate it serves: issued (automatic) or uploaded

POST /api/v1/apps/:id/domains​

Add a custom domain ({ "hostname": "www.example.com" }) to an app. Answers it (201), with its records; the automatic certificate is requested at once. Refused: a hostname under the apps domain or of your Strongly address's site, a public suffix, one the app already has, one another app serves, more than 20 domains (400/409).

GET, PATCH and DELETE /api/v1/apps/:appId/domains/:id​

One domain. PATCH chooses its certificate: { "certificate": { "source": "issued" } } or { "certificate": { "source": "uploaded", "certificateId": "crt_..." } }; the domain keeps serving with the old one until the new one is ready. DELETE stops serving it and deletes its automatic certificate (204); delete its records at your DNS provider too.

POST /api/v1/apps/:appId/domains/:id/refresh​

Check its DNS and certificate now (the platform also checks every minute until it is active, hourly after), and request a new certificate when the last one failed. Answers the domain.

Certificates​

  • GET /api/v1/apps/:id/certificates: the app's uploaded certificates (subject, issuer, notAfter, the hostnames they cover and the domains using them; never a private key).
  • POST /api/v1/apps/:id/certificates: upload one: { "certificate": "<PEM>", "privateKey": "<PEM>", "chain": "<PEM>", "domainIds": ["dom_..."] }. It must be valid now and cover each named domain; the key goes to the certificate service only and is never stored or answered.
  • GET, PUT and DELETE /api/v1/apps/:appId/certificates/:id: one certificate; PUT replaces it in place (certificate, privateKey, chain; it must still cover its domains); DELETE refuses one a domain still serves with (switch the domain first).

Owners are warned (bell and email) 30, 14 and 3 days before an uploaded certificate expires.