Doola Customers API
Create and look up customers under your partner tenant.
Create and look up customers under your partner tenant.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/doola:doola-customers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: doola Partner Customers API
description: 'REST API for doola partners to create and manage customers and companies, retrieve formation documents, and look up reference data.
Authenticate every request with a partner API key in the `Authorization` header. Generate keys and manage your webhook endpoint in the doola Partner Portal.'
contact:
name: doola
url: https://www.doola.com
version: v1
servers:
- url: https://api.test.doola.com
description: Sandbox — use test keys (dk_test_…)
- url: https://api.doola.com
description: Production — use live keys (dk_live_…)
security:
- PartnerApiKey: []
tags:
- name: Customers
description: Create and look up customers under your partner tenant.
paths:
/v1/partner/customers:
get:
tags:
- Customers
summary: List customers
description: Lists customers for the authenticated partner tenant. Supports free-text search and pagination (page size capped at 100).
operationId: listCustomers
parameters:
- name: q
in: query
description: Free-text search over name and email.
required: false
schema:
type: string
- name: page
in: query
description: Zero-based page index.
required: false
schema:
type: integer
format: int32
default: 0
minimum: 0
- name: size
in: query
description: Page size (max 100).
required: false
schema:
type: integer
format: int32
default: 20
minimum: 1
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerSearchPagePartnerCustomerListItemDto'
post:
tags:
- Customers
summary: Create a customer
description: 'Creates a customer under the authenticated partner tenant. Returns `201 Created` for a new customer, or `200 OK` when a customer with the same email already exists **under your own tenant** and is returned instead of duplicated (`created: false`). An email belonging to any other principal — another tenant''s customer, a legacy customer with no tenant, or a non-customer such as a dashboard user — is rejected with `409 E_EMAIL_IN_USE` and nothing about that record is returned. Idempotent on the `Idempotency-Key` header: replaying the same key returns the original result — the same response and status as the first call — never a duplicate. If a create fails before it commits, the key is released; fix the request and retry with the same key.'
operationId: createCustomer
parameters:
- name: Idempotency-Key
in: header
description: Unique key that makes the create safe to retry. Reuse the same value to retry; if the create fails before committing, the key is released, so retry with the same value.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCustomerRequestDto'
required: true
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerCustomerResponseDto'
x-mint:
metadata:
description: Creates a customer under your partner tenant, or returns the existing one if the email is already yours. Idempotent on Idempotency-Key.
/v1/partner/customers/{customerId}:
get:
tags:
- Customers
summary: Get a customer
description: Returns a single customer by doola customer ID, including the companies that customer owns.
operationId: getCustomerById
parameters:
- name: customerId
in: path
description: doola customer ID (KSUID).
required: true
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PartnerCustomerResponseDto'
components:
schemas:
CreateCustomerRequestDto:
type: object
description: Request body to create a customer under your partner tenant.
properties:
email:
type: string
description: Customer email address.
example: founder@example.com
minLength: 1
firstName:
type: string
description: Customer legal first name.
example: Ada
minLength: 1
lastName:
type: string
description: Customer legal last name.
example: Lovelace
minLength: 1
countryOfResidence:
type: string
description: ISO 3166-1 alpha-3 country of residence (e.g. USA).
example: USA
minLength: 1
phoneNumber:
type: string
description: Customer phone number in E.164 format. Optional.
example: '+12125550100'
required:
- countryOfResidence
- email
- firstName
- lastName
PartnerCustomerResponseDto:
type: object
description: A partner customer.
properties:
doolaCustomerId:
type: string
description: doola customer ID (KSUID).
externalCustomerId:
type:
- string
- 'null'
description: Your own user id, as sent as externalCustomerId when minting an SDK customer session. Null when never sent.
example: usr_8f21c
email:
type: string
description: Customer email address.
example: founder@example.com
firstName:
type: string
example: Ada
lastName:
type: string
example: Lovelace
countryOfResidence:
type: string
description: ISO 3166-1 alpha-3 country of residence (e.g. USA).
example: USA
phoneNumber:
type: string
example: '+12125550100'
source:
type: string
description: How the customer was created.
enum:
- MCP
- PARTNER_API
- PARTNER_SDK
- WHOP_APP
- DOOLA_DASHBOARDS
created:
type: boolean
description: True if this request created the customer; false if it already existed.
companies:
type: array
description: Companies owned by this customer. Returned only on the get endpoint.
items:
$ref: '#/components/schemas/PartnerCompanyRef'
PartnerCompanyRef:
type: object
description: A lightweight reference to a company, used inside a customer response.
properties:
doolaCompanyId:
type: string
description: doola company ID (KSUID).
name:
type: string
description: Company name.
example: Acme Labs LLC
entityType:
type: string
description: Entity type.
example: LLC
state:
type: string
description: State of formation.
example: DE
PartnerCustomerListItemDto:
type: object
description: A customer as it appears in a list response.
properties:
doolaCustomerId:
type: string
description: doola customer ID (KSUID).
externalCustomerId:
type:
- string
- 'null'
description: Your own user id, as sent as externalCustomerId when minting an SDK customer session. Null when never sent.
example: usr_8f21c
email:
type: string
example: founder@example.com
firstName:
type: string
example: Ada
lastName:
type: string
example: Lovelace
customerTenantId:
type: string
description: Tenant the customer belongs to.
PartnerSearchPagePartnerCustomerListItemDto:
type: object
properties:
content:
type: array
items:
$ref: '#/components/schemas/PartnerCustomerListItemDto'
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer
format: int64
totalPages:
type: integer
format: int32
securitySchemes:
PartnerApiKey:
type: apiKey
description: Partner API key. Send the raw key as the `Authorization` header value — e.g. `dk_test_…` in sandbox or `dk_live_…` in production. Generate and rotate keys in the doola Partner Portal.
name: Authorization
in: header