Authentication

Get started

Authentication and limits

API keys and rate limits for the REST API (planned), and how the live MCP server signs in.

API keys (planned)

Each early-access team gets API keys from its Sonder workspace. Send the key as a bearer token on every request, over HTTPS only. Keys can be rotated and revoked from the workspace; keep them server-side.

Planned shapehttp
GET /v1/posts/search?q=red+bull+rampage&platforms=tiktok,youtube HTTP/1.1
Host: api.sonderlabs.co.uk
Authorization: Bearer <your API key>

Rate limits (planned)

Limits are set per key and agreed for each early-access team, by requests a minute and posts a month. Every response will say where you stand:

HeaderMeaning
RateLimit-LimitRequests allowed in the current window.
RateLimit-RemainingRequests left in it.
RateLimit-ResetSeconds until it resets.

Over the limit, you get 429 Too Many Requests with Retry-After. Fresh searches across many platforms take longer than reads of data Sonder already holds, so large jobs will run as background jobs you poll.

Errors (planned)

Error bodyjson
{
  "error": {
    "code": "invalid_platform",
    "message": "platforms: 'myspace' is not a supported platform."
  }
}

MCP sign-in (live)

Authentication and limits · Sonder APIs