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
| Name | Type | Required | Notes |
|---|---|---|---|
inboxId | string (email) | Yes | up to 254 characters |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
group | string | null | Yes |
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/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"