Create a workspace
POST
https://myagentmail.com/v1/workspacesFor agents View as Markdown
Requires a tenant master key (tk_...). Workspaces are isolation containers — inboxes and domains created in one cannot be seen from another.
Request body
Content-Type: application/json
namerequired string | |
slugstring |
Responses
201application/jsonCreated
idrequired string | format: uuid |
namerequired string | |
slugrequired string | |
isDefaultrequired boolean | |
inboxCountinteger | |
domainCountinteger | |
createdAtstring | format: date-time |
400application/jsonRequest body failed schema validation
errorrequired string | |
codestring |
401application/jsonMissing or invalid API key
errorrequired string | |
codestring |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.