fastmon Docs
Applications

Rotate Application Proxy Secret

Fehler melden

Generate the application's proxy-trust secret, or rotate it if one exists.

The secret authorizes a customer-run beacon proxy (via the FM-Proxy-Key header) to forward the real visitor IP in X-Forwarded-For. On rotation the old secret stays valid as proxy_secret_previous until the next rotation, so proxy configs can be updated without losing geo/session quality. The edge picks the change up within its sync interval, not instantly.

AuthentifizierungBearer <token>

API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.

In: header

Pfad-Parameter

app_id*App Id
Formatuuid

Response-Body

application/json

application/json

application/json

application/json

application/json

POST
/applications/{app_id}/proxy-secret
curl -X POST "https://example.com/applications/497f6eca-6276-4993-bfeb-53cbbbba6f08/proxy-secret"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "name": "string",  "environment": "prod",  "site_policy": "open",  "source_hash": "string",  "collector_hash": "string",  "pagetype_ruleset": "",  "platform": {    "key": "",    "source": "detected",    "detected_via": "",    "detected_at": "2019-08-24T14:15:22Z"  },  "collector_mode": "default",  "collector_endpoint": "string",  "proxy_secret": "string",  "is_active": true,  "site_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "page_type": {    "body_class": true,    "ruleset": "string",    "rules": [      {        "body_class": "string",        "page_type": "string"      }    ],    "url_rules": [      {        "pattern": "string",        "page_type": "string"      }    ]  },  "shop": {    "active": true,    "source": "platform",    "checkout": {      "tracking": true,      "cart_paths": [        "string"      ],      "paths": [        "string"      ],      "success_paths": [        "string"      ]    }  },  "spa": true,  "collection": {    "sessions": true,    "session_consent": "deferred",    "fetch_xhr": true,    "error_messages": true,    "error_frames": true,    "query_keys": true,    "query_values_for": [      "string"    ],    "template_url_ids": true,    "sampling_rate": 0,    "fetch_xhr_sampling_rate": 0  },  "collector": {    "hash": "string",    "mode": "default",    "endpoint": "string",    "proxy_secret": {      "secret": "string",      "redacted": true,      "previous_set": true    }  },  "script": {    "hash": "string",    "version": "string"  },  "site_defaults": {    "data_retention_days": 0,    "store_stitch": true,    "count_visitors_by": "stitch"  }}