Esc
  • Docs overviewDocs
  • PrimitivesThe connected building blocksDocs
  • CustomizationThe 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.Docs
  • Self-hostingRun the application on infrastructure you choose. It depends on six supporting services, and you select and operate the provider for each one.Docs
  • APIsApplications, documents, signatures, and customers are reachable programmatically so you can connect the systems you already run. Reference documentation is published with each release.Docs
  • Agent setupAgents 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.Docs
  • Application explorerWalk through a sample application recordDocs
  • Learn: AIBuild with AI and work with AILearn
  • Build with AIDevelop and customize your repository with a coding agentLearn
  • Work with AIUse your preferred AI inside your applicationLearn
  • OpportunitiesResearch and qualify businesses before onboarding. Carry that context into the application.Docs
  • ApplicationsOne durable application, with entry points for online forms, your team, APIs, and AI.Docs
  • DocumentsRequest and collect supporting documents through dedicated upload links, during or after onboarding.Docs
  • Online FormsCreate branded entry points for different products, teams, and partner networks.Docs
  • Business & OwnershipKeep business identity, registration, and ownership connected across applications.Docs
  • Electronic SignaturesBring agreements and signing ceremonies into your application workflow.Docs
  • Mapped PDFsMap application data into the fields of your existing PDFs.Docs
  • ArtifactsKeep generated outputs connected to the application that produced them.Docs
  • Risk & FraudBring verification and supporting evidence into the stages where review is needed.Docs
  • CustomersCarry application context into the ongoing customer relationship.Docs
  • ResidualsConnect recurring revenue and partner earnings to your customers.Docs
  • APIsConnect your systems, partners, and authorized agents to the application.Docs
  • Learn overviewLearn
  • Understand the foundationHow the durable application record connects opportunities, documents, signatures, verification, customers, and residuals.Learn
  • Choose your stackThe six supporting services the application depends on, and how to pick a provider for each.Learn
  • Build with AIUse a coding agent to customize fields, steps, branding, and integrations in your own repository.Learn
  • Work with AILet agents act in your application account within the scopes and approvals you set.Learn
  • The supporting castTools and services around Two of SwordsLearn
  • AI for buildingCoding agents that help you read, change, and extend the Two of Swords codebase: adding a workflow, wiring an integration, or writing tests.Learn
  • Project managementA place to plan the work around your platform: issues, roadmaps, releases, and the conversations behind them.Learn
  • Authentication & usersSign-in, sessions, and user management for the people who use your platform: your staff, your partners, and your applicants.Learn
  • Postgres databaseThe system of record. Opportunities, applications, customers, residuals, and their relationships all live in Postgres.Learn
  • Code & deploymentsTwo separate jobs: a repository where your code is reviewed and versioned, and a host that builds and serves the application.Learn
  • Document storageWhere files live: uploaded bank statements, IDs, signed agreements, mapped PDFs, and generated artifacts.Learn
  • Transactional emailThe email the platform sends on its own: invitations, document requests, signature reminders, and status updates.Learn
  • Monitoring & analyticsTwo different questions: is something broken, and how are people using the product.Learn
  • Verification & riskOutside checks on the businesses and people behind an application.Learn
  • DeploySelf-host or managed by IQDeploy
  • Self-hostRun Two of Swords on infrastructure you choose and operate.Deploy
  • Managed by IQIQ provisions and operates the same six services for you.Deploy

Docs

Primitives

Two of Swords is built from a small set of connected primitives. Each one does a single job, and each one references the others instead of copying them.

The relationships are a foundation, not a script. A business does not have to move through every primitive, or in one fixed order. Installation, API reference, and tutorials will follow.

On this page

Opportunities

An opportunity holds what you learn about a business before it applies: lookups, notes, qualification, and who is working it.

The opinion
Research should not be thrown away at the start of onboarding. When an opportunity becomes an application, its context comes with it.
Example
A partner refers Halverson Supply Co. Your team looks up the business, marks it qualified, and opens an application that starts with that information already attached.

Applications

An application is the durable record of a business applying for a product. It can be saved, resumed, edited, and reviewed over time.

The opinion
There is one application, not one per channel. An online form, an internal user, an API client, and an authorized agent can all work on the same record.
Example
A merchant starts APP-2381 through an online form, your team corrects the bank details, and an integration attaches pricing through the API. Every change lands on APP-2381.

Documents

A document request asks for a specific supporting file and issues an upload-only link for it. Received files are stored against the request.

The opinion
Collecting a file and approving it are different events. A document can be received and still be waiting for review.
Example
Three months after approval, you request updated bank statements. The customer uses the upload-only link; the file arrives as received, and your team reviews it separately.

Online Forms

An online form is a configured, branded way into an application, with its own fields, steps, and attribution.

The opinion
Forms are entry points, not the application itself. Several forms can feed the same kind of application without duplicating the data model.
Example
Your direct sales team and an ISO partner each get their own form. Both create applications of the same shape, attributed to the right source.

Business & Ownership

Business identity holds legal name, registration, and owners once, and connects them to every application that business submits.

The opinion
A business is not the same as an application. One business can apply many times, for different products, without re-entering who it is.
Example
Halverson Supply Co. applies for card processing in March and equipment financing in June. Both applications reference the same business and owners.

Electronic Signatures

An envelope groups the agreements to sign, the signers, and the signing ceremony, and records its completion against the application.

The opinion
Signatures are their own primitive. They are not supporting documents, and they are not the PDFs you generate.
Example
Once pricing is set, the merchant agreement is sent to both owners. Each signs in turn, and the completed envelope is attached to the application.

Mapped PDFs

A mapped PDF connects the fields of a form you already use to values in the application, and fills it on demand.

The opinion
Keep the paperwork your partners already accept. Map to it instead of rebuilding it.
Example
A processor requires its own application PDF. You map its fields once, and every application can produce a filled copy.

Artifacts

An artifact is something the system generated: a filled PDF, an export, a report. It records what produced it and when.

The opinion
Generated outputs are not uploads. Keeping them separate from supporting documents makes it clear what the business sent and what you created.
Example
Filling the processor PDF for APP-2381 creates an artifact linked to that application and the data version it used.

Risk & Fraud

Verification results and evidence are attached to the business, owners, or application they concern, at the stage where they matter.

The opinion
Review belongs where the decision is made. Checks can run before, during, or after onboarding rather than in one fixed step.
Example
An identity check runs on each owner during the application; a later chargeback review pulls the same evidence alongside new documents.

Customers

A customer is the ongoing relationship that follows an approved application, with its history still attached.

The opinion
Onboarding is not the end of the record. Approval should not mean copying data into a different system and losing where it came from.
Example
After approval, Halverson Supply Co. becomes a customer. New document requests, reviews, and earnings connect back to the original application.

Residuals

Residuals track recurring revenue from each customer and the share earned by the partners attached to it.

The opinion
Earnings should trace back to a real customer and the partner who brought them in.
Example
Monthly processing volume for Halverson Supply Co. produces a residual, split with the ISO partner whose online form started the application.

APIs

APIs expose the same records your team uses, with the same permissions, to your systems, partners, and authorized agents.

The opinion
People, integrations, and agents work on one model. An API is another entry point to the same application, not a parallel copy.
Example
Your CRM creates opportunities, a partner portal reads application status, and an authorized agent requests a missing document, all through the same API.

How the records connect

Separate records. One shared history.

Each building block keeps its own status and audit trail, and every one of them points back to the same business.

Many ways in, one record
Forms, links, partner submissions, and converted opportunities all write to the same durable application.
Businesses outlive applications
One business identity can carry a first application, a second location, and a renewal—without re-keying.
Documents are not decisions
A received document is evidence awaiting review. Acceptance is a separate, recorded step.
Agreements stand on their own
Signatures, mapped PDFs, and generated artifacts relate to the application but keep their own status and history.
Review where you choose
Verification and risk checks attach at whichever stage your process needs—at intake, before signing, or after.
The relationship continues
Approval creates a customer. Residuals connect that customer to the partner who referred them.

See them working

The application explorer shows each primitive working with the same customer, Juniper Street Bakery. Select a module to see its screen and how it relates to the rest.

Shape your workflows

The same primitives can be configured into different application types, review stages, document requests, and API connections.