GTM engineering · lesson 2 of 8

Keys, scopes and the sandbox

A key is the permission your automation runs with. Give each workflow its own, as narrow as it can be, and build everything against fake data before it touches a real prospect.

You end with

A list of the keys you need, each with its mode, scopes, owner and expiry, and a first workflow running against the sandbox.

Do this

  1. 1

    One key per workflow

    Name each key after what uses it ("n8n: meeting alerts"). When a workflow is retired or leaks, you revoke one key and nothing else stops.

  2. 2

    Start with a test key

    Create a test key in Settings, API keys, and point the workflow at it. Run it until every branch has fired on sandbox data.

  3. 3

    Pick only the listed scopes

    Each workflow in the pack lists the scopes its calls need. Tick those and nothing more: an alert that reads a company needs companies:read, not write.

  4. 4

    Subscribe with a separate key

    Subscribing a webhook needs webhooks:manage. Use a key for that one call and revoke it after, so the key in the workflow cannot change where events go.

  5. 5

    Keep live keys on the server

    A live key goes in an n8n credential, a server environment variable or a secret manager. Never in a spreadsheet, a browser extension you wrote, or a shared document.

  6. 6

    Set an expiry and a cap

    Pick a lifetime when you create the key, and for live keys a daily and monthly credit cap that fits what the workflow should spend.

How Outlevo handles it

What the API and the webhooks do for this step, so your workflow does not have to.

  • A test key (olv_test_…) acts in your workspace's sandbox: 100 fake companies, no credits used and no email sent.
  • Sandbox webhooks are signed with a published test secret, so a receiver can be tested end to end before it sees real data.
  • Each key carries only the read and write scopes picked for it, per resource; a call outside them is refused.
  • A live key (olv_live_…) is refused when the request comes from a web page: live keys are for servers only.
  • Live keys stop at their own daily and monthly credit caps.

Your worksheet

Fill in one row per key name. The row below is an example (illustrative).

Key nameModeScopesUsed byExpiresCredit caps (live)Owner
(example) n8n: meeting alertstestcompanies:read, contacts:readmeeting-booked-to-slack.json90 daysnone needed (reads only)Founder

Download the worksheet (CSV)

Common mistakes

  • One key with every scope, shared by all workflows.
  • Building against live data first, so a test run reaches a real person.
  • Leaving webhooks:manage on the key a workflow runs with.
  • Pasting a live key into front-end code, where anyone can read it.

Build it against fake data first

A test key works on a sandbox of fake companies: no credits used, no email sent.