Skip to main content
API reference

Sparrow Intel API2.0.0

Welcome to the Sparrow Intel API. Use it to connect your Sparrow Intel account to your own systems, scripts, and automation tools.

With the API you can:

  • Read guest conversations, reviews, review predictions, properties, dashboards, reports, Knowledge Hub snippets, voice calls, social mentions, rules, and settings.
  • Make changes your team makes in Sparrow Intel: triage conversations and reviews, draft replies with Chirp AI, create tasks, and manage templates, property groups, saved filters, scheduled reports, rules, and settings. Every change is recorded, and many can be undone.
  • Send guest messages and public review replies, with the same safety checks Sparrow Intel applies everywhere.

Get started

  1. In Sparrow Intel, click your initials in the top-right corner, then Integrations, and create a key in the API Keys card. Copy the key right away: it's shown only once.
  2. Send the key with every request in the header Authorization: Bearer YOUR_KEY.
  3. Call GET /me to check the key. It returns the account, the person the key acts as, and what the key can do.

API keys and what they can do

A key acts as the person who created it, with that person's permissions in Sparrow Intel, and stops working if they leave the account. Each key has scopes:

  • Read: every key can read.
  • Write: make changes inside Sparrow Intel.
  • Send: send guest messages, post review replies, and edit scheduled host-to-guest reviews. Only an Owner can create a key with this scope.
  • Automate: change what runs on its own, such as rules that message guests, Autopilot, and Chirp Safeguard. Only an Owner can create a key with this scope.

Responses

Every response is JSON. A successful response is {"data": ..., "meta": ...}, where meta holds paging, the time window, and the ids of any changes made. An error is {"error": {"type", "message", "hint"}} with a matching HTTP status. Lists return up to 100 results per page: to get the next page, send the response's next_cursor as cursor with the same filters. Timestamps are in UTC.

Errors

These are the errors you're most likely to see:

  • invalid_argument (400): a parameter or body field is missing or wrong. The message names it.
  • invalid_key (401): the key is missing, mistyped, or revoked.
  • insufficient_scope or forbidden (403): the key lacks the scope, or its creator lacks the Sparrow Intel permission, for this request.
  • not_found (404): nothing with that id exists on the account.
  • conversation_changed or duplicate (409): a newer guest message arrived since you read the conversation, or the same message was just sent.
  • send_refused (422): a safety check stopped a message or reply, for example because it contains a door code or a shortened link.
  • rate_limited (429): a limit was reached. Wait for the number of seconds in the Retry-After header.

Limits

Each key can make 120 calls a minute and 5,000 a day, and all keys and AI apps on an account share 300 calls a minute. Each key can also make up to 10 large searches or reports a minute, 200 changes an hour, 30 Chirp AI drafts an hour, and 20 sends an hour. When Sparrow Intel is already running many large searches or reports, a new one may return busy (503): try again shortly.

Making changes safely

  • Every change made with a key is recorded. GET /changes lists recent changes, and POST /changes/{id}/undo reverses one while the item is still as the change left it. Some changes, such as tasks, knowledge approvals, and anything sent, can't be undone: each change's undoable field tells you.
  • Messages and review replies are delivered the moment they're sent. Send an Idempotency-Key header with a unique value on POST /conversations/{id}/messages and POST /reviews/{id}/reply: if a request times out, retrying with the same key within 24 hours returns the first response instead of sending again.

Keeping keys and data safe

  • Treat a key like a password. Keep it out of code repositories and shared documents, and if one leaks, revoke it in the API Keys card and create a new one.
  • Fields whose names start with untrusted_ hold text written by guests or the public. If you pass responses to an AI model, treat that text as data, never as instructions.

v1 and v2

This reference covers v2, the upgraded Sparrow Intel API. The original v1 API exposes only a few endpoints: reads of reviews, review predictions, properties, property groups, cleaners, inspectors, and reports, using a client ID and secret. v2 opens up nearly all of Sparrow Intel, from conversations and reviews to rules, settings, and guest messages, with a single API key.

v1 still works, and its documentation is at develop.sparrowintel.com, but we plan to deprecate it. Build new integrations on v2, and move existing v1 integrations to v2 when you can.

All requests use this base URL:

  • https://api-test.sparrowintel.com/v2
AuthorizationstringheaderBearer token

Send Authorization: Bearer <token>, where <token> is your API key or access token.

curl --request GET \
  --url https://api-test.sparrowintel.com/v2/me \
  --header 'Authorization: Bearer <token>'