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

FieldTypeRequiredNotes
usernamestringYesup to 64 characters
domainstringup to 253 characters
displayNamestringup to 200 characters
groupstring1–64 characters

Response

FieldTypeNotes
inboxIdstring
addressstring
displayNamestring
createdAtstring
groupstring | null
deliveryStatus"pending" | "ready"
setupAvailableboolean

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"