GUIDES
Three things to get right before you ship.
Practical notes for integrating the Competitive Signals API: how keys behave, what the limiter does under load, and how to verify a webhook you did not expect. For every endpoint and field, read the API Reference.
Authentication
Create a key in the dashboard under Settings → API Keys. The raw key is shown once — copy it immediately; only its hash is stored. Send it as a Bearer token on every request.
A 401 means the key is missing, malformed, or revoked. The response never distinguishes which, to prevent key enumeration.
FIVE ACTIVE KEYS
A workspace may hold up to five at once, so rotation never needs downtime.
ROTATE FORWARD
Generate the new key, deploy it, then revoke the old one.
REVOCATION IS FINAL
Immediate and permanent. A revoked key keeps returning 401 forever.
Rate limits
The per-minute limit is enforced per key. Exceeding it returns 429 with a Retry-After header, in seconds until the window frees up. /v1/snapshot carries a separate hard cap of three accepted calls per rolling hour, because each one triggers a real collection run.
THE LIMITER FAILS CLOSED
If the rate-limit check itself errors, the request is rejected with 429 rather than passed through. Handle 429 as a retry, not as an outage.
Webhook signature verification
Verify each delivery against your subscription secret, shown once on creation. The body is canonical JSON with object keys sorted. HMAC the timestamp header, a full stop and the exact raw bytes you receive. Do not re-serialize the body.
The timestamp is part of the signed string, so a captured delivery cannot be given a fresh one: changing it fails step 1, and leaving it alone fails step 2 once it is outside the freshness window. Five minutes is a sensible default. A retry repeats the same delivery_id, so step 3 acknowledges it without queueing it twice. Claim the id with an insert that fails on a duplicate (a unique column and ON CONFLICT DO NOTHING), not a lookup followed by an insert: two attempts in flight would both pass the lookup. Claim it and queue the work in one transaction, so a failure on your side rolls both back and the retry is handled rather than lost.
Answer within 5 seconds. The sender abandons an attempt after 5 seconds and retries a timeout 1, 4 and 16 seconds later with the same delivery_id. If all four attempts time out, the delivery counts as failed even if you processed it: three failed deliveries in a row stop the run and ten disable the subscription. So verify, claim, queue and answer first, and do the slow part afterwards.
Register a subscription with POST /v1/webhooks or the MCP tool subscribe_events. The secret comes back once, in that response. Filters narrow signal.created to what you act on: competitors, signal_types, min_materiality, min_confidence and min_severity. They combine with AND, and a filter the API does not recognise is rejected rather than ignored. Each signal.created event carries the same signal object as GET /v1/signals. briefing.created and digest.created carry their own, smaller object under the same signal key, so branch on event_type before you read it. A run that matches more than 50 signals sends the 50 most material and marks each with truncated. A delivery that fails all its retries is not sent again, and a run stops sending to a subscription after three failures in a row, so do not wait for a marker: GET /v1/signals is how you catch up. It can also list rows that were never pushed (new-repository and new-subdomain rows, for workspaces that opted into them), so read a row you did not receive; do not treat it as a lost delivery.