Slatis

Authentication

How to authenticate requests to the Slatis API using secret and public API keys.

API Keys

You can create API keys from your organization's Settings → API Keys page.

Secret keys (sk_live_*)

Use secret keys for server-to-server integrations. They have access to all scopes your organization has granted:

curl https://api.slatis.com/bookings \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"

Never expose a secret key in client-side code.

Public keys (pk_live_*)

Use public keys in browser or mobile apps. They are limited to booking creation and availability:

const slatis = new Slatis({ apiKey: 'pk_live_xxxxxxxxxxxxxxxxxxxx' })

Scopes

Scopes control what an API key can access. When creating a key you can restrict it to specific scopes:

ScopeDescription
bookings:createCreate new bookings
bookings:read-ownRead bookings created via this key
bookings:readRead all bookings in the organization
bookings:updateUpdate booking attendee details
bookings:cancelCancel bookings
bookings:manageAll booking operations
availability:readRead availability slots
event-types:readRead event types and their fields
webhooks:manageCreate, update, and delete webhooks

Errors

StatusCodeMeaning
401unauthorizedMissing or invalid API key
403forbiddenKey does not have the required scope
429rate_limitedRequest rate exceeded

On this page