Skip to main content

Apps

Apps are containerized applications you deploy and run on the platform. Use this resource to create an app, upload a code bundle, deploy it, control its lifecycle (start/stop/restart), and watch its status, logs, and metrics.

Access it as client.apps on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.

Quick start​

from strongly import Strongly

client = Strongly()

# List (auto-paginates as you iterate) # filters: status, environment_id, search, public_access
for app in client.apps.list():
print(app.id)

Methods​

Core​

list​

list(*, status: str | None = None, environment_id: str | None = None, search: str | None = None, public_access: str | None = None, limit: int | None = None) -> SyncPaginator[AppSummary]

List apps with pagination and filtering.

Each app is a summary; retrieve returns the full app.

Parameters

  • status (str | None, optional): Filter by app status.
  • environment_id (str | None, optional): Filter by the runtime environment the app runs in.
  • search (str | None, optional): Search by name or description.
  • public_access (str | None, optional): enabled: only public apps (served to the internet without sign-in; an admin sees every organization's); disabled: only the others.
  • limit (int | None, optional): Maximum number of items to return (default: all matching items).

create​

create(*, name: str, description: str | None = None, display_name: str | None = None, source_volume_id: str | None = None, source_folder: str | None = None, github_repo_url: str | None = None, github_branch: str | None = None, github_ssh_key_id: str | None = None, github_subdirectory: str | None = None, instances: int | None = None, cpu: str | None = None, memory: str | None = None, disk: str | None = None, gpu: str | None = None, gpu_type: str | None = None, use_spot: bool | None = None, spot_fallback: bool | None = None, environment_id: str | None = None, environment_variables: Mapping[str, str] | None = None, addons: Sequence[str] | None = None, data_sources: Sequence[str] | None = None, ai_models: Sequence[str] | None = None, ml_models: Sequence[str] | None = None, workflows: Sequence[str] | None = None, feature_stores: Sequence[str] | None = None, agents: Sequence[str] | None = None, volumes: Sequence[str] | None = None, autoscaling: AppAutoscaling | Mapping[str, Any] | None = None, scale_to_zero: AppScaleToZero | Mapping[str, Any] | None = None, tags: Sequence[str] | None = None) -> App

Create a new app.

An app has no default size: it runs at exactly the size it is given. Set environment_id (the app runs at that environment's size), or cpu and memory (disk optional). deploy refuses an app with neither and names what is missing.

A size is the whole workload: Strongly's helper services beside it (sign-in proxy, outbound proxy, data volume mounts, model cache upload, metrics) are taken out of it, never added on top (set 4 GB and the workload uses 4 GB in total). A size too small to hold them is refused naming them. A CPU, memory, GPU count or disk above the largest allowed machine's room for one workload raises APIError with status_code 400 naming the resource and both figures, and nothing is created or changed. Check client.compute.list_pools() allowed_sizes (max_cpu, max_memory_gib, max_disk_gib, max_gpus) before a large size.

Parameters

  • name (str): App name.
  • description (str | None, optional): App description.
  • display_name (str | None, optional): Name shown in the UI.
  • source_volume_id (str | None, optional): Build from a volume's code, as last synced (what a workspace's Sync pushes): the volume's ID.
  • source_folder (str | None, optional): The folder of that volume's code holding strongly.manifest.yaml; omit for the whole code.
  • github_repo_url (str | None, optional): Build from a GitHub repository instead: its SSH URL (git@github.com:owner/repo.git). Needs github_branch and github_ssh_key_id.
  • github_branch (str | None, optional): The branch to build.
  • github_ssh_key_id (str | None, optional): The ID of one of your SSH keys (Profile > Integrations) GitHub accepts for the repository.
  • github_subdirectory (str | None, optional): The repository folder holding strongly.manifest.yaml; omit for the root.
  • instances (int | None, optional): Number of replicas.
  • cpu (str | None, optional): CPU cores, e.g. "0.5", "2" or "500m".
  • memory (str | None, optional): Memory, e.g. "1GB" or "512MB".
  • disk (str | None, optional): Disk, e.g. "10GB".
  • gpu (str | None, optional): Number of GPUs as a string, e.g. "1".
  • gpu_type (str | None, optional): GPU type when gpu is set. One of the types list_gpu_options lists (the admin Compute selection); any other is refused with a 400 ValidationError.
  • use_spot (bool | None, optional): True runs the app on spot capacity (cheaper; it can be reclaimed, and the app restarts on a new node).
  • spot_fallback (bool | None, optional): With use_spot: True (the API's default) falls back to on-demand capacity when no spot is available; False waits for spot.
  • environment_id (str | None, optional): Runtime environment the app runs in (and at the size of).
  • environment_variables (Mapping[str, str] | None, optional): Environment variables as a name -> value mapping.
  • addons (Sequence[str] | None, optional): Add-on IDs to connect (credentials reach the app through STRONGLY_SERVICES).
  • data_sources (Sequence[str] | None, optional): Data source IDs to connect.
  • ai_models (Sequence[str] | None, optional): AI model IDs to connect.
  • ml_models (Sequence[str] | None, optional): Model registry model IDs to connect.
  • workflows (Sequence[str] | None, optional): Deployed workflow IDs the app may trigger.
  • feature_stores (Sequence[str] | None, optional): Feature store IDs the app reads features from.
  • agents (Sequence[str] | None, optional): Deployed agent IDs the app talks to.
  • volumes (Sequence[str] | None, optional): Volume IDs the app mounts: a project's volume you have not shared at /volumes/local/<name>, every shared volume (yours included) at /volumes/shared/<name>; code/ read-only, data/ read and write, each written file saved as a new version. Needs a disk: disk, or an environment that has one.
  • autoscaling (AppAutoscaling | Mapping[str, Any] | None, optional): Autoscale the app (AppAutoscaling, every field given); omitted, it runs instances.
  • scale_to_zero (AppScaleToZero | Mapping[str, Any] | None, optional): Scale the app to zero when idle (AppScaleToZero, e.g. {'idle_minutes': 15}); omitted, it always runs.
  • tags (Sequence[str] | None, optional): Tags.

Returns

  • App: The newly created App.

Raises

  • ValueError: Both a volume and a GitHub source are given, or a GitHub source without its branch or SSH key.

retrieve​

retrieve(app_id: str) -> App

Get an app: its status, deployment, configuration, sign-in and Home App.

Parameters

  • app_id (str): The app ID.

update​

update(app_id: str, *, name: str | None = None, description: str | None = None, display_name: str | None = None, instances: int | None = None, cpu: str | None = None, memory: str | None = None, disk: str | Literal[False] | None = None, use_spot: bool | None = None, spot_fallback: bool | None = None, environment_id: str | None = None, environment_variables: Mapping[str, str] | None = None, addons: Sequence[str] | None = None, data_sources: Sequence[str] | None = None, ai_models: Sequence[str] | None = None, ml_models: Sequence[str] | None = None, workflows: Sequence[str] | None = None, feature_stores: Sequence[str] | None = None, agents: Sequence[str] | None = None, volumes: Sequence[str] | None = None, autoscaling: AppAutoscaling | Mapping[str, Any] | Literal[False] | None = None, scale_to_zero: AppScaleToZero | Mapping[str, Any] | Literal[False] | None = None, tags: Sequence[str] | None = None) -> App

Update an app's definition.

Sizes are checked as given: cpu must be a number of cores and memory / disk sizes such as "1GB"; disk=False removes the app's disk size (refused while it mounts volumes and has no environment disk). List arguments replace the whole set. A change of environment_variables, the services (addons to agents), volumes or autoscaling rolls out to a running app at once with no downtime (a stopped app gets it when it starts); a size, instances or spot change reaches it at the next deploy, start or restart.

The services are what the app's STRONGLY_SERVICES holds, the same choices as at create: add, change or remove one without recreating the app (each one the app's owner and you may use). Such a rollout is a new app version (versions; deploy_version rolls back) and is reported as any deploy is: poll status until rollout.status is complete, or failed with why and the version that keeps serving.

autoscaling is the whole AppAutoscaling block (every field given), or False to turn autoscaling off (the app then runs instances).

scale_to_zero is AppScaleToZero (idle_minutes 1-1440): the running app sleeps (no instances, no compute charged) after that many minutes with no request or open connection, and its next request wakes it; False turns it off, and a sleeping app then starts at once. No rollout.

A size is the whole workload: Strongly's helper services beside it (sign-in proxy, outbound proxy, data volume mounts, model cache upload, metrics) are taken out of it, never added on top (set 4 GB and the workload uses 4 GB in total). A size too small to hold them is refused naming them. A CPU, memory, GPU count or disk above the largest allowed machine's room for one workload raises APIError with status_code 400 naming the resource and both figures, and nothing is created or changed. Check client.compute.list_pools() allowed_sizes (max_cpu, max_memory_gib, max_disk_gib, max_gpus) before a large size.

delete​

delete(app_id: str) -> None

Delete an app and its deployment.

Parameters

  • app_id (str): The app ID.

Lifecycle & actions​

start​

start(app_id: str) -> App

Start a stopped app (scale its deployment back up) and return it.

Parameters

  • app_id (str): The app ID.

stop​

stop(app_id: str) -> App

Stop an app (scale its deployment to zero) and return it; poll status.

Parameters

  • app_id (str): The app ID.

restart​

restart(app_id: str) -> App

Restart an app (a rolling restart of its pods) and return it.

Parameters

  • app_id (str): The app ID.

deploy​

deploy(app_id: str) -> App

Deploy an app at exactly its size.

Its environment's size, or the cpu and memory set on it. An app with neither is refused with a ValidationError naming what is missing; set it with update.

Parameters

  • app_id (str): The app ID.

Returns

  • App: The app; the deployment has started (poll status).

deploy_upload​

deploy_upload(app_id: str, file: str | Path | BinaryIO, *, description: str | None = None) -> App

Deploy a zip bundle to an existing app.

Parameters

  • app_id (str): The app ID.
  • file (str | Path | BinaryIO): Path to a zip file, or a file-like object (opened in binary mode).
  • description (str | None, optional): A new description for the app.

Returns

  • App: The app, its new source building; deploy it with deploy once build_status is completed.

Examples

result = client.apps.deploy_upload("app-id", "my-app.zip")

Other​

add_domain​

add_domain(app_id: str, hostname: str) -> AppDomain

Serve an app (public or signed-in) at your own domain, such as www.example.com.

Only the app's owner or an admin, on a platform with an apps domain (a signed-in app signs its users in through Strongly there, as at its own address). Answers the domain with the DNS records to set at your DNS provider (AppDomain.dns_records): a CNAME from the hostname to the app's own address (a root domain: an ALIAS, ANAME or flattened CNAME record) and, for the automatic certificate, its validation CNAME (keep it: the certificate renews with it; refresh_domain shows it if it is not there yet). It is served once both are in DNS and the certificate is issued (status active). Upload your own certificate instead with upload_certificate.

Parameters

  • app_id (str): The app ID.
  • hostname (str): The domain, such as www.example.com.

add_member​

add_member(resource_id: str, *, user_id: str, role: str) -> Permissions

Share the resource with a user.

Parameters

  • resource_id (str): The resource's id.
  • user_id (str): The user to share it with.
  • role (str): "editor" (use and change it) or "user" (use it only; types without a use-only tier, such as knowledge bases, take "editor" only).

add_user​

add_user(app_id: str, user_id: str) -> AppUser

Add an existing app user (platform role app) to an app as their Home App.

They sign in straight into the app and appear among its users. The app must have Home App on (branded or native sign-in turns it on).

Parameters

  • app_id (str): The app ID.
  • user_id (str): The user: an app user whose Home App is no other app. On Strongly Cloud they must be an active member of the app's organization; elsewhere each app user is in their own organization.

analytics​

analytics(app_id: str, *, range: str | None = None) -> AppAnalytics

Get an app's usage: users, sessions, requests, per day and by weekday and hour.

Parameters

  • app_id (str): The app ID.
  • range (str | None, optional): 7d (the default), 30d or 90d.

analytics_users​

analytics_users(app_id: str, *, range: str | None = None, q: str | None = None, sort: str | None = None, limit: int | None = None) -> SyncPaginator[AppUsageUser]

List who used an app over the range (sessions, minutes, requests, last seen).

Parameters

  • app_id (str): The app ID.
  • range (str | None, optional): 7d (the default), 30d or 90d.
  • q (str | None, optional): Only users whose name or email matches.
  • sort (str | None, optional): Fields to sort by, - for descending.
  • limit (int | None, optional): The most users to return; every one when omitted.
build_log_download_link(app_id: str) -> DownloadLink

Return a signed link (5 minutes) to the whole log of the app's current build.

build_logs​

build_logs(app_id: str, *, limit: int | None = None, level: str | None = None, since: str | None = None) -> AppBuildLogs

Get an app's image build log lines: what failed when a build failed.

Parameters

  • app_id (str): The app ID.
  • limit (int | None, optional): The most lines to return.
  • level (str | None, optional): Only lines of this level, e.g. error.
  • since (str | None, optional): Only lines at or after this ISO 8601 time.

build_status​

build_status(app_id: str) -> AppBuild

Get an app's image build: queued, building, completed or failed.

Parameters

  • app_id (str): The app ID.

create_with_upload​

create_with_upload(file: str | Path | BinaryIO, *, name: str | None = None, description: str | None = None, environment_variables: Mapping[str, str] | None = None, cpu: str | None = None, memory: str | None = None, disk: str | None = None, gpu: str | None = None, gpu_type: str | None = None, instances: int | None = None, use_spot: bool | None = None, spot_fallback: bool | None = None, metadata: Mapping[str, Any] | None = None) -> App

Create a new app by uploading a zip bundle; its image build starts.

A size is the whole workload: Strongly's helper services beside it (sign-in proxy, outbound proxy, data volume mounts, model cache upload, metrics) are taken out of it, never added on top (set 4 GB and the workload uses 4 GB in total). A size too small to hold them is refused naming them. A CPU, memory, GPU count or disk above the largest allowed machine's room for one workload raises APIError with status_code 400 naming the resource and both figures, and nothing is created or changed. Check client.compute.list_pools() allowed_sizes (max_cpu, max_memory_gib, max_disk_gib, max_gpus) before a large size.

Parameters

  • file (str | Path | BinaryIO): Path to a zip file, or a file-like object (opened in binary mode).
  • name (str | None, optional): App name. Defaults to the filename without extension.
  • description (str | None, optional): App description.
  • environment_variables (Mapping[str, str] | None, optional): The app's environment variables.
  • cpu, memory, disk, gpu, gpu_type (str | None, optional): The app's size (e.g. cpu="0.5", memory="1GB"); it runs at exactly this size. gpu_type: One of the types list_gpu_options lists (the admin Compute selection); any other is refused with a 400 ValidationError.
  • instances (int | None, optional): How many replicas it runs.
  • use_spot (bool | None, optional): Run on spot capacity.
  • spot_fallback (bool | None, optional): Fall back to on-demand capacity when no spot capacity is free.
  • metadata (Mapping[str, Any] | None, optional): Further app fields (each must be a field an app has).

Returns

  • App: The new app, with its build.

Examples

app = client.apps.create_with_upload(
"my-app.zip",
name="My App",
description="An awesome app",
)

delete_agent_subject​

delete_agent_subject(app_id: str, subject_id: str) -> None

Delete every thread, message and task the app tagged with a subject on its agents.

The subject is the app's own id (a person's, say) given as subject_id to Agents.create_thread, Agents.chat and Tasks.create (a task an agent creates in a chat run tagged with it carries it too). Every clone of the app's agents and their bases is covered, whoever's clone or task it is: a tagged thread is deleted whole, a tagged message from any other thread, a tagged task with its fire history and schedule.

Parameters

  • app_id (str): The app ID.
  • subject_id (str): The subject id.

delete_certificate​

delete_certificate(app_id: str, certificate_id: str) -> None

Delete an uploaded certificate no domain serves.

Parameters

  • app_id (str): The app ID.
  • certificate_id (str): The certificate ID.

delete_domain​

delete_domain(app_id: str, domain_id: str) -> None

Remove a custom domain: it stops serving at once.

Its automatic certificate is deleted (an uploaded one stays the app's until delete_certificate).

Parameters

  • app_id (str): The app ID.
  • domain_id (str): The domain ID.

delete_plan​

delete_plan(app_id: str, plan_id: str) -> AppPaidAccess

Stop offering a plan (its subscriptions continue); return the paid access left.

Parameters

  • app_id (str): The app ID.
  • plan_id (str): The plan.

delete_user_account​

delete_user_account(app_id: str, user_id: str) -> None

Delete one of the app's app users' whole platform account ("delete all my data").

Their account, sessions, app installs and credentials, their agent clones of the app's agents with every thread, message and memory, and everything else the platform keeps for them. Only for an app user whose Home App is this app, or an app user of this app only; a developer, an administrator or a user of another app is refused (403). Only the app's owner, its app admins and administrators.

Parameters

  • app_id (str): The app ID.
  • user_id (str): The app user.

deploy_version​

deploy_version(app_id: str, version_id: str) -> AppVersion

Roll an app back to one of its versions and return the new current version.

The version's image and settings (environment, size, instances, capacity, autoscaling, volumes, services and environment variables) are deployed again as a new current version that names it (rolled_back_from). Its settings are checked as an edit is, and the settings it changes are recorded in the app's activity. Refused (409) for the version the app runs now.

Parameters

  • app_id (str): The app ID.
  • version_id (str): The version to roll back to (from versions).

Returns

  • AppVersion: The new current version; the rollout has started (poll status).

disconnect_mcp_connection​

disconnect_mcp_connection(app_id: str, connection_id: str) -> None

Disconnect one user's AI client: its tokens stop working at once.

Parameters

  • app_id (str): The app ID.
  • connection_id (str): The connection (from list_mcp_connections).

download_build_log​

download_build_log(app_id: str, dst_path: str | os.PathLike[str] | None = None) -> str

Download the whole log of the app's current build; return where it was saved.

A running build's log is what it has written so far.

It comes straight from storage through a signed link (build_log_download_link), written to disk as it arrives (<app>-<build>.log). dst_path is a file, or a folder to save it in (default: its name, in the current folder).

Parameters

  • app_id (str): The app ID.
  • dst_path (str | os.PathLike | None, optional): Where to save it.

get_certificate​

get_certificate(app_id: str, certificate_id: str) -> AppCertificate

Get one of an app's uploaded certificates.

Parameters

  • app_id (str): The app ID.
  • certificate_id (str): The certificate ID.

get_domain​

get_domain(app_id: str, domain_id: str) -> AppDomain

Get one of a public app's custom domains.

Parameters

  • app_id (str): The app ID.
  • domain_id (str): The domain ID.

get_user​

get_user(app_id: str, user_id: str) -> AppUser

Get one of an app's users.

Like list_users, only for those who manage the app; anyone else gets a 403.

Parameters

  • app_id (str): The app ID.
  • user_id (str): The user.

invite_user​

invite_user(app_id: str, email: str, *, name: str | None = None, role: str | None = None) -> AppInvitation

Invite someone to an app by email.

They get an email with the app's name and logo and a link to its branded invitation page, where they choose a password and are signed straight into the app: active at once, email confirmed, this app their Home App, role their role in it. Works with sign-up off; needs the app's branded sign-in pages on; the app's allowed email domains apply (403 otherwise). An address that already has an account (add an existing app user with add_user) or a pending invitation is a 409. The link lasts 7 days. Only the app's owner, its app admins and platform admins invite.

Parameters

  • app_id (str): The app ID.
  • email (str): Who to invite.
  • name (str | None, optional): Their name, shown on the invitation page.
  • role (str | None, optional): user (the default) or admin (an app admin).

list_certificates​

list_certificates(app_id: str, *, limit: int | None = None) -> SyncPaginator[AppCertificate]

List the certificates uploaded for an app's custom domains (never their keys).

Parameters

  • app_id (str): The app ID.
  • limit (int | None, optional): The most certificates to return; every one when omitted.

list_domains​

list_domains(app_id: str, *, limit: int | None = None) -> SyncPaginator[AppDomain]

List a public app's custom domains, with the DNS records each needs.

Parameters

  • app_id (str): The app ID.
  • limit (int | None, optional): The most domains to return; every one when omitted.

list_invitations​

list_invitations(app_id: str, *, status: str | None = None, limit: int | None = None) -> SyncPaginator[AppInvitation]

List an app's invitations, newest first, a page at a time as you iterate.

Parameters

  • app_id (str): The app ID.
  • status (str | None, optional): Only invitations with this status: pending, accepted, revoked or expired. Every invitation when omitted.
  • limit (int | None, optional): The most invitations to return; every one when omitted.

list_mcp_connections​

list_mcp_connections(app_id: str, *, status: str | None = None, user_id: str | None = None, limit: int | None = None) -> SyncPaginator[McpConnection]

List the AI clients the app's users connected to its MCP server, newest first.

Parameters

  • app_id (str): The app ID.
  • status (str | None, optional): active (the default), revoked or all.
  • user_id (str | None, optional): Only this user's connections.
  • limit (int | None, optional): The most connections to return; every one when omitted.

list_users​

list_users(app_id: str, *, type: str | None = None, status: str | None = None, q: str | None = None, sort: str | None = None, limit: int | None = None) -> SyncPaginator[AppUser]

List everyone who can open an app by name, a page at a time as you iterate.

Its owner, the Strongly users it is shared with and its app users (signed up on its branded pages, bound to it as their Home App, or given it to use), each with type and access; for the app's owner, app admins and administrators also status, role and free access. The list names other people, so only those who manage the app (its owner, Can edit collaborators, app admins and administrators) may read it; anyone who only uses it (Can use, an app user, a Home App user) gets a 403 (PermissionDeniedError). Share with Strongly users through add_member; add an app user with add_user.

Parameters

  • app_id (str): The app ID.
  • type (str | None, optional): Only Strongly users (platform) or only app users (app).
  • status (str | None, optional): Only users with this status: active or pending. An archived user is never listed.
  • q (str | None, optional): Only users whose name or email matches.
  • sort (str | None, optional): Fields to sort by, - for descending.
  • limit (int | None, optional): The most users to return; every one when omitted.

logs​

logs(app_id: str, *, lines: int | None = None, skip_newest: int | None = None, since: str | None = None, container: str | None = None) -> list[AppLogLine]

Get the recent log lines of an app's pods, oldest first.

Parameters

  • app_id (str): The app ID.
  • lines (int | None, optional): The last this many lines; the container's whole log when omitted.
  • skip_newest (int | None, optional): Skip this many of the newest lines (with lines, the page before them: read a long log from its end).
  • since (str | None, optional): Only lines at or after this ISO 8601 time.
  • container (str | None, optional): One container's lines; the app's when omitted.

metrics​

metrics(app_id: str) -> AppMetrics

Measure a running app now (about 6 seconds) against its size.

CPU and memory summed over its replicas, every container of every replica (platform containers marked by role), network throughput and response time. Raises ConflictError when the app is not running.

Parameters

  • app_id (str): The app ID.

minimum_size​

minimum_size() -> AppMinimumSize

Get what the platform's services take of an app's size.

An app's cpu and memory must be more than platform (or with_volumes when it mounts volumes); a smaller size is refused at deploy.

native_sign_in​

native_sign_in(app_id: str) -> AppNativeSignIn

Get an app's native sign-in settings.

Whether the developer's own native apps sign the app's users up and in (over DDP, with the StronglyAppAuth Swift package), and their iOS bundle ids. native_sign_in is None when it was never set up.

Parameters

  • app_id (str): The app ID.
paid_access(app_id: str) -> AppPaidAccess

Get an app's paid access: whether it charges, the Stripe account on file, its plans.

paid_access is None when it was never set up.

Parameters

  • app_id (str): The app ID.

permissions​

permissions(resource_id: str) -> Permissions

Return who can reach the resource: its owner, members and their roles, and visibility.

Parameters

  • resource_id (str): The resource's id.

platform_environment​

platform_environment(app_id: str) -> PlatformEnvironment

Return the variables the platform sets in an app, with their values.

The values are the ones its running container was started with (STRONGLY_APP_ID, STRONGLY_URL, STRONGLY_SERVICES, ...). STRONGLY_URL is /api/proxy/<app id> without an apps domain and '' (served at the root of its own host) with one.

For a user who may manage the app: STRONGLY_SERVICES carries its connections' credentials. While the app is not running every name is listed with no value.

Parameters

  • app_id (str): The app ID.

public_access​

public_access(app_id: str) -> AppPublicAccess

Get an app's public access: whether anyone on the internet opens it without signing in.

Its address (url, https://<slug>.<apps domain>/, the root of its own host; never build it), where it stands (off, preparing, live), its request size limit and public paths, the risk to acknowledge, and what stops it being public. See AppPublicAccess.

Parameters

  • app_id (str): The app ID.

rebuild​

rebuild(app_id: str, *, bundle_source_type: str | None = None, bundle_source: Mapping[str, Any] | None = None) -> App

Build a new version of an app from source; the build runs on after this answers.

With no source it rebuilds from where the current version came from (its volume folder or GitHub branch, as it is now).

Parameters

  • app_id (str): The app ID.
  • bundle_source_type (str | None, optional): volume or github: build from a different source (it becomes the app's).
  • bundle_source (Mapping[str, Any] | None, optional): That source: {"volumeId", "folderPath"} or &#123;"repoUrl", "branch", "sshKeyId", "subdirectory"&#125;.

refresh_domain​

refresh_domain(app_id: str, domain_id: str) -> AppDomain

Check a custom domain's DNS and certificate now.

Instead of at the platform's next check (every minute until it is served, then hourly). A failed certificate request is made again.

Parameters

  • app_id (str): The app ID.
  • domain_id (str): The domain ID.

remote_mcp​

remote_mcp(app_id: str) -> AppRemoteMcp

Get an app's remote MCP: whether its users connect its MCP server to Claude or ChatGPT.

remote_mcp is None when it was never set up; server_url is what a user adds to their AI client; issuer and jwks_url verify the X-Strongly-Mcp-Token the app's MCP endpoint receives.

Parameters

  • app_id (str): The app ID.

remove_member​

remove_member(resource_id: str, user_id: str) -> None

Stop sharing the resource with a user.

Parameters

  • resource_id (str): The resource's id.
  • user_id (str): The user to stop sharing it with.

remove_user​

remove_user(app_id: str, user_id: str) -> None

Remove a user from an app (signed out, no longer its user); their account is kept.

Parameters

  • app_id (str): The app ID.
  • user_id (str): The user.

replace_certificate​

replace_certificate(app_id: str, certificate_id: str, *, certificate: str, private_key: str, chain: str | None = None) -> AppCertificate

Replace an uploaded certificate (a renewal).

Checked like an upload, it must cover every domain that serves it, and they switch to it with no gap.

Parameters

  • app_id (str): The app ID.
  • certificate_id (str): The certificate ID.
  • certificate (str): The new certificate, PEM.
  • private_key (str): Its private key, PEM, without a passphrase.
  • chain (str | None, optional): The intermediate certificates, PEM.

resend_invitation​

resend_invitation(app_id: str, invitation_id: str) -> AppInvitation

Send a pending invitation again: a new link with a fresh 7 days; the old one stops.

Parameters

  • app_id (str): The app ID.
  • invitation_id (str): The invitation.

reset_user_password​

reset_user_password(app_id: str, user_id: str) -> AppUser

Email one of an app's users a password reset link to its branded page.

Parameters

  • app_id (str): The app ID.
  • user_id (str): The user.

retrieve_version​

retrieve_version(app_id: str, version_id: str) -> AppVersion

Get one of an app's versions.

Parameters

  • app_id (str): The app ID.
  • version_id (str): The version's id (from versions).

revoke_invitation​

revoke_invitation(app_id: str, invitation_id: str) -> None

Revoke a pending invitation: its link stops working.

Parameters

  • app_id (str): The app ID.
  • invitation_id (str): The invitation.

set_env​

set_env(app_id: str, environment_variables: Mapping[str, str]) -> App

Replace an app's environment variables and roll them out with no downtime.

Parameters

  • app_id (str): The app ID.
  • environment_variables (Mapping[str, str]): Every variable the app should have (the set replaces its environment).

set_plan​

set_plan(app_id: str, plan_id: str, *, name: str, kind: str, stripe_price_id: str, description: str | None = None, min_seats: int | None = None, trial_days: int | None = None) -> AppPaidAccess

Create or replace a plan of an app's paid access; return the paid access.

Parameters

  • app_id (str): The app ID.
  • plan_id (str): The plan's id (your choice for a new plan).
  • name (str): The plan's name.
  • kind (str): individual (one person pays for themself) or team (one payer, seats).
  • stripe_price_id (str): The recurring Stripe price of your account it charges.
  • description (str | None, optional): What the plan gives.
  • min_seats (int | None, optional): A team plan's fewest seats.
  • trial_days (int | None, optional): Free days before the first charge.

set_visibility​

set_visibility(resource_id: str, visibility: str) -> Permissions

Make the resource public (every user can find and use it) or private.

Parameters

  • resource_id (str): The resource's id.
  • visibility (str): "public" or "private".

stats​

stats(*, status: str | None = None, environment_id: str | None = None, search: str | None = None, public_access: str | None = None) -> AppStats

Count the apps list lists, with the same filters.

It counts them in all, by status, and the instances they are set to run, added up.

Every app the list holds for you with these filters is counted (not a page).

Parameters

  • status, environment_id, search, public_access (optional): As list takes them.

Returns

  • AppStats: total, by_status (each status with how many, most first) and instances.

status​

status(app_id: str) -> AppStatus

Get an app's serving state, how its latest deploy ended and, once deployed, its replicas.

After deploy, poll until rollout.status is complete or failed: status stays running while a failed update's previous version keeps serving.

Parameters

  • app_id (str): The app ID.

subscriptions​

subscriptions(app_id: str, *, status: str | None = None, q: str | None = None, sort: str | None = None, limit: int | None = None) -> SyncPaginator[AppSubscription]

List an app's subscriptions (payer, plan, seats, status), a page at a time.

Parameters

  • app_id (str): The app ID.
  • status (str | None, optional): Only subscriptions with this status: active, grace, suspended or canceled.
  • q (str | None, optional): Only subscriptions whose payer matches.
  • sort (str | None, optional): Fields to sort by, - for descending.
  • limit (int | None, optional): The most subscriptions to return; every one when omitted.

time_series​

time_series(app_id: str, *, window: SeriesWindow | None = None, granularity: SeriesGranularity | None = None) -> ResourceUsageSeries

Get an app's CPU and memory over time, from its hourly usage records.

Each point holds the mean used (weighted by the minutes it ran), its busiest hour, and its size; None where it did not run. Its owner, collaborators and admins may read it.

Every hour (24h) or UTC day (7d, 30d) of the window is a point, from the one its start falls in to the current one; a quiet point counts zero.

Parameters

  • app_id (str): The app ID.
  • window ({"24h", "7d", "30d"} | None, optional): The window. The API's default is "30d".
  • granularity ({"hourly", "daily"} | None, optional): hourly for 24h, daily otherwise; the window's when left out (another is refused).

update_auth​

update_auth(app_id: str, *, enabled: bool | None = None, slug: str | None = None, signup_enabled: bool | None = None, access: str | None = None, allowed_domains: Sequence[str] | None = None, logo: str | None = None, primary_color: str | None = None, button_text_color: str | None = None, background_color: str | None = None, heading_font: str | None = None) -> AppAuthSettings

Set an app's branded sign-in and sign-up pages (only the fields you pass change).

Parameters

  • app_id (str): The app ID.
  • enabled (bool | None, optional): Turn the pages on or off (on also makes the app its users' Home App).
  • slug (str | None, optional): The pages' URL name (they are at <your Strongly address>/app/<slug>/): lowercase letters, digits and hyphens.
  • signup_enabled (bool | None, optional): Whether people may sign up.
  • access (str | None, optional): instant or approval (a sign-up waits for you).
  • allowed_domains (Sequence[str] | None, optional): Only emails of these domains may sign up.
  • logo (str | None, optional): The pages' logo, a data URL.
  • primary_color (str | None, optional): The pages' button and link colour, #RRGGBB. The button text and the links must meet WCAG AA contrast (4.5:1) with the other colours, or the change is refused (ValidationError).
  • button_text_color (str | None, optional): The text colour on the pages' buttons, #RRGGBB (the platform's is white).
  • background_color (str | None, optional): The pages' background colour, #RRGGBB (the platform's is white).
  • heading_font (str | None, optional): A Google Fonts family for the pages' headings and app name, such as "Cormorant Garamond".
  • Each colour and the font is kept until changed; ``None`` leaves it as it is (there is no
  • way to remove one here: the REST API takes ``null`` for that).

update_domain​

update_domain(app_id: str, domain_id: str, *, certificate_source: str, certificate_id: str | None = None) -> AppDomain

Choose the certificate a custom domain serves.

certificate_source="issued": the automatic certificate (an uploaded one keeps serving until it is issued, so there is no gap); "uploaded" with the certificate_id of one of list_certificates that covers the domain: at once.

Parameters

  • app_id (str): The app ID.
  • domain_id (str): The domain ID.
  • certificate_source (str): issued or uploaded.
  • certificate_id (str | None, optional): The uploaded certificate, with uploaded.

update_native_sign_in​

update_native_sign_in(app_id: str, *, enabled: bool | None = None, ios_bundle_ids: Sequence[str] | None = None) -> AppNativeSignIn

Turn an app's native sign-in on or off and set its iOS bundle ids.

Only the fields you pass change. It follows the app's sign-in rules (update_auth), which must be set first; turning it on also makes the app its users' Home App.

Parameters

  • app_id (str): The app ID.
  • enabled (bool | None, optional): Whether the app's native apps may sign its users up and in.
  • ios_bundle_ids (Sequence[str] | None, optional): The native apps' bundle ids, recorded for audit (a sign-in from another is logged).

update_paid_access​

update_paid_access(app_id: str, *, stripe_secret_key: str | None = None, stripe_webhook_secret: str | None = None, enabled: bool | None = None, grace_days: int | None = None) -> AppPaidAccess

Set up or change paid access with the owner's own Stripe account.

Parameters

  • app_id (str): The app ID.
  • stripe_secret_key (str | None, optional): The Stripe secret key (stored encrypted).
  • stripe_webhook_secret (str | None, optional): The Stripe webhook signing secret (stored encrypted).
  • enabled (bool | None, optional): Whether the app requires a plan (needs branded sign-in and a plan).
  • grace_days (int | None, optional): Days a user keeps access after a failed payment.

update_public_access​

update_public_access(app_id: str, *, enabled: bool | None = None, risk_acknowledged: bool | None = None, slug: str | None = None, max_request_bytes: int | None = None, paths: Sequence[str] | None = None) -> AppPublicAccess

Make an app public (or not), and set its slug, size limit and paths.

Only the app's owner or an admin may. Turning it on, or exposing more of it, needs risk_acknowledged=True: acknowledge AppPublicAccess.risk first. The whole app (no paths) can be public only without sign-in, Home App, paid access, workflows, feature stores or agents; its pods restart once without platform API access and it is served once its status is live, at the root of its own host, https://<slug>.<apps domain>/, its own website. Turning it off closes its address at once. Only the fields you pass change. Serve it at your own domain with add_domain.

Parameters

  • app_id (str): The app ID.
  • enabled (bool | None, optional): Serve the app to the internet without sign-in.
  • risk_acknowledged (bool | None, optional): True once the risk is acknowledged; required to turn it on or widen it.
  • slug (str | None, optional): The app's address is https://<slug>.<apps domain>/: 1 to 40 lowercase letters, digits or hyphens; unique among apps (shared with branded sign-in).
  • max_request_bytes (int | None, optional): The largest request body (1024 to 26214400; default 1048576).
  • paths (Sequence[str] | None, optional): Only these path prefixes of the app are public at its address (["/webhooks"]); empty for the whole app.

update_remote_mcp​

update_remote_mcp(app_id: str, *, enabled: bool | None = None, path: str | None = None, scopes: Sequence[Mapping[str, str]] | None = None, redirect_hosts: Sequence[str] | None = None, loopback_redirects: bool | None = None) -> AppRemoteMcp

Change an app's remote MCP; only the fields you pass change.

Users sign in on the app's branded page (update_auth first) and approve the client on a consent page that lists the scopes. Only the app's owner or a platform administrator may change it; turning it off disconnects every client.

Parameters

  • app_id (str): The app ID.
  • enabled (bool | None, optional): Whether the app's users can connect AI clients.
  • path (str | None, optional): The path of the app's own MCP endpoint (/mcp by default).
  • scopes (Sequence[Mapping[str, str]] | None, optional): [{"name": ..., "description": ...}]: what a client may read or do, as the consent page tells the user. Replaces the list.
  • redirect_hosts (Sequence[str] | None, optional): The https hosts clients may return users to (claude.ai, chatgpt.com).
  • loopback_redirects (bool | None, optional): Whether clients on the user's own computer (Claude Code, MCP Inspector) may connect.

update_user​

update_user(app_id: str, user_id: str, *, active: bool | None = None, free_access: bool | None = None, role: str | None = None) -> AppUser

Let one of an app's users sign in, use a paid app without a plan, or change role.

Parameters

  • app_id (str): The app ID.
  • user_id (str): The user.
  • active (bool | None, optional): True activates the account (one waiting for approval, or deactivated); False deactivates it (its sessions end).
  • free_access (bool | None, optional): True gives free access to a paid app; False asks for a plan again.
  • role (str | None, optional): admin or user: their role in the app, the appRole the app reads from X-Strongly-User-Token (admin makes them an app admin). The app's owner, its app admins and platform admins change it.

upload_certificate​

upload_certificate(app_id: str, *, certificate: str, private_key: str, domain_ids: Sequence[str], chain: str | None = None) -> AppCertificate

Upload your own certificate for one or more of an app's custom domains.

Checked before anything is saved: the key must match the certificate, the chain must reach a trusted root, it must be valid now and cover every domain named. The private key goes to AWS Certificate Manager only; the platform never stores or shows it. Each named domain serves it at once. It does not renew itself: replace_certificate before not_after (you are warned 30, 14 and 3 days before).

Parameters

  • app_id (str): The app ID.
  • certificate (str): The certificate, PEM; intermediate certificates may follow it.
  • private_key (str): Its private key, PEM, without a passphrase.
  • domain_ids (Sequence[str]): The app's domains to serve with it.
  • chain (str | None, optional): The intermediate certificates, PEM.

versions​

versions(app_id: str, *, limit: int | None = None) -> SyncPaginator[AppVersion]

List an app's deployed versions, newest first, a page at a time as you iterate.

A version is recorded each time the app is rolled out running something new: its image, its settings, who deployed it and when. is_current marks the one it runs.

Parameters

  • app_id (str): The app ID.
  • limit (int | None, optional): The most versions to return; every one when omitted.