Skip to Content
📘 Infrabox developer docs — API reference for mailbox & domain infrastructure.
API ReferenceWorkspaces

Workspaces

Workspaces scope everything else in this API — domains, mailboxes, sequencers, orders. A team can run more than one (agencies commonly create one per client).

MethodPathDescription
GET/v1/api/workspaces/listList workspaces on your team
GET/v1/api/workspaces/detailsGet one workspace’s details
POST/v1/api/workspaces/createCreate a workspace
PUT/v1/api/workspaces/updateUpdate a workspace
DELETE/v1/api/workspaces/deleteDelete a workspace
POST/v1/api/workspaces/webhookSet/update a workspace’s webhook URL
POST/v1/api/workspaces/inviteInvite a member to a workspace

Create a workspace

curl -X POST https://api.infrabox.software/v1/api/workspaces/create \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Client A", "webhook_url": "https://your-app.com/webhooks/infrabox" }'

workspaces/create and /list don’t need X-Workspace-Id (there’s no workspace to scope to yet / you’re listing across all of them) — every other workspace endpoint does.

Invite a member

curl -X POST https://api.infrabox.software/v1/api/workspaces/invite \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "role": "member", "workspace_uid": "ws_123456789" }'

role is admin or member. Set resend: true to re-send an invitation that was already sent.

Errors

StatusMeaning
400Invalid body (e.g. missing name on create)
401Missing/invalid API key
404Workspace not found
500Internal error
Last updated on