Provisioning API · Alpha / open for testing
Provision inboxes
Follow this path: workspace → domain → inboxes → sequencer. Personas are optional sender profiles used to generate addresses. Infrastructure work returns an Operation that you must check before continuing.
- Base URL
https://api.builders.ac/api/provisioning/v1alpha1- API Key
age1…The same credential used by Mailbox v1beta1 and Deliverability.
Using an AI assistant? Connect with MCP to manage domains, personas, inboxes, and sequencer connections.
Before you start
Section titled “Before you start”- Create an API credential and keep its Secret file private.
- Have a domain you own and access to its registrar’s nameserver settings.
- Have enough mailbox slots. Domain connection reserves 50; larger inbox batches may need more.
- The examples use Bash,
curlandjq. Install theageCLI if you need to decrypt credentials or authorize destructive HTTP calls.
Buy a domain
Section titled “Buy a domain”Call POST /workspaces/{wsp}/domains/buy with domains: [{name, external_id?}]
and an Idempotency-Key. The 202 response contains a domain.purchase Operation
and a Location header for polling. Open metadata.checkout_url to complete
Stripe-hosted checkout. Keep the same idempotency key when retrying one request.
The checkout link lasts 24 hours and reuses one payment session. Confirmed payment
starts registration. Poll the Operation until done; metadata.payment_status
reports payment, and metadata.registered_domain_ids lists registrations completed
so far. Availability may change before registration. A paid failure reports
domain_purchase_failed: contact support to resolve registration or refund, and do
not pay again. An unpaid expired checkout reports domain_checkout_expired.
Unregistered domain rows remain available to inspect or remove before a new purchase.
Buying does not reserve mailbox slots or provision infrastructure. After a successful
purchase, call POST /domains/{dom}/reconnect to start setup for the resulting domain.
Operation cancellation does not reverse payment or registration; allow an unpaid
checkout to expire instead. Renewal remains a dashboard action.
1 · Get your credential
Section titled “1 · Get your credential”Create and download a credential. The API Key authenticates requests. The paired Secret stays local for encrypted values and destructive-action proofs. One credential works across all three builders.ac APIs.
2 · Authentication and headers
Section titled “2 · Authentication and headers”export BASE=https://api.builders.ac/api/provisioning/v1alpha1export KEY=age1_REPLACE_WITH_YOUR_API_KEYexport SEC=./builders-api-credential.txt
H=(-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json')curl --fail-with-body -sS "${H[@]}" "$BASE/me" | jqA 401 means authentication failed. Confirm the base URL and key before creating resources.
| Header | Use |
|---|---|
Authorization |
Send the API Key as a bearer token. |
Content-Type: application/json |
Include when sending JSON. |
Idempotency-Key |
One UUID per intended POST; reuse it on retries of that same request. |
Sealed-Proof |
Answer a destructive-call challenge. See proofs. |
3 · Conventions that apply everywhere
Section titled “3 · Conventions that apply everywhere”Long operations return 202 and an Operation
Section titled “Long operations return 202 and an Operation”A 202 accepts work; it does not confirm completion. Save the returned op_… ID and poll:
curl --fail-with-body -sS "${H[@]}" "$BASE/operations/$OP" \ | jq '{id, done, state, metadata, error}'Wait for done: true, then inspect state: succeeded, failed or cancelled.
Check the actual domain or inbox state as well. Use update_by_date to pace polling.
An operation can spawn child operations linked by parent_operation_id.
POST needs an Idempotency-Key; PUT does not
Section titled “POST needs an Idempotency-Key; PUT does not”Generate the UUID once for a logical request. Reuse that UUID and identical arguments after a timeout or network interruption. A replay returns the stored response; it does not restart a failed operation. Inspect existing resources before submitting new work.
The snippets generate a fresh key for each new action. To retry an action, retain and
reuse its key rather than running uuidgen again.
Identifiers are TypeIDs
Section titled “Identifiers are TypeIDs”Resource IDs have a prefix such as wsp_, dom_, per_, inb_, pra_ or op_.
Use returned IDs rather than constructing them. List responses use data, has_more
and next_cursor; pass the cursor as starting_after with unchanged filters and order.
4 · Create a Workspace
Section titled “4 · Create a Workspace”A workspace groups an end customer’s domains, personas and inboxes.
REQUEST_ID=$(uuidgen)WSP=$(curl --fail-with-body -sS "${H[@]}" \ -H "Idempotency-Key: $REQUEST_ID" -X POST "$BASE/workspaces" \ -d '{"name":"Acme Outbound","external_customer_id":"acme-001"}' | jq -er .id)external_customer_id helps you find your workspace later. See the
workspace reference for all fields.
Workspaces you were invited into
Section titled “Workspaces you were invited into”Your workspace role is owner, operator or viewer. Operators can manage domains,
personas, inboxes and sequencer accounts using the owner’s slots.
Workspace administration and domain purchase/renewal are owner-only. Viewers can read
resources without passwords and cannot make changes. Access changes apply to the next
request. Deliverability analytics remain scoped to the authenticated account’s own resources.
5 · Connect a Domain
Section titled “5 · Connect a Domain”Replace the example domain with one you control. This creates its infrastructure; it does not create inboxes.
REQUEST_ID=$(uuidgen)OP=$(curl --fail-with-body -sS "${H[@]}" \ -H "Idempotency-Key: $REQUEST_ID" -X POST "$BASE/workspaces/$WSP/domains/connect" \ -d '{"domains":[{"name":"example-outreach.com","external_id":"acme-domain-1"}]}' \ | jq -er .id)
curl --fail-with-body -sS "${H[@]}" "$BASE/operations/$OP" | jqRead the returned domain ID from metadata.domains once available; save it as DOM.
A connect request accepts up to 50 domains. Validation and quota refusals reject the batch
before creating resources.
Get the nameservers and delegate them
Section titled “Get the nameservers and delegate them”curl --fail-with-body -sS "${H[@]}" "$BASE/domains/$DOM" \ | jq '{id, state, nameservers, health}'Set the returned nameservers at your registrar. awaiting_nameservers means action is
needed at the registrar. Wait for delegation and provisioning to finish before creating inboxes.
Domain states
Section titled “Domain states”The normal progression is pending → awaiting_nameservers / provisioning → active.
A failure returns failed; teardown uses deprovisioning → deprovisioned.
health reports independent checks as ok, failing or unmeasured. An active domain
with unmeasured checks is not a verified healthy domain.
Retry a connect that stopped short
Section titled “Retry a connect that stopped short”Inspect the failed operation first. If a domain row already exists, use
POST /domains/{dom}/reconnect.
Submitting its name to connect again returns domain_already_exists.
6 · Create Personas
Section titled “6 · Create Personas”A persona represents a sender name. Skip this step if you will supply explicit inbox addresses.
REQUEST_ID=$(uuidgen)PER=$(curl --fail-with-body -sS "${H[@]}" \ -H "Idempotency-Key: $REQUEST_ID" -X POST "$BASE/workspaces/$WSP/personas" \ -d '{"first_name":"Ada","last_name":"Lovelace","external_id":"acme-ada"}' | jq -er .id)7 · Create Inboxes
Section titled “7 · Create Inboxes”The domain must be active and ready. Supply exactly one of from_personas or inboxes.
The resulting capacity-occupying total must be 50, 75 or 150 inboxes per domain. A fresh domain needs one of those batch sizes. Smaller top-ups can be valid, such as adding one to 49 or 25 to 50. Domain capacity, shared tenant headroom and paid slots are checked separately; a request is accepted as a whole or refused.
From a Persona
Section titled “From a Persona”REQUEST_ID=$(uuidgen)OP=$(curl --fail-with-body -sS "${H[@]}" \ -H "Idempotency-Key: $REQUEST_ID" -X POST "$BASE/domains/$DOM/inboxes" \ -d "{\"from_personas\":[{\"persona_id\":\"$PER\",\"count\":50}]}" | jq -er .id)The service generates distinct available addresses from the sender’s name.
By explicit address
Section titled “By explicit address”Alternatively, provide the complete batch in inboxes. For example, generate 50
explicit addresses for a fresh domain:
BODY=$(jq -n '{inboxes: [range(1; 51) | {local_part: ("sender" + tostring)}]}')REQUEST_ID=$(uuidgen)OP=$(curl --fail-with-body -sS "${H[@]}" \ -H "Idempotency-Key: $REQUEST_ID" -X POST "$BASE/domains/$DOM/inboxes" \ -d "$BODY" | jq -er .id)Run one creation example, not both. See the inbox creation contract for address rules and capacity errors.
Watch them come up
Section titled “Watch them come up”Poll the returned operation and list the inboxes:
curl --fail-with-body -sS "${H[@]}" "$BASE/inboxes?domain_id=$DOM&limit=100" \ | jq '.data[] | {id, email, state, sequencer}'Continue pagination if has_more is true. Provisioning moves inboxes from pending
to provisioning to active, or failed. Operation metadata reports requested,
active and failed counts. Read isolation_group for shared current placement; it is
not a health verdict. See delivery diagnostics.
Retrieving the SMTP password
Section titled “Retrieving the SMTP password”GET /domains/{dom} returns a sealed domain smtp_password; GET /inboxes/{inb}
returns a sealed inbox password when your API key belongs to a workspace Owner or Operator
with permission to export mailboxes. Lists omit credentials. Decrypt locally with the
downloaded Secret file:
curl --fail-with-body -sS "${H[@]}" "$BASE/domains/$DOM" \ | jq -r .smtp_password.ciphertext | age -d -i "$SEC"8 · Optional: connect inboxes to your sequencer
Section titled “8 · Optional: connect inboxes to your sequencer”Three actions are separate: register the provider account, bind a destination, then upload. Supported providers include Instantly, Smartlead, PlusVibe, EmailBison and Salesforge. Binding requires permission to manage sequencers in the workspace. Uploading requires permission to manage mailboxes. Owners and Operators have both permissions.
Register the sequencer account
Section titled “Register the sequencer account”Register once with POST /provider-accounts.
Credentials are checked before saving; the response lists reachable sequencer workspaces.
Use the returned pra_… ID and select the intended workspace.
{ "workspace_id": "wsp_REPLACE_WITH_YOUR_WORKSPACE_ID", "provider": "instantly", "api_key": "YOUR_INSTANTLY_API_KEY", "sequencer_workspace": "Acme Outbound"}Each provider needs an API key; EmailBison (bison) also needs its instance URL.
Provider secrets can be sealed to a platform key from GET /encryption-keys and are never
returned. Rotate them through PATCH /provider-accounts/{pra}.
Salesforge uses its Salesforge key for Outlook OAuth uploads. A Warmforge key is optional and applies to warmup only. See Salesforge connection details when setting up that provider.
Bind a domain, then upload
Section titled “Bind a domain, then upload”REQUEST_ID=$(uuidgen)curl --fail-with-body -sS "${H[@]}" -H "Idempotency-Key: $REQUEST_ID" \ -X POST "$BASE/domains/$DOM/sequencers" \ -d "{\"provider_account_id\":\"$PRA\",\"sequencer_workspace\":\"Acme Outbound\"}" | jq
REQUEST_ID=$(uuidgen)OP=$(curl --fail-with-body -sS "${H[@]}" -H "Idempotency-Key: $REQUEST_ID" \ -X POST "$BASE/inboxes/upload" \ -d "{\"workspace_id\":\"$WSP\",\"domain_ids\":[\"$DOM\"],\"provider_account_id\":\"$PRA\"}" \ | jq -er .id)Adding a destination preserves other bindings. A domain supports one account per provider.
Always name provider_account_id when several destinations exist. Domains in one upload
must share the builders.ac workspace and selected sequencer destination.
Poll the operation. A partial upload fails with inbox_upload_partial; preserve successful
connections and inspect the recorded counts before retrying. A succeeded operation
connected every requested inbox. Each binding in the domain’s sequencers array reports
its own upload counts and whether it owns warmup.
The singular PUT /domains/{dom}/sequencer and DELETE /domains/{dom}/sequencer are
legacy operations for zero or one binding. Use the plural endpoints for new integrations.
Unbinding removes local links, not remote sequencer mailboxes. Adding a destination does
not change the warmup owner; warmup configuration still requires the dashboard.
9 · Optional: redirect and clone
Section titled “9 · Optional: redirect and clone”Use PUT /domains/{dom}/redirect with an HTTPS target_url to redirect web visitors.
Then use POST /domains/{dom}/clone to host a copy of that target. Poll any returned
operation and read redirect.state for deployment progress.
See Set a redirect and Clone a page for complete request schemas.
10 · Tearing down
Section titled “10 · Tearing down”Destructive HTTP requests need a sealed proof.
| Action | Request |
|---|---|
| Remove inboxes | POST /inboxes/deprovision with inbox_ids (up to 100) |
| Remove one destination | DELETE /domains/{dom}/sequencers/{pra} |
| Remove a provider account | DELETE /provider-accounts/{pra} |
| Remove a domain | DELETE /domains/{dom} |
| Remove a persona | DELETE /personas/{per} |
| Remove an empty workspace | DELETE /workspaces/{wsp} |
A deprovisioning inbox still occupies capacity until it is deprovisioned. Domain deletion removes its infrastructure and releases its slots. An unbound provider account can be removed; a workspace must be empty before deletion. Keep polling asynchronous teardown until its operation finishes.
Reference
Section titled “Reference”Destructive calls need a proof
Section titled “Destructive calls need a proof”- Send the intended request without
Sealed-Proof. - On a proof challenge, read the base64url-encoded
Sealed-Nonceheader and decrypt it locally with the API Secret usingage. - Repeat the identical request, including the same idempotency key and body, with the
resulting plaintext in
Sealed-Proof.
The nonce is single-use and request-bound. A 403 without a challenge is an access refusal.
MCP handles destructive authorization differently; see MCP destructive operations.
Shell example: answer a domain-deletion proof challenge
REQUEST_PATH="$BASE/domains/$DOM"HEADERS=$(mktemp)BODY=$(mktemp)curl -sS "${H[@]}" -D "$HEADERS" -o "$BODY" -X DELETE "$REQUEST_PATH"NONCE=$(awk 'tolower($1)=="sealed-nonce:" {print $2}' "$HEADERS" | tr -d '\r')if [ -z "$NONCE" ]; then cat "$BODY" rm -f "$HEADERS" "$BODY" exit 1fi
# Inspect the response before continuing. Only decrypt an actual Sealed-Nonce.PROOF=$(printf '%s' "$NONCE" | python3 -c 'import base64, sysv = sys.stdin.read().removeprefix("age-v1.")sys.stdout.buffer.write(base64.urlsafe_b64decode(v + "=" * (-len(v) % 4)))' | age -d -i "$SEC")curl --fail-with-body -sS "${H[@]}" -H "Sealed-Proof: $PROOF" \ -X DELETE "$REQUEST_PATH" | jqrm -f "$HEADERS" "$BODY"Errors are RFC 9457 problems
Section titled “Errors are RFC 9457 problems”Branch on code, keep correlation_id for support, and follow retry guidance. A transport
retry reuses the original idempotency key; a deliberate new operation uses a new one.
Unknown error codes should be handled by HTTP status rather than crashing the client.
Browse the error catalogue
| Code | Status | Retryable | Meaning |
|---|---|---|---|
authentication_required | 401 | No | Missing or unknown API Key |
invalid_api_key | 401 | No | The key was recognised but is revoked or expired |
account_inactive | 403 | No | The key is valid but the account is not active — talk to us |
owner_only | 403 | No | Only the workspace owner can do this; you are an operator here |
insufficient_role | 403 | No | Your role in this workspace does not allow this; a viewer can only read |
insufficient_proof | 403 | Yes | Open the Sealed-Nonce and retry |
not_found | 404 | No | Unknown or not yours — never 403 for ownership |
validation_error | 422 | No | See the field-keyed errors map |
idempotency_key_required | 400 | No | A POST needs the header |
idempotency_mismatch | 422 | No | That key was already used for a different request body |
idempotency_in_progress | 409 | Yes | Same key still running; wait and re-poll |
external_id_conflict | 409 | No | That external_id is already in use |
persona_in_use | 409 | No | An inbox references the Persona |
workspace_archived | 409 | No | Unarchive it before creating anything in it |
domain_not_ready | 409 | Yes | Poll the connect Operation, then retry with a new Idempotency-Key |
inbox_address_unavailable | 409 | No | That address is taken |
rate_limit_exceeded | 429 | Yes | See retry_after |
operation_cancelled | 409 | No | Inside the error of an Operation you cancelled |
operation_failed | 500 | Yes | Inside an Operation's error |
resource_operation_in_progress | 409 | Yes | Another Operation holds the resource; body names operation_id |
invalid_sealed_value | 422 | No | A sealed field did not open — seal to a key from GET /encryption-keys |
encryption_keys_unavailable | 503 | Yes | Key discovery is briefly down; retry |
service_unavailable | 503 | Yes | Temporary; retry |
internal_error | 500 | Yes | Quote correlation_id to us |
workspace_limit_reached | 409 | No | Body names limit and count |
workspace_not_empty | 409 | No | Body's counts names what is still in the way |
workspace_is_default | 409 | No | The default workspace is permanent |
workspace_last_active | 409 | No | An account keeps at least one active workspace |
nameservers_not_delegated | 409 | No | The nameservers we issued were never set at the registrar |
external_id_immutable | 409 | No | Set once, at creation; it cannot be moved |
domain_already_exists | 409 | No | You hold it; body names the domain_id |
domain_unavailable | 409 | No | Held elsewhere on the platform |
resource_quota_exceeded | 409 | No | Not enough mailbox slots |
domain_inbox_capacity_exceeded | 409 | No | Body names limit, used, available and requested |
domain_inbox_count_invalid | 409 | No | Use allowed_additions to reach 50, 75 or 150 Inboxes |
domain_not_active | 409 | No | The verb needs state: active |
domain_traffic_unavailable | 409 | Yes | No Cloudflare DNS mapping yet |
domain_traffic_conflict | 409 | No | Existing website configuration conflicts |
redirect_not_configured | 409 | No | Clone needs a redirect target first |
domain_not_reconnectable | 409 | No | Only a connect that did not finish can be repaired; body names state |
account_not_provisioned | 409 | Yes | Your Account has no DNS capacity allocated yet; retry later |
domain_checkout_expired | 409 | No | Domain checkout expired |
domain_purchase_failed | 409 | No | Domain purchase failed |
not_implemented | 501 | No | renew in v1alpha1 |
provider_account_in_use | 409 | No | Provider account is in use |
provider_credentials_invalid | 422 | No | Provider credentials rejected |
provider_unreachable | 503 | Yes | Provider unreachable |
no_inboxes_to_upload | 409 | No | No inboxes to upload |
domains_not_bound | 422 | No | Domains have no sequencer |
multiple_sequencers | 409 | No | Multiple sequencers connected |
same_provider | 409 | No | Provider already connected |
sequencer_selection_required | 422 | No | Choose a sequencer |
sequencer_targets_mixed | 422 | No | Sequencer targets differ |
inbox_upload_failed | 500 | Yes | Inbox upload failed |
sequencer_limit_reached | 409 | No | Sequencer account limit reached |
sequencer_rate_limited | 503 | Yes | Sequencer rate limit |
inbox_upload_partial | 500 | Yes | Inbox upload incomplete |
inbox_create_partial | 500 | No | Inbox creation incomplete |
google_domain_not_supported | 422 | No | Not available for Google Workspace domains |
Rate limits
Section titled “Rate limits”Provisioning defaults are 120 reads and 30 mutations per minute per account, plus a
pre-authentication limit. Follow retry_after and response headers on 429.
See the reference for complete parameters and response schemas.
Known limitations in v1alpha1
Section titled “Known limitations in v1alpha1”- Domain buying and renewal return
501; register domains elsewhere and connect them. - Operation cancellation is best-effort. A cancellation request is not proof work stopped.
- A failed inbox can still occupy capacity. Inspect its operation before creating replacements or reusing addresses; do not assume a failed request left no infrastructure behind.
Webhooks
Section titled “Webhooks”Provisioning has no public webhook subscription yet. Poll GET /operations/{op} for progress.