Skip to main content

Overview & Authentication

All endpoints are served from the backend at /api/*.

Authentication

Web Endpoints (Clerk JWT)

Most endpoints require a Clerk JWT in the Authorization header:

curl -H 'Authorization: Bearer <clerk-jwt>' https://backend.example.com/api/browser/tests

Agent Device Endpoints

Agent endpoints use an API key issued during enrollment:

curl -H 'X-Agent-Key: <api-key>' -H 'X-Agent-ID: <agent-id>' https://backend.example.com/api/agent/heartbeat

Response Format

Success

{ "success": true, "data": { ... } }

Error

{ "success": false, "error": "Error message" }

Rate Limits

Endpoint GroupLimit
Enrollment5 / 15 min per IP
Device (heartbeat, tasks)100 / 15 min per agent
Binary download10 / 15 min per IP
Key rotation3 / 15 min per IP
Auth20 / 15 min per IP

Route Groups

PrefixAuthPurpose
/api/browser/*ClerkTest browser
/api/analytics/*ClerkElasticsearch analytics
/api/analytics/defender/*ClerkDefender analytics
/api/agent/admin/*ClerkAgent management
/api/agent/*Agent keyDevice endpoints
/api/tests/*ClerkBuild system, certificates
/api/integrations/*ClerkDefender, alerting config