Skip to content

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.

Provisioning APIv1alpha1Alpha / open for testing
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.

  • 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, curl and jq. Install the age CLI if you need to decrypt credentials or authorize destructive HTTP calls.

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.

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.

Terminal window
export BASE=https://api.builders.ac/api/provisioning/v1alpha1
export KEY=age1_REPLACE_WITH_YOUR_API_KEY
export SEC=./builders-api-credential.txt
H=(-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json')
curl --fail-with-body -sS "${H[@]}" "$BASE/me" | jq

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

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:

Terminal window
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.

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.

A workspace groups an end customer’s domains, personas and inboxes.

Terminal window
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.

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.

Replace the example domain with one you control. This creates its infrastructure; it does not create inboxes.

Terminal window
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" | jq

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

Terminal window
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.

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.

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.

A persona represents a sender name. Skip this step if you will supply explicit inbox addresses.

Terminal window
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)

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.

Terminal window
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.

Alternatively, provide the complete batch in inboxes. For example, generate 50 explicit addresses for a fresh domain:

Terminal window
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.

Poll the returned operation and list the inboxes:

Terminal window
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.

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:

Terminal window
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 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.

Terminal window
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.

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.

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.

  1. Send the intended request without Sealed-Proof.
  2. On a proof challenge, read the base64url-encoded Sealed-Nonce header and decrypt it locally with the API Secret using age.
  3. 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
Terminal window
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 1
fi
# Inspect the response before continuing. Only decrypt an actual Sealed-Nonce.
PROOF=$(printf '%s' "$NONCE" | python3 -c '
import base64, sys
v = 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" | jq
rm -f "$HEADERS" "$BODY"

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
CodeStatusRetryableMeaning
authentication_required401NoMissing or unknown API Key
invalid_api_key401NoThe key was recognised but is revoked or expired
account_inactive403NoThe key is valid but the account is not active — talk to us
owner_only403NoOnly the workspace owner can do this; you are an operator here
insufficient_role403NoYour role in this workspace does not allow this; a viewer can only read
insufficient_proof403YesOpen the Sealed-Nonce and retry
not_found404NoUnknown or not yours — never 403 for ownership
validation_error422NoSee the field-keyed errors map
idempotency_key_required400NoA POST needs the header
idempotency_mismatch422NoThat key was already used for a different request body
idempotency_in_progress409YesSame key still running; wait and re-poll
external_id_conflict409NoThat external_id is already in use
persona_in_use409NoAn inbox references the Persona
workspace_archived409NoUnarchive it before creating anything in it
domain_not_ready409YesPoll the connect Operation, then retry with a new Idempotency-Key
inbox_address_unavailable409NoThat address is taken
rate_limit_exceeded429YesSee retry_after
operation_cancelled409NoInside the error of an Operation you cancelled
operation_failed500YesInside an Operation's error
resource_operation_in_progress409YesAnother Operation holds the resource; body names operation_id
invalid_sealed_value422NoA sealed field did not open — seal to a key from GET /encryption-keys
encryption_keys_unavailable503YesKey discovery is briefly down; retry
service_unavailable503YesTemporary; retry
internal_error500YesQuote correlation_id to us
workspace_limit_reached409NoBody names limit and count
workspace_not_empty409NoBody's counts names what is still in the way
workspace_is_default409NoThe default workspace is permanent
workspace_last_active409NoAn account keeps at least one active workspace
nameservers_not_delegated409NoThe nameservers we issued were never set at the registrar
external_id_immutable409NoSet once, at creation; it cannot be moved
domain_already_exists409NoYou hold it; body names the domain_id
domain_unavailable409NoHeld elsewhere on the platform
resource_quota_exceeded409NoNot enough mailbox slots
domain_inbox_capacity_exceeded409NoBody names limit, used, available and requested
domain_inbox_count_invalid409NoUse allowed_additions to reach 50, 75 or 150 Inboxes
domain_not_active409NoThe verb needs state: active
domain_traffic_unavailable409YesNo Cloudflare DNS mapping yet
domain_traffic_conflict409NoExisting website configuration conflicts
redirect_not_configured409NoClone needs a redirect target first
domain_not_reconnectable409NoOnly a connect that did not finish can be repaired; body names state
account_not_provisioned409YesYour Account has no DNS capacity allocated yet; retry later
domain_checkout_expired409NoDomain checkout expired
domain_purchase_failed409NoDomain purchase failed
not_implemented501Norenew in v1alpha1
provider_account_in_use409NoProvider account is in use
provider_credentials_invalid422NoProvider credentials rejected
provider_unreachable503YesProvider unreachable
no_inboxes_to_upload409NoNo inboxes to upload
domains_not_bound422NoDomains have no sequencer
multiple_sequencers409NoMultiple sequencers connected
same_provider409NoProvider already connected
sequencer_selection_required422NoChoose a sequencer
sequencer_targets_mixed422NoSequencer targets differ
inbox_upload_failed500YesInbox upload failed
sequencer_limit_reached409NoSequencer account limit reached
sequencer_rate_limited503YesSequencer rate limit
inbox_upload_partial500YesInbox upload incomplete
inbox_create_partial500NoInbox creation incomplete
google_domain_not_supported422NoNot available for Google Workspace domains

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.

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

Provisioning has no public webhook subscription yet. Poll GET /operations/{op} for progress.