Authentication
Send an API key over HTTP. Sign in through OAuth over MCP.
Every call acts for one organization. The two ways to call socialdata find your organization differently.
| You call | You send | Your organization comes from |
|---|---|---|
| The HTTP API | An API key, in the x-api-key header | The key |
| The MCP server | An OAuth access token, which your MCP client gets for you | The organization that you chose when you signed in |
GET /health needs neither.
HTTP: the API key
Send the key in the x-api-key header of each call to /v1:
curl -s https://api.socialdata.product.studio/v1/watchlists -H "x-api-key: $SOCIALDATA_API_KEY"A missing or unknown key gets status 401:
{"code":"unauthorized","message":"Send the API key of an organization in the x-api-key header.","retryable":false,"trace_id":"2a2593aeba0892a5f03a7ec0d9fd3727","credits_spent":0}MCP: sign in
The MCP server takes no API key. Your MCP client signs in through OAuth and registers itself, so you do not create a client ID. The first time you connect, your browser opens three pages:
- Sign in. Enter your email address, then the code that socialdata sends to it.
- Choose an organization. Choose one, or create one. The client acts for it.
- Allow access. Allow the client to call the tools.
If a call answers forbidden, sign in again and choose an organization.
Rate limit
One API key can send 120 requests a minute. Above that, the answer is rate_limited with status 429. Wait retry_after_s seconds, then retry.
What an organization may do
track and untrack need an organization that may track: can_track in the answer of watchlists says whether yours may. Media links on posts need an organization that may read media.