API reference / Inboxes
Create an inbox
Create an inbox, optionally in a named group. Reuse the same username to retry setup. Retries preserve the existing group; use updateInbox to move it.
POST/v1/inboxes
Requires an API key with the inboxes:write scope. MCP tool: create_inbox. CLI: goshenemail inboxes create.
Request
Body
| Field | Type | Required | Notes |
|---|---|---|---|
username | string | Yes | up to 64 characters |
domain | string | up to 253 characters | |
displayName | string | up to 200 characters | |
group | string | 1–64 characters |
Response
| Field | Type | Notes |
|---|---|---|
inboxId | string | |
address | string | |
displayName | string | |
createdAt | string | |
group | string | null | |
deliveryStatus | "pending" | "ready" | |
setupAvailable | boolean |
Errors return { "error": { "code", "message", "transient" } } with a 4xx or 5xx status. See Errors.
Examples
curl
curl "https://api.goshenemail.com/v1/inboxes" \
-H "Authorization: Bearer $GOSHENEMAIL_API_KEY" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"username": "research",
"displayName": "Research agent",
"group": "agents"
}'
CLI
goshenemail inboxes create --username "research" --display-name "Research agent" --group "agents"