Getting Started

Authentication

All API requests are authenticated with an API key passed in the x-api-key header. Keys are scoped — create separate keys for each integration with only the permissions it needs.

Getting a key

  1. 1
    Log in to your Beya dashboard
  2. 2
    Go to Settings → API Keys
  3. 3
    Click Create API Key
  4. 4
    Select the scopes your integration needs
  5. 5
    Copy your key immediately — it is not shown again

Using your key

curl https://api.usebeya.com/v1/contacts \
  -H "x-api-key: bk_live_your_key_here"

Available scopes

ScopeDescription
contacts:readRead contact records
contacts:writeCreate and update contacts
inbox:readRead inbox threads and messages
inbox:writeSend messages and manage threads
calendar:readRead calendar events
calendar:writeCreate and update calendar events
products:readRead product catalogue
orders:readRead orders and fulfilment data
payments:readRead payment records

Key modes

Every key has a mode: test or live.

ModePrefixData
livebk_live_…Your real production data
testbk_test_…Sandbox / seeded test data