Repository navigation
Document the inbox inactive status - #380
Conversation
The API returns status "inactive" for an inbox with no send or receive in 30 days, but the docs listed only active and deactivated, so customers read it as mail being stopped. Add it to the InboxStatus enum and explain on the Inboxes page that it stops nothing and clears on the next send or receive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Automated review: approved
The change documents the new inactive status consistently in the API definition and inbox guide. I found no blocking issue in the diff.
This is an automated review by gpt-6-luna, not a human review. Reviewer rules at 5e53d33d4a2da2bcf40c147319672db1ba82c7c5, commit reviewed 0f9955c. Requested by @shalim786, who by adding the ai-review label states they reviewed this change and accept responsibility for merging it on automated approval.
📋 View the side-by-side API change reviewThe link expires in 7 days. 🔒 Your API specs are encrypted in CI before they're uploaded. The decryption key stays in this link's URL fragment (after the #), which browsers never send to a server, so oasdiff cannot read your specs. How it works → Posted automatically by the oasdiff GitHub Action. To turn this off (no spec upload, no comment), set |
✨ API Changes# API Changelog n/a vs. n/a
## API Changes
### GET /v0/inboxes
- :warning: added the new `inactive` enum value to the `inboxes/items/status` response property for the response status `200`
### POST /v0/inboxes
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
- added the new `inactive` enum value to the request property `status`
### GET /v0/inboxes/search
- :warning: added the new `inactive` enum value to the `inboxes/items/status` response property for the response status `200`
### GET /v0/inboxes/{inbox_id}
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
### PATCH /v0/inboxes/{inbox_id}
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
- added the new `inactive` enum value to the request property `status`
### GET /v0/pods/{pod_id}/inboxes
- :warning: added the new `inactive` enum value to the `inboxes/items/status` response property for the response status `200`
### POST /v0/pods/{pod_id}/inboxes
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
- added the new `inactive` enum value to the request property `status`
### GET /v0/pods/{pod_id}/inboxes/search
- :warning: added the new `inactive` enum value to the `inboxes/items/status` response property for the response status `200`
### GET /v0/pods/{pod_id}/inboxes/{inbox_id}
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
### PATCH /v0/pods/{pod_id}/inboxes/{inbox_id}
- :warning: added the new `inactive` enum value to the `status` response property for the response status `200`
- added the new `inactive` enum value to the request property `status`💡 Download |
TL;DR
The API returns
status: "inactive"for an inbox with no send or receive in 30 days, but the docs only listactiveanddeactivated. Three support tickets this month (most recently T-4163) came from customers who readinactiveas "mail is stopped". This documents it.Changes
fern/apis/api/definition/inboxes/__package__.yml: addsinactivetoInboxStatusand describes it on the enum and onInbox.status.fern/pages/core-concepts/inboxes.mdx: adds an "Inactive inboxes" subsection under Deactivating an inbox, which support replies can link to.Behavior, from agentmail-api
origin/main689606466shared/inbox-activity.ts:INBOX_ACTIVITY_WINDOW_HOURS = 30 * 24. The expiry sweep (helpers/inbox-activity-expiry.ts) moves an inbox from active to inactive once that window passes.helpers/inbox-activity.ts: the next send (helpers/message.ts) or receipt (helpers/received-mail.ts) turnsinactiveback into active. Onlydeactivatedblocks mail (core/schemas/inbox.tsisDeactivatedStatus).newInboxesStartInactive: on usage-billed plans, a new inbox startsinactive. That's why the page says "on some plans".Risk
This is additive. The API already accepts and returns
inactive(InboxStatusSchema = z.enum(['active', 'inactive', 'deactivated'])), so the next SDK regeneration adds a literal the server already sends.openapi/openapi.ymlis a stale export (it still sayspaused), so I left it alone.fern checkreports 0 errors.🤖 Generated with Claude Code