REST

Agent API

A versioned JSON API generated from the same capability registry as MCP. Base URL: https://www.stalkr.ai/api/v1

Request conventions

  • Send a Bearer token in the Authorization header.
  • Send JSON objects for POST, PATCH, and DELETE bodies; the maximum body is 64 KB.
  • Use Idempotency-Key on writes. Keys are retained for 24 hours.
  • Optional X-Request-Id values appear in responses and activity logs.
  • List endpoints use bounded limits and cursor pagination where applicable.
Authorization: Bearer $STALKR_API_KEY
Content-Type: application/json
Idempotency-Key: unique-operation-key
X-Request-Id: trace-from-your-system

Response envelope

{
  "data": { /* operation result */ },
  "meta": {
    "capability": "update_mention_status",
    "requestId": "...",
    "idempotencyReplayed": false
  }
}

Stable contract

The data shape is operation-specific. Transport metadata always lives under meta, and failures always use an error envelope.

Operations

GET/projectsList projectsGET/projects/:projectIdGet projectPOST/projectsCreate projectPATCH/projects/:projectIdUpdate projectDELETE/projects/:projectIdArchive projectGET/projects/:projectId/membersList project membersPOST/projects/:projectId/membersInvite project memberPATCH/projects/:projectId/members/:memberIdUpdate project memberDELETE/projects/:projectId/members/:memberIdRemove project memberGET/keywordsList keywordsPOST/keywordsCreate keywordPATCH/keywords/:keywordIdUpdate keywordDELETE/keywords/:keywordIdStop tracking keywordGET/mentionsList mentionsGET/mentions/:mentionIdGet mentionPATCH/mentions/:mentionIdUpdate mention statusGET/categoriesList categoriesPOST/categoriesCreate categoryPATCH/categories/:categoryIdUpdate categoryDELETE/categories/:categoryIdDelete categoryGET/mention-viewsList saved mention viewsPOST/mention-viewsCreate saved mention viewPATCH/mention-views/:viewIdUpdate saved mention viewDELETE/mention-views/:viewIdDelete saved mention viewGET/alertsList alertsPOST/alertsCreate alertPATCH/alerts/:alertIdUpdate alertDELETE/alerts/:alertIdDelete alertGET/integrations/linkedinGet LinkedIn integrationPOST/integrations/linkedin/connect-urlGet LinkedIn connect URLPATCH/integrations/linkedinSelect LinkedIn PagePOST/integrations/linkedin/syncSync LinkedIn nowDELETE/integrations/linkedinDisconnect LinkedInGET/accountGet accountPATCH/accountUpdate accountDELETE/accountDelete accountGET/usageGet usage and limitsGET/webhooksList webhooksPOST/webhooksCreate webhookPATCH/webhooks/:endpointIdUpdate webhookDELETE/webhooks/:endpointIdDelete webhookPOST/webhooks/:endpointId/testTest webhookGET/webhooks/:endpointId/deliveriesList webhook deliveriesPOST/webhooks/:endpointId/deliveries/:deliveryId/replayReplay webhook delivery

Machine-readable schema

The complete OpenAPI 3.1 document is generated at build/request time from live Zod capability schemas.

Open /openapi.json →