Cloady Docs
API ReferenceEndpointsApplications

Add the browser script at the edge

Makes Cloady add the browser monitoring script tag before `</head>` of every HTML page the app's address and custom domains serve, with no code change or redeploy, or stop adding it with `edge: null`. The settings are kept in the app variable CLOADY_BROWSER_MONITORING and apply on the next page load; no service restarts. A page whose head already carries the script keeps its own. Answers 400 when the app has no web address, and 502 when the settings were saved but the app couldn't be reconciled, which repeating a request that sets `edge` retries. Needs the developer role.

PUT
/api/workspaces/{workspaceSlug}/apps/{appSlug}/browser
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/workspaces/string/apps/string/browser" \  -H "Content-Type: application/json" \  -d '{    "edge": {      "replay": 0,      "mask": "text",      "goal": "string"    }  }'
{  "edge": {    "replay": 0,    "mask": "text",    "goal": "string",    "tag": "string"  }}