API reference
Authentication
Authenticate a request by sending your API key in a header.
curl https://api.databuddy.cc/v1/query/websites \
-H "x-api-key: $DATABUDDY_API_KEY"Authorization: Bearer $DATABUDDY_API_KEY works the same way. Make the key in Organization settings → API keys; see API keys for presets, rotation and website limits.
Choose how to sign in
The MCP server accepts a signed-in account or an API key, never a dashboard session cookie.
Pick scopes
Most integrations need only read:data. Add track:events if the same server also sends events.
A key can reach every website in the organization, or only the ones you pick. Link analytics through POST /v1/query?link_id= needs read:data on a key that reaches every website.
Fix auth errors
{
"success": false,
"error": "Authentication required",
"code": "AUTH_REQUIRED",
"requestId": "req_abc123def456"
}Let agents find auth on their own
Related
How is this guide?