Docs
How Two of Swords works.
The concepts, customization points, and setup you need to run and extend the application.
Core concepts
Everything starts with a durable application record. Opportunities can capture context before an application exists; applications can be opened from forms, links, or partners and resumed at any time.
- Supporting documents are records with their own upload-only URLs, usable during or after an application.
- Electronic signatures, mapped PDFs, and generated artifacts are separate primitives that reference the same record.
- Identity, ownership, verification, risk, customers, and residuals stay connected without enforcing a single sequence.
Customization
The application is yours to change. Fields, steps, branding, document requirements, and PDF mappings live in your repository, so customizations are reviewed and versioned like any other code.
- Change the brand and copy without forking the data model.
- Add or reorder fields and steps per industry or product.
- Map existing PDFs to application data instead of rebuilding them.
Self-hosting
Run the application on infrastructure you choose. It depends on six supporting services, and you select and operate the provider for each one.
- User management and authentication, a Postgres database, and document storage.
- Deployments and previews, error reporting and monitoring, and transactional email.
- Provider-specific guides will be published alongside the repository.
APIs
Applications, documents, signatures, and customers are reachable programmatically so you can connect the systems you already run. Reference documentation is published with each release.
- The same permissions model governs people, integrations, and agents.
- Endpoints you add in your repository are documented alongside the built-in ones.
Agent setup
Agents connect for one of three jobs, each with its own scope: working in your application account, customizing your repository, or previewing and deploying in your hosting.
- MCP servers expose account and hosting actions limited to the scopes you grant.
- A plugin installs skills that teach coding agents how to extend the application safely.
- Production releases and approvals always stay with your team.