Skip to content
AI Inbx
Esc
↑↓navigate↵open⌘Jpreview

Go live

Makes a sandbox a live workspace: from then on its mail is delivered and received for real and billed to its plan. Everything the sandbox produced is removed first: emails, threads, attachments, events and webhook deliveries, suppressions, pacing counters, and every space with everything in it. With keep, the default, API keys, webhook endpoints, domains, pacing rules and settings stay; kept domains go back to pending and verify through their DNS records like any domain added to a live workspace. The workspace needs a plan, a free one included; without one the request fails with 402 plan_required. A sandbox nobody has claimed fails with 403 forbidden: a person claims it first, through a claim link (POST /claim-links). It returns at once with going_live true, and the workspace stays a sandbox until the removal is done, usually within minutes. Meanwhile every API change fails with 409 going_live, and reads answer what the workspace keeps outside spaces, such as domains, API keys and webhook endpoints, while its mail and everything in its spaces are being removed. A workspace that is already live fails with 409 already_live. Admin only.

POST/workspace/go-live
Authorization
AuthorizationBearer token (API key) · headerrequired

Pass an AI Inbx API key as a Bearer token.

Header parameters
AIInbx-Workspacestring

Workspace id from GET /workspaces, for an OAuth token that reaches several.

min length 1
Request body
application/json
keepboolean

Keep what is set up: API keys, webhook endpoints, domains, pacing rules and settings. False empties the workspace: every API key is revoked, this one too, webhook endpoints, domains and rules are removed and settings go back to their defaults. The provided domain and its built-in rules stay either way.

default: true
Responses
202

The workspace is going live.

idstringrequired
namestringrequired
slugstringrequired

The handle in console URLs. It follows the name; the provided domain keeps the slug the workspace was created with.

rolestring | nullrequired

What the caller may do here: the role of the person a token acts for. Null for an API key, which acts with its creator's current rights: admin-only operations answer 403 once the creator is no longer an admin or has left. In a workspace nobody is a member of yet, made with POST /sandboxes, a key acts as its admin; once a person claims it, its keys become that person's and act with their rights, an owner's from the claim on.

Show properties
Any of:
string
string
null
null
trackingobjectrequired

What a domain added from now on starts with.

Show properties
opensbooleanrequired
clicksbooleanrequired
thread_across_addressesbooleanrequired

Whether an email without reply headers that arrives outside spaces can join any matching conversation outside spaces. Off, the default, it joins only a conversation the address it arrived at already took part in: sent in, received in, or was the Reply-To of. An email with reply headers always joins the conversation it answers. Turn it on when several of your addresses write to the same contacts in the same conversations.

sandboxbooleanrequired

Whether the workspace is a sandbox: the whole API, with no mail delivered, none arriving from outside and nothing billed. POST /workspace/go-live makes it live.

going_livebooleanrequired

Whether the workspace is going live right now. Until it is live it answers reads and refuses every change with 409 going_live.

inboxesobject[] | nullrequired

The inboxes the caller is held to here, when it was connected as an inbox: it reads their mail and sends as them, and nothing else. Null for a connection to the whole workspace, and for an API key.

Show properties
Any of:
object[]
Array of object
idstringrequired
matches ^[a-z]+_[0-9a-f]{32}$
addressstringrequired

The address it reads and sends as.

namestring | nullrequired

The name its mail goes out under, when one was given.

Show properties
Any of:
string
string
null
null
space_idstring | nullrequired

Which space a resource is in. Null is the workspace itself — what every resource of a workspace that has no spaces says.

Show properties
Any of:
string
string
null
null
null
null
created_atstring<date-time>required
matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
400

The request is invalid.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
401

The API key is missing or invalid.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
402

The workspace has no plan (plan_required), or its plan's allowance is used up (allowance_reached).

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
403

The API key or token does not have the required scope, the operation is admin-only and the person it acts for (a key's creator) is not an admin, the token is connected as an inbox and the operation is not one an inbox may use, the workspace is a sandbox and the operation needs a live one or would pass one of a sandbox's ceilings, such as its 10 custom domains (sandbox_unavailable, detail names the limit), or the workspace is live and the operation simulates mail for a sandbox (sandbox_only).

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
404

The requested resource does not exist.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
409

The request conflicts with the resource's current state.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
413

The request body or attachments are too large.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
415

The request body is not JSON.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
422

The request body failed validation (invalid_request, with issues naming each field), or names something the request cannot use, such as an attachment or a recipient the workspace does not have; code says which.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
429

The organisation's request budget is spent (too_many_requests), an upstream mail provider is throttling (rate_limited), or a sandbox has used its emails for the day (sandbox_limit_reached), which going live lifts.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
500

An internal error occurred.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
502

An upstream mail provider failed.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
503

The service is temporarily unavailable.

typestringrequired
titlestringrequired
statusintegerrequired
min -9007199254740991 · max 9007199254740991
detailstringrequired
codestringrequired
request_idstringrequired
issuesobject[]
Show properties
Array of object
pathstringrequired
messagestringrequired
Request
import AIInbx from "aiinbx"

const aiinbx = new AIInbx()

const response = await aiinbx.workspaces.goLive({ keep: true })
Response
{
  "id": "string",
  "name": "string",
  "slug": "string",
  "role": "owner",
  "tracking": {
    "opens": true,
    "clicks": true
  },
  "thread_across_addresses": true,
  "sandbox": true,
  "going_live": true,
  "inboxes": [
    {
      "id": "string",
      "address": "string",
      "name": "string",
      "space_id": "string"
    }
  ],
  "created_at": "2019-08-24T14:15:22Z"
}