Create a workspace
Creates a workspace for the person the request acts for, who owns it, and returns an API key for it with full scope; the secret is in api_key.key exactly once. Like every new workspace it starts as a sandbox, with its provided domain, <slug>.aiinbx.app, and goes live when its owner chooses a plan and presses Go live. A token keeps working in it at once: the workspace joins what its connection was granted. An API key acts for the person who created it; a key of a sandbox nobody has claimed acts for nobody and fails with 403 forbidden (POST /sandboxes creates one without an account). A person owns at most 20 sandboxes; past them the request fails with 403 sandbox_unavailable.
/workspacesAuthorizationBearer token (API key) · headerrequiredPass an AI Inbx API key as a Bearer token.
AIInbx-WorkspacestringWorkspace id from GET /workspaces, for an OAuth token that reaches several.
application/jsonnamestringrequiredThe workspace's name; its slug and provided domain follow it.
The workspace was created; save its key now.
workspaceobjectrequiredA workspace: the account that owns everything else.
Show propertiesHide properties
idstringrequirednamestringrequiredslugstringrequiredThe handle in console URLs. It follows the name; the provided domain keeps the slug the workspace was created with.
rolestring | nullrequiredWhat 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 propertiesHide properties
stringnulltrackingobjectrequiredWhat a domain added from now on starts with.
Show propertiesHide properties
opensbooleanrequiredclicksbooleanrequiredthread_across_addressesbooleanrequiredWhether 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.
sandboxbooleanrequiredWhether 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_livebooleanrequiredWhether the workspace is going live right now. Until it is live it answers reads and refuses every change with 409 going_live.
inboxesobject[] | nullrequiredThe 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 propertiesHide properties
objectidstringrequiredaddressstringrequiredThe address it reads and sends as.
namestring | nullrequiredThe name its mail goes out under, when one was given.
Show propertiesHide properties
stringnullspace_idstring | nullrequiredWhich space a resource is in. Null is the workspace itself — what every resource of a workspace that has no spaces says.
Show propertiesHide properties
stringnullnullcreated_atstring<date-time>requireddomainobject | nullrequiredIts provided domain, <slug>.aiinbx.app. Null when it could not be made at once; it is made shortly after.
Show propertiesHide properties
idstringrequirednamestringrequiredregionstringrequiredWhere the domain's mail is handled today. A domain carried over from the previous aiinbx reports us-east-1 until its records verify here, then the region chosen for it.
eu-central-1us-east-1space_idstring | nullrequiredWhich space a resource is in. Null is the workspace itself — what every resource of a workspace that has no spaces says.
Show propertiesHide properties
stringnullparent_idstring | nullrequiredThe wildcard this subdomain is filed under, when it is one.
Show propertiesHide properties
stringnullprovidedbooleanrequiredWhether this is the domain the workspace was given — <slug>.aiinbx.app. Verified through our own zone, so it has no records and cannot be deleted.
verified_atstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nulldkim_missing_sincestring<date-time> | nullrequiredWhen the DKIM record of this verified domain, or of its wildcard, was found missing from DNS. The domain keeps sending meanwhile. Null while the record resolves.
Show propertiesHide properties
string<date-time>nullstops_sending_atstring<date-time> | nullrequiredWhen the domain is lost if the DKIM record is not restored: 72 hours after dkim_missing_since. Then verified_at goes null and domain.lost is sent.
Show propertiesHide properties
string<date-time>nullcreated_atstring<date-time>requiredtrackingobjectrequiredShow propertiesHide properties
opensbooleanrequiredclicksbooleanrequiredrecordsobject[]Show propertiesHide properties
objectpurposestringrequiredSPFDKIMDMARCRETURN_PATHINBOUNDtypestringrequiredMXTXTCNAMEnamestringrequiredvaluestringrequiredttlintegerrequiredstatestringrequiredpendingverifiedmissinglast_checked_atstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullnullapi_keyobjectrequiredA newly issued key. The full key is returned only once.
Show propertiesHide properties
idstringrequirednamestringrequiredscopestringrequiredfullsendingreadprefixstringrequiredlast_used_atstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullcreated_atstring<date-time>requiredkeystringrequiredThe request is invalid.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe API key is missing or invalid.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe workspace has no plan (plan_required), or its plan's allowance is used up (allowance_reached).
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe 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).
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe requested resource does not exist.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe request conflicts with the resource's current state.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe request body or attachments are too large.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe request body is not JSON.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe 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.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe 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.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredAn internal error occurred.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredAn upstream mail provider failed.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequiredThe service is temporarily unavailable.
typestringrequiredtitlestringrequiredstatusintegerrequireddetailstringrequiredcodestringrequiredrequest_idstringrequiredissuesobject[]Show propertiesHide properties
objectpathstringrequiredmessagestringrequired