# doola Docs > Build US company formation and compliance into your product with the doola Partner API, the embedded doola SDK, webhooks and the doola Formation MCP server, or refer founders to doola as an affiliate partner. > ## 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=) and the Company Formation Widget (app.doola.com/embed/partner/). 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. - [doola Partner API](https://docs.doola.com/api/introduction.md): Form US LLCs and C-Corps for your customers through the doola Partner API, add services such as EINs, and track each company to completion. - [API authentication](https://docs.doola.com/api/authentication.md): How to authenticate requests to the doola Partner API with your API key, and the header every request must include. - [Company formation](https://docs.doola.com/api/formation.md): The formation flow in the doola Partner API, the statuses a company moves through, and where to read formation progress. - [SS-4 and Form 8821 signing](https://docs.doola.com/api/non-us-formation.md): Collect SS-4 and Form 8821 signatures for companies that need them under doola's partner EIN workflow, so doola can obtain the company's EIN. - [Expedited EIN](https://docs.doola.com/api/expedited-ein.md): Request prioritized EIN processing for companies whose responsible party has no valid SSN, including one with an ITIN. - [Choosing an industry](https://docs.doola.com/api/naics-industry.md): Classify a company on create with the industry field: where valid NAICS values come from and the validation rules the Partner API applies. - [Import an existing company](https://docs.doola.com/api/import-company.md): Bring a company your customer already formed outside doola into your account, upload its documents, and follow doola's review until it is verified. - [Company services](https://docs.doola.com/api/company-services.md): Choose the services a company is created with, the rules for combining them, and how each service moves through its lifecycle. - [Add a service](https://docs.doola.com/api/add-services.md): Order an EIN for any existing company, or make doola the registered agent of a company you imported, with the add services endpoint. - [Compliance calendar](https://docs.doola.com/api/compliance/calendar.md): Read a company's tracked compliance obligations and their due dates, including the annual report's next due date and status. - [Annual report filing](https://docs.doola.com/api/compliance/annual-report-filing.md): Read what a state asks and charges, put a company's annual report on file, confirm it, and follow it to completion. - [Webhooks](https://docs.doola.com/api/webhooks.md): Receive doola Partner API webhook events for formations, EINs, imports, annual reports, tax filings and documents, and verify their signatures before processing them. - [Required actions](https://docs.doola.com/api/required-actions.md): Respond when doola needs something from you before a company's formation, import or annual report can continue: list, read and resolve required actions. - [New company names needed](https://docs.doola.com/api/required-actions/name-options.md): Handle FORMATION_NAME_OPTIONS_EXHAUSTED by submitting replacement company names after the state rejects every option. - [SS-4 signature needed again](https://docs.doola.com/api/required-actions/ss4-reset.md): Handle FORMATION_SIGNATURE_SS4_RESET by presenting the SS-4 again after a company name change voids the existing signature. - [Form 8821 signature needed](https://docs.doola.com/api/required-actions/form8821-required.md): Handle FORMATION_SIGNATURE_FORM8821_REQUIRED by collecting the Form 8821 signature doola needs to obtain the company's EIN. - [Founder address needed](https://docs.doola.com/api/required-actions/founder-address.md): Handle FORMATION_FOUNDER_ADDRESS_REQUIRED by sending the founder's own US address for an Indiana or Illinois formation. - [Annual report correction](https://docs.doola.com/api/required-actions/annual-report-correction.md): Handle ANNUAL_REPORT_ADDRESS_NOT_ACCEPTED and ANNUAL_REPORT_SHARE_VALUE_TOO_HIGH by sending back the company details the state refused. - [Imported company actions](https://docs.doola.com/api/required-actions/import.md): Handle IMPORT_DOCUMENTS_MISSING by uploading the missing documents, and IMPORT_INFO_REQUIRED by sending the corrections doola asks for. - [Sandbox playground](https://docs.doola.com/api/sandbox-playground.md): Complete formation and EIN issuance on demand in sandbox, and receive every webhook without waiting on the state or the IRS. - [API errors](https://docs.doola.com/api/errors.md): The error envelope and the global error codes returned by the doola Partner API, with the meaning of each code. - [Domain objects](https://docs.doola.com/api/domain-objects.md): The shapes and business rules behind customer, company formation and company import requests in the doola Partner API. - [OpenAPI specification](https://docs.doola.com/api/openapi-spec.md): Download the machine-readable OpenAPI document for the doola Partner API, for example to generate clients or import endpoints into your tools. - [Move an ITIN request to a later stage (sandbox)](https://docs.doola.com/api/api-reference/playground-sandbox-only/move-an-itin-request-to-a-later-stage-sandbox.md): Simulates doola moving a submitted ITIN request through its stages: DOCUMENT_REVIEW, PENDING_SIGNATURE, IRS_SUBMITTED, ITIN_ISSUED. Reaching ITIN_ISSUED once the ITIN is recorded fires `company_itin_issued`, as in production; `triggeredEvents` lists it only on the call that completed the issuance. A… - [Complete formation (sandbox)](https://docs.doola.com/api/api-reference/playground-sandbox-only/complete-formation-sandbox.md): Simulates the state confirming a formation: records the filing date, uploads the Articles and fires the formation webhooks. Sandbox only. - [Complete EIN creation (sandbox)](https://docs.doola.com/api/api-reference/playground-sandbox-only/complete-ein-creation-sandbox.md): Simulates the IRS issuing an EIN: sets the company's EIN, uploads the EIN letter and fires the matching webhooks. Sandbox only. - [List customers](https://docs.doola.com/api/api-reference/customers/list-customers.md): Lists customers for the authenticated partner tenant. Supports free-text search and pagination (page size capped at 100). - [Create a customer](https://docs.doola.com/api/api-reference/customers/create-a-customer.md): Creates a customer under your partner tenant, or returns the existing one if the email is already yours. Idempotent on Idempotency-Key. - [Get a customer](https://docs.doola.com/api/api-reference/customers/get-a-customer.md): Returns a single customer by doola customer ID, including the companies that customer owns. - [Create a customer session](https://docs.doola.com/api/api-reference/customer-sessions/create-a-customer-session.md): Creates a short-lived session for a signed-in customer from your server, for use with the doola Embedded SDK. - [List companies](https://docs.doola.com/api/api-reference/companies/list-companies.md): Lists your companies with free-text search, filters by customer, origin and import status, and pagination of up to 100 per page. - [Create a company](https://docs.doola.com/api/api-reference/companies/create-a-company.md): Starts a US LLC or C-Corp formation for one of your customers. Idempotent on the Idempotency-Key header, so retries never create a duplicate formation. - [Add services to a company](https://docs.doola.com/api/api-reference/companies/add-services-to-a-company.md): Orders an EIN for any existing company, or registered agent service for a company you imported. All or nothing, and idempotent on Idempotency-Key. - [Confirm payment for a draft formation](https://docs.doola.com/api/api-reference/companies/confirm-payment-for-a-draft-formation.md): Releases a draft formation submitted through the doola Embedded SDK after your customer pays. Safe to retry: the work never starts twice. - [Import a company](https://docs.doola.com/api/api-reference/companies/import-a-company.md): Records a company your customer formed outside doola so you can add doola services to it. Nothing is filed. Idempotent on Idempotency-Key. - [Get a company](https://docs.doola.com/api/api-reference/companies/get-a-company.md): Returns a company by doola ID with its formation status, EIN once issued, members, addresses, services and current registered agent. - [List company documents](https://docs.doola.com/api/api-reference/documents/list-company-documents.md): Lists the documents available for a company, newest first, as metadata. Only the latest signed SS-4 and Form 8821 are returned. - [Upload a company document](https://docs.doola.com/api/api-reference/documents/upload-a-company-document.md): Uploads a PDF of up to 10MB to a company you own and triggers the same work and webhooks as doola receiving it. Idempotent on Idempotency-Key. - [Get a document download URL](https://docs.doola.com/api/api-reference/documents/get-a-document-download-url.md): Returns a document's metadata and a short-lived, pre-signed download URL. Take the documentId from the list endpoint instead of caching it. - [Create or update a member's draft ITIN request](https://docs.doola.com/api/api-reference/itin/create-or-update-a-members-draft-itin-request.md): Creates the member's ITIN request as a DRAFT, or updates the draft already on file, so missing fields can be added before submit. Idempotent on the Idempotency-Key header. - [Submit a member's ITIN request](https://docs.doola.com/api/api-reference/itin/submit-a-members-itin-request.md): Moves the DRAFT to SUBMITTED. The member must still be eligible, every field in missingForSubmit filled, the passport uploaded and valid for at least 6 more months. doola then opens the request for its team and sends company_itin_submitted. No body. Idempotent on the Idempotency-Key header. - [Upload the signed W-7 and Form 2848](https://docs.doola.com/api/api-reference/itin/upload-the-signed-w-7-and-form-2848.md): Answers the open ITIN_SIGNATURE_REQUIRED Ops raised on this request with the applicant's forms, signed in ink and scanned: exactly one ITIN_W7_SIGNED and one ITIN_2848_SIGNED. The action becomes submitted until Ops review the forms. Idempotent on the Idempotency-Key header. - [Upload the member's passport](https://docs.doola.com/api/api-reference/itin/upload-the-members-passport.md): Stores the passport photo page and makes it the request's passport, replacing one uploaded before. A DRAFT takes a passport at any time. A submitted request takes one only while doola has an open ITIN_PASSPORT_REUPLOAD on it: the upload answers that required action, which becomes submitted until doo… - [Get one ITIN request](https://docs.doola.com/api/api-reference/itin/get-one-itin-request.md): The request with its status. Status changes made by doola after submit are read here; the passport number and ITIN are masked. - [Get the price of one ITIN](https://docs.doola.com/api/api-reference/itin/get-the-price-of-one-itin.md): What doola charges the partner for one member's ITIN. The same for every partner. - [List which members can apply for an ITIN](https://docs.doola.com/api/api-reference/itin/list-which-members-can-apply-for-an-itin.md): Every member of the company with isEligible and every reason they cannot apply. No member is eligible until the company's EIN is on file. - [Confirm a company's tax filing for a tax year](https://docs.doola.com/api/api-reference/tax-filing/confirm-a-companys-tax-filing-for-a-tax-year.md): Confirms you sold a company its federal tax return for a tax year, so it can start the return in the embedded app. Nothing is charged here. - [List a company's tax filing years](https://docs.doola.com/api/api-reference/tax-filing/list-a-companys-tax-filing-years.md): Lists the tax years a company can file for, newest first, with status, due date and filing window. - [Get tax filing status for a tax year](https://docs.doola.com/api/api-reference/tax-filing/get-a-companys-tax-filing-status-for-one-tax-year.md): Returns one tax year's filing status, due date and filing window, whether the customer can file it and the last day your confirmation covers. - [Create a signature session](https://docs.doola.com/api/api-reference/signatures/create-a-signature-session.md): Generates an embedded signing URL for a company document such as the SS-4. Each call creates a fresh URL and voids earlier unsigned sessions. - [Resolve a required action](https://docs.doola.com/api/api-reference/required-actions/resolve-a-required-action.md): Submits what doola asked for, such as new company names, a founder address, import corrections or corrected annual report details, so work can continue. - [List open required actions across your companies](https://docs.doola.com/api/api-reference/required-actions/list-open-required-actions-across-your-companies.md): Lists every open required action across all your companies, most recently changed first, with the tenant-wide open count. - [List a company's required actions](https://docs.doola.com/api/api-reference/required-actions/list-a-companys-required-actions.md): Lists every required action for a company, most recently changed first, including resolved and rejected ones, to reconcile after missed webhooks. - [Retrieve a required action](https://docs.doola.com/api/api-reference/required-actions/retrieve-a-required-action.md): Returns one required action with its full history: when it was raised, whether doola reached your endpoint and how many rounds it has taken. - [List a company's annual reports](https://docs.doola.com/api/api-reference/annual-report-filing/list-a-companys-annual-reports.md): Lists a company's annual reports, one per fiscal year, newest first, each with its status and the price fixed on it. Read-only. - [Submit a company's annual report](https://docs.doola.com/api/api-reference/annual-report-filing/submit-a-companys-annual-report.md): Records a company's annual report in one call with the answers to every required field. Filing starts only after you confirm the report. - [Confirm an annual report](https://docs.doola.com/api/api-reference/annual-report-filing/confirm-an-annual-report-and-hand-it-to-doola-to-file.md): Hands a submitted annual report to doola to file. Required for every report, including $0 ones. Safe to repeat, and nothing is charged. - [Get one annual report](https://docs.doola.com/api/api-reference/annual-report-filing/get-one-annual-report.md): Returns one of a company's annual reports with the answers on record for it. Read-only. - [Get the state fee for a company's annual report](https://docs.doola.com/api/api-reference/annual-report-filing/get-the-state-fee-for-a-companys-annual-report.md): Returns what a company's state charges for its annual report. Indicative only: nothing is stored or charged. Read isFilingRequired first. - [Get the annual report requirements for a company](https://docs.doola.com/api/api-reference/annual-report-filing/get-the-annual-report-requirements-for-a-company.md): Returns the fields to collect before submitting a company's annual report, based on its state and entity type, with the due date. - [Get your publishable key](https://docs.doola.com/api/api-reference/sdk/get-your-publishable-key.md): Returns the publishable key (pk_test or pk_live) the doola Embedded SDK needs in the browser. It is created on the first request and never changes. - [List states](https://docs.doola.com/api/api-reference/reference-data/list-states.md): Returns the US states the doola Partner API supports, with their abbreviations. - [List state filing fees](https://docs.doola.com/api/api-reference/reference-data/list-state-filing-fees.md): Returns the formation filing fee per state, in cents, for the requested entity type (LLC or CCorp). Defaults to LLC when omitted. - [List NAICS codes](https://docs.doola.com/api/api-reference/reference-data/list-naics-codes.md): Returns the industries accepted by the create-company endpoint. Send an entry's `industry` label verbatim. - [List countries](https://docs.doola.com/api/api-reference/reference-data/list-countries.md): Returns the countries the doola Partner API supports, with their ISO codes. - [Get a company's compliance calendar](https://docs.doola.com/api/api-reference/compliance/get-a-companys-compliance-calendar.md): Returns a company's compliance obligations, today its annual report, with the next due date and a status such as UPCOMING or OVERDUE. - [API FAQ](https://docs.doola.com/api/faq.md): Common questions about the doola Partner API and Partner Portal, in plain language. - [API changelog](https://docs.doola.com/api/changelog.md): Updates and changes to the doola Partner API. - [doola Embedded SDK](https://docs.doola.com/sdk/overview.md): Let your customers form a US LLC or C-Corp inside your product with the doola Embedded SDK, under your brand, while you keep checkout. - [Quickstart](https://docs.doola.com/sdk/quickstart.md): Embed doola company formation in your app with @doola/js, take a test payment and see the founder's company, in about 15 minutes. - [How it works](https://docs.doola.com/sdk/how-it-works.md): The pieces of an SDK integration, the keys that connect them, and what happens from the first screen to a formed company. - [Customer experience](https://docs.doola.com/sdk/customer-experience.md): Every screen your customer sees in the doola Embedded SDK, from the first step of the formation wizard to their company dashboard. - [Create sessions](https://docs.doola.com/sdk/sessions.md): Add one server route that exchanges your secret key for a short-lived doola SDK session for the signed-in customer. - [Embed the SDK](https://docs.doola.com/sdk/embed.md): Install @doola/js, mount the doola formation flow on your page, and keep it working across your framework's component lifecycle. - [Take payment](https://docs.doola.com/sdk/payments.md): You own checkout: charge your customer your own price, then confirm the payment with the doola API so the formation starts. - [After payment](https://docs.doola.com/sdk/after-payment.md): What happens after you confirm payment in the doola Embedded SDK: filing, signatures, documents and the webhooks that report each one. - [Branding](https://docs.doola.com/sdk/branding.md): Make the embedded formation flow look like your product: logo, colors, font and corners, set once in the Partner Portal. - [Presentation and mobile](https://docs.doola.com/sdk/presentation.md): How the doola Embedded SDK sits on your page, how it behaves on mobile devices, and how to serve it from your own domain. - [Testing](https://docs.doola.com/sdk/testing.md): Run the whole SDK flow in the test environment: wizard, payment, signing, filing and EIN, with nothing filed and nothing charged. - [Go-live checklist](https://docs.doola.com/sdk/go-live.md): Everything to check before you switch the doola Embedded SDK from test keys to live keys. - [Client reference](https://docs.doola.com/sdk/reference/client.md): Every option, method and callback that @doola/js exposes in the browser for the doola Embedded SDK. - [Server reference](https://docs.doola.com/sdk/reference/server.md): The @doola/js/server helpers and the doola Partner API endpoints that an Embedded SDK integration calls from your server. - [SDK errors](https://docs.doola.com/sdk/reference/errors.md): Every error the doola Embedded SDK reports to your page, what it means, and what to do about it. - [Security and data](https://docs.doola.com/sdk/security.md): What data goes where in the doola Embedded SDK, how sessions are scoped, and what your security team needs to allow. - [SDK FAQ](https://docs.doola.com/sdk/faq.md): Answers to the questions partners ask most about the doola Embedded SDK: business, payments, the founder's experience, security and integration. - [SDK changelog](https://docs.doola.com/sdk/changelog.md): Updates to the doola Embedded SDK and @doola/js. - [doola affiliate program](https://docs.doola.com/affiliates/overview.md): Everything you need to promote doola as an affiliate, from your first referral link and widgets to ready-to-post copy, in one place. - [Getting started](https://docs.doola.com/affiliates/getting-started.md): Join the program, get your referral link and coupon code, book your activation call and publish your first placement. - [Commissions, discounts and payouts](https://docs.doola.com/affiliates/commissions.md): How you earn, how your audience's discount works, how payouts reach you, and the doola plans your audience can choose. - [Ways to integrate](https://docs.doola.com/affiliates/integrations.md): Bring doola to your audience with a referral link, the Demo Booking Widget or the Company Formation Widget, and how each option works. - [Demo Booking Widget](https://docs.doola.com/affiliates/demo-booking-widget.md): Let your visitors book a free 15-minute call with doola's team without leaving your site. One snippet, your referral link, and you're live. - [Company Formation Widget](https://docs.doola.com/affiliates/formation-widget.md): Let your visitors form a US LLC or C-Corp, pick a plan and pay, all without leaving your site. One snippet with your partner ID. - [Content playbook](https://docs.doola.com/affiliates/content-playbook.md): Where doola fits for your audience, talking points, video ideas and examples from other partners, to help you create content that converts in your own voice. - [Ready-to-use copy](https://docs.doola.com/affiliates/copy.md): Emails, newsletter announcements, social posts and video scripts for promoting doola, to use as they are or adapt to your voice. - [Brand assets and company info](https://docs.doola.com/affiliates/brand-assets.md): doola logos, visuals, product demo access and the company details you need to talk about doola accurately. - [Program guidelines](https://docs.doola.com/affiliates/guidelines.md): A few simple rules that keep the program fair for everyone and protect your audience's trust, and what doola handles for you. - [Affiliate FAQ](https://docs.doola.com/affiliates/faq.md): Answers to the questions affiliate partners ask most: the program, commissions and discounts, plans, bookkeeping and taxes, and support. - [doola Formation MCP server](https://docs.doola.com/mcp/introduction.md): Let AI agents form a US LLC or C-Corp end to end through doola over the Model Context Protocol (MCP), using the doola Formation MCP server. - [Connect a client](https://docs.doola.com/mcp/connect.md): Add the doola MCP server to Claude, Claude Code, Grok Build, ChatGPT, Perplexity, Cursor, Replit, Lovable, Vercel v0, or any MCP client. - [MCP authentication](https://docs.doola.com/mcp/authentication.md): How the doola MCP server authenticates clients: OAuth 2.0 Bearer auth, discovery endpoints and the MCP session lifecycle. - [Tools reference](https://docs.doola.com/mcp/tools.md): The 51 MCP tools: seven that run the formation flow, six for status, companies and feedback, and 38 that read the customer's existing company. - [End-to-end flow](https://docs.doola.com/mcp/flow.md): A full solo-founder US company formation through the doola Formation MCP server, call by call. - [MCP errors](https://docs.doola.com/mcp/errors.md): JSON-RPC errors, auth challenges and tool-level failures returned by the doola MCP server, and how to recover from each. - [Limitations](https://docs.doola.com/mcp/limitations.md): What the doola Formation MCP server does and doesn't do today. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.