Manage app state

Take an unused app down to zero cost, bring it back, and archive it. Archived apps are permanently deleted after 30 days.

An app doesn't have to keep running just because you built it.
Take it down when you're not using it for a while, and archive it when you're done with it.

Taking an app down sets its state to Suspended; archiving sets it to Archived — that's what shows in the app list and console. What each of the four deploy statuses means is in Manage deployments.

Taking it down and bringing it back

Take down at the top of the app console clears the server the app was running on. It costs nothing while it's down.

  • Code, database, files, and environment variables all stay
  • The address no longer serves the app
  • Bringing it back redeploys the last successful deploy as is — no new deploy needed. A static app isn't rebuilt; it reopens with its last published release (details)

Only an app that has deployed successfully and is running can be taken down.

If it's suspended and you didn't do it, it's one of these. The console shows the reason.

  • It exceeded your company's resource limit
  • It kept crashing, so it was taken down automatically
  • Pay-as-you-go credits ran out

How to turn it back on depends on the reason — see Recovering a suspended app.

Archiving

Archive an app you're done with. Open it from the app list and click Archive. It disappears from the list and the store, and stays visible under the Archived tab.

Archiving a static app takes its site down, and un-archiving doesn't reopen it on its own. Click Restart to reopen the release that was published right before archiving.

30 days after archiving, the app and its data are permanently deleted.

  • You get an email and an inbox notification 7 days before the deletion
  • Un-archiving before then cancels the scheduled deletion
  • Once permanently deleted, the database, files, and environment variables are all reclaimed — there's no undo

If you're only pausing for a while, take it down instead. A suspended app costs nothing and is never deleted.

Which one do I want

SituationDo this
I'll use it again in a few weeksTake it down — zero cost, data kept, restore any time
I'm done with it but want the recordArchive — but download anything you need first; it's deleted in 30 days
I want it gone entirelyArchive and leave it — it cleans itself up after 30 days

Suspended static sites

When a static app is suspended, its site closes to visitors whatever the reason. Both the production and staging addresses show the same plain 404 page as an archived app.

  • A site that requires sign-in doesn't send visitors to the sign-in page either — it's a 404 right away
  • If the site's address changed, the old address doesn't forward to the new one — it's a 404 right away too
  • There's no page that tells visitors why the site is suspended
  • Pages close right away, but files a visitor's browser has already cached (assets with a hash in their name) may not be reclaimed

A sanction or company deletion closes the site immediately, and it stays closed until that reason is lifted. Every other reason — credits running out, exceeding the resource limit, being suspended directly — closes it too. A site taken down with Take down already returns 404 because its release was unpublished.

To reopen it:

  • Restart — resuming with Restart in the console, the CLI (axhub apps resume), or MCP (app_resume) reopens it with its last published release. The app's owner and company admins can do it — see Recovering a suspended app. Only a platform operator can reopen a sanctioned site.
  • Company credits — a static site suspended on company credits reopens on its own within a few minutes of a top-up, as long as its release is still published. If Take down or un-archiving left it with no published release, you have to click Restart.
  • Personal credits — a top-up tries to resume the app automatically. If the site has no published release or stays closed after the top-up, click Restart.

Once it's suspended, the app console shows a suspension banner and serving in the static site lookup API turns false. A credit-depletion suspension is announced in the console inbox (company credits to the workspace admins, personal credits to you), and a sanction by a separate sanction notice email.

Recovering a suspended app

Turn a suspended app back on with Restart in the app console. The console button and the API, CLI, and MCP all send the same resume request (POST /api/v1/apps/{id}/resume). The app's owner and company admins can do it.

Why it was suspended

suspend_cause on the app is the reason. Each reason has its own way back.

suspend_causeReasonTo turn it back on
userAn owner or admin took it downRestart
pool_overageIt exceeded your company's resource limitClear up other apps, then Restart
crash_loopIt kept crashing, so it was taken down automaticallyRestart. If it crashes again, fix the code and deploy again
credit_depletedPay-as-you-go credits ran outTop up — see If credits ran out
sanctionIt was sanctioned for an operating-policy violationOnly a platform operator can lift it
tenant_deletedThe company was deletedRestart once the company is restored
noneIt was taken down with Take downRestart

Restarting from the API, CLI, or MCP

curl -X POST "$AXHUB_API_URL/api/v1/apps/<app ID>/resume" \
  -H "Authorization: Bearer <your login token>"

There's no request body. On success you get 200 and the app.

A static app reopens with its last published release

A static app isn't rebuilt on resume — it reuses its last published release.

  • If it was only suspended and its release is still published, it opens with that release
  • If its release was closed while suspended — by Take down or by un-archiving — the release published right before that is reopened
  • If there's no release to reopen, an app deployed from a git repository rebuilds its last production deploy commit. An app that was only ever uploaded as a folder needs a new upload

Staging builds uploaded later, rejected versions, and releases older than that are never reopened.

Checking the resume result

Resuming a static app adds static_site to the response. Dynamic apps don't get it.

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "slug": "my-site",
  "deploy_method": "static",
  "status": "deployed",
  "static_site": {
    "serving": true,
    "serving_blocked_by": null,
    "recovery": "reactivated"
  }
}

recovery is what the resume did to the site. In every case the suspension is lifted.

recoveryWhat happenedApp statusWhat to do next
keptThe release that was still published is used as isdeployedNothing
reactivatedThe release published right before it was closed is reopeneddeployedNothing
rebuild_startedThere was no release to reopen, so a rebuild of the last production deploy commit starteddraftFollow deployment_id in the deploy history. The site opens once that deploy succeeds
rebuild_not_startedThe rebuild couldn't startdraftCheck rebuild_error.code, fix the cause, and deploy again
noneThere's neither a release to reopen nor a git source to rebuilddraftUpload the site again

Checking that the static site is open

Read static_site.serving in the resume response, or serving from the static site lookup (GET /api/v1/tenants/{tenantID}/apps/{appID}/static/site). It's computed with the same conditions the server uses to serve the site — don't infer it from the app's status.

When serving is false, serving_blocked_by gives the reason.

serving_blocked_byMeaning
nullNothing blocks it (serving is true)
sanctionThe app is sanctioned
tenant_deletedThe company was deleted
suspendedIt's closed because the app is suspended
archivedThe app is archived
unpublishedNo release is published — after Take down or un-archiving, or before the first publish

The static site lookup also has resume_target_release_id: the release used to reopen a closed site, or null when there's none to reopen. If the app isn't suspended but the site is unpublished (for example, a static app un-archived with no suspend cause), activate that release instead of resuming — POST /api/v1/tenants/{tenantID}/apps/{appID}/static/releases/{resume_target_release_id}/activate.

serving reflects only suspension, sanction, company deletion, and publish state. The two checks below happen separately when the site is served, so visitors may not see the site right away even when serving is true.

  • Address reuse hold — the address of a permanently deleted app serves no site for a while (7 days by default)
  • Awaiting use approval — while an app waits for its pre-use review, only admins can open its production address

When resuming or republishing is refused

Refusals come in the same error envelope as any other API error. message can change, so branch on code, resource, and fields. With the CLI's --json, the same values appear as error.code and error.fields.

app_suspended (412)

You tried to activate, roll back, or promote (submit or approve a production review) a release on a static app suspended with a cause. Resume it first, then try again. A refused production-review approval stays pending, so approve it after the app is restarted. An app whose company was deleted (tenant_deleted) is refused resume with this code too. Running a deploy on a suspended app also returns this code.

{
  "error": {
    "message": "일시정지된 앱이에요. 먼저 재개(콘솔 「다시 시작」·axhub apps resume·MCP app_resume)한 뒤 다시 시도해 주세요",
    "code": "app_suspended",
    "category": "precondition_failed",
    "retryable": false,
    "request_id": "req_1MqMW42eZvKYlo2C0OWlt2N4",
    "resource": "app",
    "fields": [{ "name": "suspend_cause", "code": "credit_depleted" }]
  }
}

sanctioned (403)

The app was sanctioned for an operating-policy violation. Both resume and release activation are refused, and only a platform operator can lift it. Don't resend the same request.

{
  "error": {
    "message": "운영 정책 위반으로 정지된 앱이에요. 문의 후 운영자만 다시 켤 수 있어요",
    "code": "sanctioned",
    "category": "permission_denied",
    "retryable": false,
    "request_id": "req_1MqMW42eZvKYlo2C0OWlt2N4",
    "resource": "app",
    "fields": [{ "name": "suspend_cause", "code": "sanction" }]
  }
}

quota_exceeded (402)

Turning the app back on would push the number of running apps in your company over the limit. Both resume and static site publishing (activate, promote) go through this check. Take another app down and try again. Don't archive for this — archiving schedules permanent deletion in 30 days.

{
  "error": {
    "message": "켜 둘 수 있는 앱 수(현재 3/3)를 넘어요. 다른 앱을 내린 뒤 다시 시작해 주세요",
    "code": "quota_exceeded",
    "category": "payment_required",
    "retryable": false,
    "request_id": "req_1MqMW42eZvKYlo2C0OWlt2N4",
    "resource": "app",
    "fields": [
      { "name": "current", "code": "3" },
      { "name": "max", "code": "3" }
    ]
  }
}

resource is app. current is how many apps are running now, and max is your company's limit.

Other refusals

HTTPcodeMeaning · what to do
402insufficient_creditCredits ran out — top up, then try again
402spend_cap_reachedThis month's spending cap was reached — an admin has to raise the cap
402resource_quota_exceededIt exceeds your company's compute limit. Clear up other apps, then try again
409not_suspendedThe app is already resumed — fetch it again
409runtime_teardown_in_progressAn earlier take-down is still being cleaned up — try again shortly
412app_archivedThe app is archived — un-archive it first

If credits ran out

  • Company credits — a static site suspended on company credits reopens on its own within a few minutes of a top-up, as long as its release is still published. If Take down or un-archiving left it with no published release, you have to click Restart. A dynamic app needs Restart after the top-up.
  • Personal credits — a top-up tries to resume the app automatically. If the static site has no published release (Take down, un-archiving) or the app stays suspended after the top-up, click Restart.

What changed

WhatBeforeNow
Activate, roll back, or promote a release on a static app suspended with a causeThe suspension was simply liftedRefused with app_suspended (412); a sanction is sanctioned (403). Resume first
Resuming a static appRebuilt the last successful deploy commitReopens the last published release; rebuilds only when there's none
Static app resume responseOnly the appAdds static_site (serving, serving_blocked_by, recovery, …)
Static site lookup response—Adds serving, serving_blocked_by, resume_target_release_id
Resume or release activation that exceeds the running-app limitWent through, then another app was suspended automaticallyRefused with quota_exceeded (402, resource: "app")
Suspended static sitesOnly sites suspended by a sanction or company deletion closed; the rest stayed open to visitorsVisitors get a plain 404 whatever the reason, and old addresses return 404 right away too (details)

You've succeeded when

A taken-down app shows as Suspended in the list, and an archived one appears under the Archived tab. An app you brought back serves its old screen at its address again. A static app is open again when serving is true.

Next, read deploy status and logs in Manage deployments.