Skip to content

Document the inbox inactive status - #380

Merged
shalim786 merged 1 commit into
mainfrom
shabs/document-inbox-inactive
Nov 30, 2026
Merged

shalim786 merged 1 commit into
mainfrom
shabs/document-inbox-inactive

Conversation

@shalim786

Copy link
Copy Markdown
Contributor

TL;DR

The API returns status: "inactive" for an inbox with no send or receive in 30 days, but the docs only list active and deactivated. Three support tickets this month (most recently T-4163) came from customers who read inactive as "mail is stopped". This documents it.

Changes

  • fern/apis/api/definition/inboxes/__package__.yml: adds inactive to InboxStatus and describes it on the enum and on Inbox.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/main 689606466

  • shared/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) turns inactive back into active. Only deactivated blocks mail (core/schemas/inbox.ts isDeactivatedStatus).
  • newInboxesStartInactive: on usage-billed plans, a new inbox starts inactive. 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.yml is a stale export (it still says paused), so I left it alone. fern check reports 0 errors.

🤖 Generated with Claude Code

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]>
@shalim786 shalim786 added the ai-review Request automated review; whoever adds it accepts responsibility for the merge label Nov 30, 2026

@agentmail-ai-reviewer agentmail-ai-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown

@shalim786
shalim786 merged commit 7cba72d into main Nov 30, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown

📋 View the side-by-side API change review

The 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 review: false on the action.

@github-actions

Copy link
Copy Markdown

✨ 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 api-changelog-diff artifact or tag @fern Writer in #github-prs for changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request automated review; whoever adds it accepts responsibility for the merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant