Skip to Content
SparrowCRMDevelopers

Authentication

Send your API key as a Bearer token with every request.

Every request needs an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

An API key belongs to one SparrowCRM account, and requests made with it work on that account's data.

Keep keys secret

Use API keys only from your own server. Don't put them in browser or mobile app code, and don't commit them to version control.

Example

curl https://api.sparrowcrm.com/v1/contacts \
  -H "Authorization: Bearer YOUR_API_KEY"

Getting a key

Draft

SparrowCRM doesn't have a page for creating API keys yet. Describe it here when it ships.

A missing or invalid key

The API responds with 401 Unauthorized:

{
  "success": false,
  "statusCode": 401,
  "error": "Invalid api key"
}

On this page