API referenceLive Defense Agent API

API

Live Defense Agent API

See how the live Defense Agent uses its install key to connect to AgentProof, fetch signed rules, and report traffic, events and routes.

The live Defense Agent uses these routes to talk to AgentProof from your app. The package makes the calls for you. Owners and admins set up the connection in Settings > Live protection.

Connect your app

  1. Open Settings > Live protection.
  2. Press Add install key.
  3. Enter a Name.
  4. Press Add key.
  5. Press Copy to copy the key.
  6. Set AGENTPROOF_LIVE_KEY in your app's environment.

An install key starts with apl_ and works only on the /api/live/ routes.

Routes the package calls

Routes the package calls
MethodPathWhat the package does there
POST/api/live/helloChecks in with AgentProof.
GET/api/live/rulesFetches the current signed ruleset.
POST/api/live/eventsSends events in batches.
POST/api/live/routesSends route information for the website project's map.
POST/api/live/trafficSends traffic summaries in batches.

Revoke an install key

In Settings > Live protection, find the key and press Revoke, then Confirm revoke. If your app still needs to connect, give it a new install key.

Last updated