Concepts

Project: one tenant per customer or workspace

What a project is in OpenSequence: one tenant with its own API keys, provider credentials, settings and data, so one install can serve many customers.

Edit on GitHub

A project is one tenant. Give each of your customers or workspaces its own project.

Everything else (senders, contacts, sequences, enrollments, webhooks) belongs to exactly one project. A key from one project never sees another project's data. The operator creates projects with SEQ_ADMIN_TOKEN, and each new project comes with its first admin key.

curl -X POST $SEQ/v1/admin/projects -H "Authorization: Bearer $SEQ_ADMIN_TOKEN" \
  -H "Content-Type: application/json" -d '{"slug":"acme","name":"Acme"}'
# {"success":true,"data":{"project":{"id":"prj_…","slug":"acme",…},"api_key":"sk_live_…"}}   the key is shown once

A project also holds its provider credentials (an Allo key and an Attio key, both write-only) and its settings, such as the countries texts may go to.

API keys

Each key has one scope. Each scope includes the ones above it.

ScopeCan
readRead senders, contacts, sequences, journeys, tasks and analytics.
enrollAlso upsert contacts, enroll, pause and resume, complete tasks and report contact events.
adminAlso manage senders, sequences, webhooks, keys, outreach consent, provider credentials and settings, and exit enrollments.

Give your app an enroll key. Keep the admin key for setup screens.

const { api_key } = await oseq.project.apiKeys.create({ name: 'crm-backend', scopes: ['enroll'] }); // POST /v1/api-keys

On this page