> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doola.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate with the raw API key in the Authorization header. Never add a Bearer prefix.
> Use the sandbox base URL https://api.test.doola.com and a dk_test_ key in examples unless the user asks for production.
> Send an Idempotency-Key header on POST /v1/partner/customers, POST /v1/partner/companies, POST /v1/partner/companies/import, POST /v1/partner/companies/{companyId}/services and POST /v1/partner/companies/{companyId}/documents. No other endpoint takes one.
> Every response is wrapped as {payload, error}. Read fields from payload and branch on error.code, never on the message.
> Drive formation progress from webhooks plus a reconciliation sweep, never a polling loop.
> Embedded SDK (@doola/js): the dk_ key stays on the server and mints customer sessions; the browser gets only a pk_ key and the session. onFormed carries only companyId and can fire more than once. Before charging, read the company with the dk_ key, require formationSubmissionStatus AWAITING_PAYMENT, check the owner's email, and price on the server. Then POST payment-confirmed, which answers 200 with an empty body, and replace the SDK element with a new doola.create() (never append a second one).
> The doola Formation MCP server at https://mcp.doola.com is for founders forming their own company with their own doola account. Platform partners integrate the Partner API or the Embedded SDK. The /mcp endpoint on this docs site only searches these docs.
> Affiliates refer founders to doola with a PartnerStack referral link and coupon code, or with two doola-branded iframe widgets: the Demo Booking Widget (app.doola.com/embed/book-demo?link=<referral link>) and the Company Formation Widget (app.doola.com/embed/partner/<partner ID>). The widgets need no API key and are not the Embedded SDK. Copy the snippets exactly as documented, never add a sandbox attribute to the formation widget iframe.
> For a full capability summary with the rules above, read https://docs.doola.com/skill.md.

# Ways to integrate

> Bring doola to your audience with a referral link, the Demo Booking Widget or the Company Formation Widget.

There are three ways to bring doola to your audience. Most partners start with a referral link, and add a widget when they want doola inside their own site.

## Which option is right for you?

| Option | Best for | Setup time | How you're credited |
| - | - | - | - |
| Referral link and code | Creators, newsletters, communities and courses | Minutes | Your PartnerStack referral link |
| Demo Booking Widget | Sites where visitors want to talk to an expert first | A few minutes | Your referral link in the snippet |
| Company Formation Widget | Platforms that want visitors to form a company without leaving their site | Minutes, once you have your partner ID | Your partner ID in the snippet |

## Referral link and code

Share your link and code anywhere your audience is: videos, posts, emails, your website, a course or a community. See [Getting started](https://docs.doola.com/affiliates/getting-started.md) to get yours.

## Demo Booking Widget

Let visitors book a free 15-minute call with doola's team without leaving your site. Paste one snippet, add your referral link, and you're live. doola runs the call and all follow-up.

* Works from 320px (mobile) to 740px wide
* No doola cookies
* Full setup guide: [Demo Booking Widget](https://docs.doola.com/affiliates/demo-booking-widget.md)

## Company Formation Widget

Let visitors form a US LLC or C-Corp, pick a plan and pay, all inside your site. Paste one snippet with your partner ID and you're live, on any HTTPS page.

* Sandbox available for testing
* Full setup guide: [Company Formation Widget](https://docs.doola.com/affiliates/formation-widget.md)

> [!NOTE]
>
> Technical questions about the widgets? Email [engineering@doola.com](mailto:engineering@doola.com).

## Building formation into your own product?

The widgets are doola's own pages inside yours: your visitors see doola's brand, sign up with doola and become doola customers. If you want company formation inside your product, under your brand and with your own checkout, that's a platform integration rather than the affiliate program.

| | Affiliate widgets | [Embedded SDK](https://docs.doola.com/sdk/overview.md) | [Partner API](https://docs.doola.com/api/introduction.md) |
| - | - | - | - |
| Your customer sees | doola's brand | Your brand | Your own screens |
| Who charges the customer | doola | You, in your own checkout | You |
| How you earn | Commission through PartnerStack | You set your price, and doola bills you under your partner agreement | You set your price, and doola bills you under your partner agreement |
| Engineering needed | Paste a snippet | One server route and a few lines of JavaScript | A backend integration |

Interested in a platform integration? [Talk to us](https://www.doola.com/partner-with-us/).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.