API documentation

Authentication

API keys, the two access levels, and checking a key.

Every request sends an API key as a Bearer token. A key reaches one business, and only that business. Create keys in ServiceStead under Settings, Integrations, API keys. A key is shown once, when it is created; if one is lost, revoke it and create another.

curl "https://servicestead.com/api/v1/me" \
  -H "Authorization: Bearer ss_live_your_key_here"

Access levels

AccessWhat it can do
Full accessRead everything the API offers, and add requests and customers.
Read onlyRead everything the API offers. A create answers 403 insufficient_access.

A revoked key, or one that was never valid, answers 401 invalid_api_key. While the business's subscription is paused every key answers 403 subscription_inactive.

Endpoints

CallWhat it doesKey
GET /meCheck a key: the business it reaches and the key's accessAny key
{
  "object": "connection",
  "api_version": "v1",
  "business": {
    "id": "00000000-0000-4000-8000-000000000001",
    "name": "Example Lawn Care",
    "timezone": "America/Chicago"
  },
  "key": {
    "name": "Zapier",
    "access": "full"
  }
}