Skip to content

Authentication & scopes

Every Connect API request requires an Authorization header with a Bearer token:

Authorization: Bearer rocketlead_live_<64-hex-secret>

Anything that doesn’t start with rocketlead_ is rejected with 401 Unauthorized.

Tokens are managed in the RocketLead console under Settings → API Tokens.

You can also set:

  • Expiration — optional. Non-expiring tokens are valid until revoked.
  • Scopes — required. See below.

Three scopes control what a token can do:

ScopeAllowed methodsUse case
readGET, HEAD, OPTIONSRead-only sync (export leads, fetch bookings, mirror availability)
writeAll read + POST, PATCH, PUTCreate leads from your CRM, book slots, update lead state
adminAll write + DELETEFull integration including deleting bookings

Scope mismatches return 403 Forbidden. Issue the narrowest scope that satisfies your integration.

  • lastUsedAt is updated on every authenticated request — you can see when a token was last active in the console.
  • Revocation is instant. Once revoked, future requests with that token return 401.
  • Rotation — revoke the old token after the new one is in production traffic. There’s no automatic migration window.
StatusMeaning
400Validation error (bad input, missing field, invalid combination)
401Missing, malformed, expired, or revoked token
403Token scope insufficient for the requested method
404Resource not found (or not in your organization)
500Internal — retry with backoff

Errors follow the standard envelope:

{ "statusCode": 400, "message": "Validation failed: tableId is required" }