> ## 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.

# Changelog

> Updates to the doola Embedded SDK and @doola/js.

Package releases are listed in full in the [`@doola/js` changelog](https://github.com/doolahq/doola-js/blob/main/packages/js/CHANGELOG.md). Changes to the Partner API endpoints the SDK uses are in the [Partner API changelog](https://docs.doola.com/api/changelog.md).

**2026-11-10**

Signing renders on any HTTPS page, with no domains to send doola

**No action needed.** You no longer send doola the domains that host the SDK. Signing renders inside the SDK on any HTTPS page, and with test keys on any page, `localhost` included. See [Signatures](https://docs.doola.com/sdk/after-payment.md#signatures).

**2026-10-08**

@doola/js 0.3.0: each session conflict has its own error

doola answers a session with 409 for three reasons, and `onAuthError` now names each one: `email_in_use`, the new `external_id_conflict` and the new `customer_revoked`. The founder sees a message for each, and never the email message unless the email is the cause.

Forward doola's error code to get them. `@doola/js/server` answers a 409 with `{ code }`, and `fetchAccessToken` rejects with it; see [Embed the SDK](https://docs.doola.com/sdk/embed.md) and [Errors](https://docs.doola.com/sdk/reference/errors.md#auth-errors). A route that sends only the status keeps getting `email_in_use` for a first 409. On a renewal, a 409 with `E_EMAIL_IN_USE` or with no code is `renewal_failed`. If you switch on `error.type` exhaustively, add the two new cases.

**2026-10-08**

SDK documentation

The Embedded SDK has its own section in these docs: a [quickstart](https://docs.doola.com/sdk/quickstart.md), the [payment guide](https://docs.doola.com/sdk/payments.md), [testing](https://docs.doola.com/sdk/testing.md) and a [go-live checklist](https://docs.doola.com/sdk/go-live.md), and references for the [client](https://docs.doola.com/sdk/reference/client.md), the [server helpers](https://docs.doola.com/sdk/reference/server.md) and [errors](https://docs.doola.com/sdk/reference/errors.md).

The Partner API reference now lists every error [Confirm payment](https://docs.doola.com/api/api-reference/companies/confirm-payment-for-a-draft-formation.md) and [Create a customer session](https://docs.doola.com/api/api-reference/customer-sessions/create-a-customer-session.md) return, and the optional [Get your publishable key](https://docs.doola.com/api/api-reference/sdk/get-your-publishable-key.md) endpoint.

**2026-09-28**

@doola/js 0.2.0: server helpers and Trusted Types

* **`@doola/js/server`** adds `createSessionHandler` and `createCustomerSession`, which build your session route. See [Create sessions](https://docs.doola.com/sdk/sessions.md).
* **Trusted Types.** Sites that enforce Trusted Types can allow the `doola-js` policy. See [Security and data](https://docs.doola.com/sdk/security.md#content-security-policy).

**2026-09-23**

@doola/js 0.1.2: CommonJS types

CommonJS projects using `node16` or `nodenext` module resolution get the right type definitions.

**2026-09-23**

@doola/js 0.1.0: first release

First release of `@doola/js`: `loadDoola`, the `<doola-embed>` element, session renewal through `fetchAccessToken`, and `onFormed`, which can fire again when a founder asks to pay for an unpaid formation.


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