# OpenSequence > OpenSequence is an open source, self-hosted engine that runs multi-step sequences of email, SMS, call tasks and LinkedIn steps from your own product, for sales, recruiting, customer onboarding, renewals or AI agents. Your app upserts contacts and senders by its own ids, publishes versioned JSON sequences and enrolls people. The service schedules each step in the contact's time zone and sends from the sender's own mailbox or number. It stops on replies, bounces and opt-outs, and reports back through signed webhooks. Install the client with `npm install @opensequence/sdk`. Each page below is also Markdown at https://docs.opensequence.dev/llms.mdx//content.md. The whole site is https://docs.opensequence.dev/llms-full.txt and every endpoint is in https://docs.opensequence.dev/openapi.json. ## Docs, in reading order - [Quickstart: run OpenSequence and enroll your first contact](https://docs.opensequence.dev/docs/get-started/quickstart): How to run the OpenSequence server, create a project, connect a mailbox and enroll a first contact with the TypeScript SDK, then run it on your own Postgres. - [Integrate OpenSequence into your product](https://docs.opensequence.dev/docs/get-started/integrate): The integration checklist: run the server, connect each module, then upsert contacts, enroll them and handle webhooks, one API call per step. - [Project: one tenant per customer or workspace](https://docs.opensequence.dev/docs/concepts/project): 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. - [Sender: the rep a sequence sends as](https://docs.opensequence.dev/docs/concepts/sender): What a sender is: the rep an enrollment acts as, with a name, time zone, email signature, attributes such as a calendar URL, and one channel per kind. - [Contact: the person who receives a sequence](https://docs.opensequence.dev/docs/concepts/contact): What a contact is: name, email, E.164 phone, LinkedIn URL, ISO country, time zone and attributes, keyed by your own id, plus outreach consent and suppressions. - [Attributes: custom data on contacts and senders](https://docs.opensequence.dev/docs/concepts/attributes): How contact attrs and sender attrs work: free JSON you store once and read in templates and conditions, such as a plan, a company or a calendar URL. - [Sequence: a named flow with versioned JSON definitions](https://docs.opensequence.dev/docs/concepts/sequence): What a sequence is: a named flow whose steps live in versioned JSON definitions, a draft you edit and published versions that never change. - [Sequence definition format](https://docs.opensequence.dev/docs/concepts/sequence/definition): What the one JSON document that holds a whole sequence contains: its shape, ids, transitions, durations, settings and exit_on. - [Sequence nodes: every node type and its exits](https://docs.opensequence.dev/docs/concepts/sequence/nodes): Every sequence node type with its params and transitions, one example each, and which node types count as touches. - [Branching with conditions](https://docs.opensequence.dev/docs/concepts/sequence/conditions): How conditions branch: the field registry, the operators, how missing data behaves, and how every fact is recorded on the run. - [Message templates and variables](https://docs.opensequence.dev/docs/concepts/sequence/templates): How message templates work: syntax, paths, fallbacks, text and html bodies, branded HTML emails with images, and the unsubscribe link. - [Validation codes and fixes](https://docs.opensequence.dev/docs/concepts/sequence/validation): What every validation code means and how to fix it. Warnings come back on save; errors block publish. - [Sequence versions and publishing](https://docs.opensequence.dev/docs/concepts/sequence/versions): How drafts, the optimistic lock, publishing, new versions and archiving work, and what enrolled contacts do when a new version ships. - [Enrollment: where a contact is in a sequence](https://docs.opensequence.dev/docs/concepts/enrollment): What an enrollment is: one contact in one sequence version, its status, its current step and its journey, and how to show where a contact is. - [Show where a contact is in a sequence](https://docs.opensequence.dev/docs/concepts/enrollment/where-a-contact-is): How to draw one contact's path through a sequence from GET /v1/enrollments/{id}: visited nodes, edges taken, the current step and the timeline. - [Modules: the channels and data a sequence can use](https://docs.opensequence.dev/docs/modules): Every OpenSequence module in one table: email over SMTP and IMAP with Gmail, Outlook or any provider, SMS and AI agent calls with Allo, LinkedIn connection requests and CRM conditions with Attio. - [Email: send over SMTP and read replies over IMAP](https://docs.opensequence.dev/docs/modules/email): How to connect a sender's mailbox to OpenSequence: SMTP to send, IMAP to read replies and bounces, daily limits, send windows and deliverability basics. - [Connect Gmail and Google Workspace with an app password](https://docs.opensequence.dev/docs/modules/email/gmail): How to connect a Gmail or Google Workspace mailbox to OpenSequence: turn on 2-Step Verification, create an app password, then save smtp.gmail.com and imap.gmail.com. - [Connect Outlook and Microsoft 365 mailboxes over SMTP and IMAP](https://docs.opensequence.dev/docs/modules/email/outlook): How to connect an Outlook or Microsoft 365 mailbox to OpenSequence: the servers and ports, Authenticated SMTP, app passwords with MFA, and what Microsoft blocks. - [Connect any other SMTP and IMAP mail provider](https://docs.opensequence.dev/docs/modules/email/other-smtp): How to connect any mailbox with SMTP and IMAP to OpenSequence: host, port and TLS settings, with Fastmail, Zoho, iCloud, Proton Bridge and self-hosted examples. - [Connect Allo for texts and call tasks](https://docs.opensequence.dev/docs/modules/sms/allo): How to connect Allo to OpenSequence: the API key and its permissions, each sender's number, allowed countries, consent, quiet hours, STOP and call tasks. - [AI agent calls with Allo](https://docs.opensequence.dev/docs/modules/calls/allo): How to add an AI phone call to a sequence with an Allo Outbound agent: the permissions, picking the agent and its line, the brief, skills, consent, and branching on the outcome of the call. - [LinkedIn connection requests with a note](https://docs.opensequence.dev/docs/modules/linkedin): How OpenSequence puts LinkedIn connection requests in a sequence: a linkedin_connect step writes the note, the sender opens the profile in one click and the task completes itself. - [Connect Attio for live CRM conditions](https://docs.opensequence.dev/docs/modules/crm/attio): How to connect Attio to OpenSequence with one read-only token, then branch sequences on person, company and deal data read live when a condition runs. - [Webhooks to your app: receive signed events](https://docs.opensequence.dev/docs/webhooks): How to register a webhook endpoint in OpenSequence, verify the Standard Webhooks signature with or without the SDK, dedupe by event id and handle retries. - [Receiving webhooks](https://docs.opensequence.dev/docs/webhooks/events): How to register a webhook endpoint, which events exist, what the payloads carry, and how ordering and idempotency work. - [Verifying webhook signatures](https://docs.opensequence.dev/docs/webhooks/verifying): How to verify Standard Webhooks signatures with the SDK or by hand, store the signing secret, and rotate it safely. - [Webhook retries and recovery](https://docs.opensequence.dev/docs/webhooks/retries-and-recovery): How failed webhook deliveries are retried, when an endpoint is disabled, how to recover and replay, and how to read the deliveries log. - [Reply and meeting attribution](https://docs.opensequence.dev/docs/analytics/outcomes): How replies and reported meetings are attributed: direct and assisted credit, the 14-day default window, each counted once per enrollment. - [Sequence analytics endpoints](https://docs.opensequence.dev/docs/analytics/endpoints): What the summary, exits, nodes, channels and cross-sequence analytics endpoints return, and what each number means. - [Comparing email and SMS fairly](https://docs.opensequence.dev/docs/analytics/comparing-channels): Why an email versus SMS chart misleads, and how to compare channels fairly at the same touch number. - [Install OpenSequence in production](https://docs.opensequence.dev/docs/self-hosting/install): How to install for production: build the one image, point it at your Postgres, run the api and worker roles with real secrets, create the first project. - [Configuring a self-hosted install](https://docs.opensequence.dev/docs/self-hosting/configuration): How to configure OpenSequence with environment variables: every SEQ_* variable, the queue backends and the roles. - [Postgres database requirements](https://docs.opensequence.dev/docs/self-hosting/database): What OpenSequence needs from Postgres: version, schemas, how migrations run, pool size behind a pooler, and how to back up and restore. - [Upgrading and rolling back](https://docs.opensequence.dev/docs/self-hosting/upgrades): How to move a running install to a new image: back up, migrate once, roll the api and worker, and roll back or stop sending safely if something breaks. - [Scaling api and worker replicas](https://docs.opensequence.dev/docs/self-hosting/scaling): How many api and worker replicas to run, the knobs that raise throughput, what really limits sending, and how to stop the engine safely. - [Monitoring logs, health and alerts](https://docs.opensequence.dev/docs/self-hosting/observability): How to watch a running OpenSequence: JSON logs, the health endpoints, the alerts worth setting, runs that need review, and what is not built yet. - [Deploy on Qovery](https://docs.opensequence.dev/docs/self-hosting/deploy-qovery): How to run OpenSequence on Qovery from the published image: a managed Postgres, a migration job, and api and worker applications on the same tag. - [Deploy on Fly.io](https://docs.opensequence.dev/docs/self-hosting/deploy-fly): How to run OpenSequence on Fly.io with one fly.toml: api and worker process groups from one image, migrations as the release command, secrets set once. - [Deploy on Kubernetes](https://docs.opensequence.dev/docs/self-hosting/deploy-kubernetes): How to deploy OpenSequence on Kubernetes: a Secret and ConfigMap, a migration Job, an api Deployment with probes, Service, Ingress and PDB, and a worker. - [Security model](https://docs.opensequence.dev/docs/security/security): How OpenSequence protects access: tenants, API keys, encrypted secrets, signed webhooks, mailbox privacy, consent rules and the gaps still open. - [Hardening a production install](https://docs.opensequence.dev/docs/security/security-hardening): What to lock down before going live: encryption keys and their rotation, the operator token, network layout, webhook rules, rate limits, a checklist. - [Data retention and erasure](https://docs.opensequence.dev/docs/security/data-retention): What OpenSequence stores about contacts and messages, what it prunes on its own, how to erase a person on request, and what leaves in webhooks. - [API conventions: auth, envelope, errors, pagination](https://docs.opensequence.dev/api/conventions): How every OpenSequence REST endpoint behaves: keys and scopes, the response envelope, field names, ids, pagination, rate limits and dates. - [API errors and the error envelope](https://docs.opensequence.dev/api/errors): What the API error envelope looks like, how to handle it, and every error code the API returns. - [TypeScript SDK: install and use @opensequence/sdk](https://docs.opensequence.dev/sdks/typescript): How to call OpenSequence from TypeScript: npm install @opensequence/sdk, configure the client, then every resource method and webhook verification. - [Using the auth package on its own](https://docs.opensequence.dev/sdks/auth-package): How to use @opensequence/auth on its own: store API keys and mailbox passwords encrypted, hand them to adapters, and rotate keys. - [Using the API from Python](https://docs.opensequence.dev/sdks/python): How to call OpenSequence from Python without an SDK: the REST API directly, or a client generated from the OpenAPI file with openapi-python-client. - [Using the API from Go](https://docs.opensequence.dev/sdks/go): How to call OpenSequence from Go without an SDK: the REST API with net/http, or a client generated from the OpenAPI 3.1 file with openapi-generator. - [oseq operator CLI](https://docs.opensequence.dev/sdks/cli): What the oseq operator CLI does: migrations, projects, API keys, encryption keys and health, with every command and option. - [API and definition limits](https://docs.opensequence.dev/reference/limits): What caps apply to definitions, batches, requests and retention, and where the code enforces each one. - [Sequence definition JSON Schema](https://docs.opensequence.dev/reference/definition-schema): The JSON Schema of a sequence definition, generated from the Zod source of truth. - [Node types and channel actions](https://docs.opensequence.dev/reference/nodes): Every registered node type and channel action, with its params, defaults and transitions. - [Condition fields and operators](https://docs.opensequence.dev/reference/condition-fields): Which fields conditions can read from the closed field registry, and which operators each field type supports. - [Webhook event catalogue](https://docs.opensequence.dev/reference/webhook-events): The webhook event catalogue: when each event fires and what its payload carries. - [Configuration variables reference](https://docs.opensequence.dev/reference/configuration): Every SEQ_* environment variable the service reads, with its type and default, validated once at boot. - [Error codes reference](https://docs.opensequence.dev/reference/error-codes): Every stable error code OpenSequence returns, from definition validation problems to HTTP errors. ## Guide - [How to build an outreach sequencing tool](https://www.opensequence.dev/blog/build-your-own-sales-sequencer): the seven parts, what breaks in each, and when to use an open source engine instead