Get an app's health checks
The checks an app has, set on the app so that a change applies in every deployment that runs it: the built-in checks, the organization's custom checks that apply to it, and its own HTTP, metric, CEL and Lua checks. With `deploymentId`, each check also says what it reads in that deployment now (`outc
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
appId*stringuuiddeploymentId?stringThe deployment of the app the results are read in.
uuidThe app's health checks.
application/json- response
appId*stringuuidappName*stringdeploymentId?stringThe deployment the results are read in, when one was asked for.
uuiddeploymentCount*integerHow many deployments run the app.
checks*array<>watch?How long a deployment's health is watched after a release or a sync, and what a failure does.
others*array<>The other deployments of the app, each with how it watches after a release.
curl -X GET 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/health'{ "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "appName": "string", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "deploymentCount": 0, "checks": [ { "key": "string", "name": "string", "healthyWhen": "string", "from": "builtin", "fromLabel": "string", "libraryId": "6780430a-772c-4fd6-a7b1-5dc852e6898f", "appCheckId": "e66fc7a5-fedc-4531-843a-44e8eb5cd203", "enabled": true, "outcome": "healthy", "message": "string", "objects": 0 } ], "watch": { "seconds": 0, "secondsFrom": "stage", "onFail": "pause", "onFailFrom": "stage", "stage": "string" }, "others": [ { "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "name": "string", "environment": "string", "health": "healthy", "watch": { "seconds": 0, "secondsFrom": "stage", "onFail": "pause", "onFailFrom": "stage", "stage": "string" } } ]}Set whether an app can get a deployment for a pull request PUT
Recorded in Activity as `app.previews_updated`.
Turn one of an app's health checks on or off PUT
Applies in every deployment of the app. The key is a built-in check's name, `lib:<id>` for a custom check of the organization, or `app:<id>` for the app's own.