Apps and sources
Preview

Get whether an app can get a deployment for a pull request

Whether the app can be reached on an address, and the port of its Service and the path it takes traffic on. The address itself comes from the cluster a deployment of the app is on.

GET
/apps/{appId}/previews
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

appId*string
Formatuuid

Response Body

The app's settings.

application/json
  1. response
enabled*boolean

Whether the app can get a deployment for a pull request, and so an address on its cluster.

port*integer

The port of the app's Service the Ingress sends to. 0 picks the port named http, else the first.

path*string

The path the app takes traffic on.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/previews'
Example Response
{  "enabled": true,  "port": 0,  "path": "string"}