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
Authorizationheader. - Send JSON objects for POST, PATCH, and DELETE bodies; the maximum body is 64 KB.
- Use
Idempotency-Keyon writes. Keys are retained for 24 hours. - Optional
X-Request-Idvalues 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-systemResponse envelope
{
"data": { /* operation result */ },
"meta": {
"capability": "update_mention_status",
"requestId": "...",
"idempotencyReplayed": false
}
}Stable contract
data shape is operation-specific. Transport metadata always lives under meta, and failures always use an error envelope.Keyword groups
Every project starts with exactly two built-in groups: My brand and Competitors. Their names are fixed, and they cannot be updated or deleted. Any additional group is custom. The total number of groups, including both built-ins, is limited to the workspace’s keyword allowance. Use list_keyword_groups, create_keyword_group, update_keyword_group, and delete_keyword_group to manage reusable custom groups. Keywords accept groupId; mention and analytics queries accept keywordGroupIds; digest and custom-alert filters accept the same group targets.
Dynamic membership
The get_mention_analytics result includes analytics.keywordGroups for every group with at least one active keyword. Each item contains the group identity, system key, active keyword count, filtered mention count, and share. A mention matching several keywords in one group counts once for that group.
Operations
/projectsList projectsGET/projects/:projectIdGet projectPOST/projectsCreate projectPATCH/projects/:projectIdUpdate projectGET/projects/:projectId/public-dashboardGet public dashboard settingsPATCH/projects/:projectId/public-dashboardSet public dashboard accessDELETE/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/keyword-groupsList keyword groupsPOST/keyword-groupsCreate keyword groupPATCH/keyword-groups/:groupIdUpdate keyword groupDELETE/keyword-groups/:groupIdDelete keyword groupGET/mention-authorsSearch mentioning accountsGET/mentionsList mentionsGET/mentions/:mentionIdGet mentionPOST/mentions/:mentionId/irrelevantMark mention irrelevantPATCH/mentions/:mentionIdUpdate mention statusGET/analytics/mentionsGet mention analyticsGET/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/accountDeactivate 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 deliveryMachine-readable schema
The complete OpenAPI 3.1 document is generated at build/request time from live Zod capability schemas.