API reference / Inboxes

Update an inbox

Move an inbox to a named group, or set group to null to remove it. Groups organize inboxes within one account and do not restrict key permissions.

PATCH/v1/inboxes/{inboxId}

Requires an API key with the inboxes:write scope. MCP tool: update_inbox. CLI: goshenemail inboxes update.

Request

Path parameters

NameTypeRequiredNotes
inboxIdstring (email)Yesup to 254 characters

Body

FieldTypeRequiredNotes
groupstring | nullYes

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/research%40agents.goshenemail.com" \
  -H "Authorization: Bearer $GOSHENEMAIL_API_KEY" \
  -X PATCH \
  -H "Content-Type: application/json" \
  -d '{
    "group": "agents"
  }'

CLI

goshenemail inboxes update --inbox-id "research@agents.goshenemail.com" --group "agents"