Repository navigation
feat(inboxes): match the spec to the stabilized Inboxes API - #137
Merged
Merged
Conversation
The inbox, label and thread routes now take the inbox ID or its email address in the path. Agent, draft and email routes still take only the ID. Add a shared InboxIdOrEmailAddress path parameter for these routes. Monorepo PRs: #12843, #12846, #12849, #12850, #12851, #12852, #12853, #12854, #12855, #12857, #12858, #12764.
Add GET /inboxes/{inbox_id}/emails, GET /inboxes/{inbox_id}/emails/{email_id}
and POST /inboxes/{inbox_id}/emails/{email_id}/reply. The list route takes
the thread in a required thread_id query parameter. The reply response adds
object: email. The thread routes stay, and the code does not deprecate them.
Monorepo PRs: #12859, #12864, #12866.
The agent request and response use actions. The archive and trash actions are now archive and move_to_trash. The API rejects the old names archive_thread and delete_thread on update, and returns stored old names under the new ones. Monorepo PRs: #12724, #12736, #12742, #12830.
Retrieve inbox and the inbox.created and inbox.updated webhooks add updated_at. List inboxes adds created_at and updated_at to each item. Labels and inbox emails keep their public fields: the updated_at from #12704, #12714 and #12790 stays inside the internal API. Monorepo PRs: #12711.
Update draft now returns only object and id. A reply draft sent with an empty subject takes the thread subject with a Re: prefix. A standalone draft still needs a subject to send. Monorepo PRs: #12729, #12621.
Search results no longer carry highlights. matched_email_id is now the same id that the list emails endpoints return. Monorepo PRs: #12612, #12599.
A sending access key can now reply, forward, create a draft and send a draft. A key limited to one domain must match the inbox domain, or the request returns a 403. Every other Inboxes route still needs full access. Monorepo PRs: #12641.
An inbox address cannot contain + before the @. Reply and forward no longer cap the number of attachments, only the 25 MB of content. The request rejects only a path that does not start with http or that starts with http://localhost:. Other path problems fail the email at send time. Monorepo PRs: #12776, #12762.
The API accepts a preset key or custom text (inboxAgentToneSchema in resend-monorepo#12580). The enum rejected the custom tones that inboxes already store.
Add the add, set and remove thread label operations from resend-monorepo#12778. Remove add_label_ids and remove_label_ids from update thread. The API now ignores them. A label webhook event can now list several labels.
resend-monorepo#12892 accepts the inbox ID or email address on the agent, draft, email and thread email routes. Use the shared InboxIdOrEmailAddress parameter on all 15 of them.
This reverts 93968cd. The contract is the four presets only. The API still accepts custom text, which is an API bug to fix.
The Node.js SDK calls only the thread email routes, so the spec documents those for now. The API keeps the routes without the thread segment.
dielduarte
approved these changes
Oct 16, 2026
… note Reply returns a 422 without html or text, as the Node.js SDK types it. The matched_email_id note still counted the removed list emails route.
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Match the Inboxes part of
resend.yamlto the public API on resend-monorepomainof 2026-10-16 17:20 UTC.Inbox identifier
Inbox, label and thread routes take the Inbox ID or the inbox email address. The new
InboxIdOrEmailAddressparameter documents it. Agent, draft and email routes take both too, since #12892 (see the Identifier section). Monorepo #12843, #12846, #12849, #12850, #12851, #12852, #12853, #12854, #12855, #12857, #12858, #12764.Email routes without the thread segment
Not in the spec for now. The API added
GET /inboxes/{inbox_id}/emails,GET /inboxes/{inbox_id}/emails/{email_id}andPOST /inboxes/{inbox_id}/emails/{email_id}/reply(resend-monorepo #12859, #12866, #12864), but the Node.js SDK calls only the thread email routes. The spec follows the SDK until the team decides on these routes (MES-2753 was canceled).Agent actions
enabled_actionsis nowactions.archive_threadanddelete_threadare nowarchiveandmove_to_trash. Monorepo #12724, #12736, #12830, #12742.Timestamps
Inboxes add
updated_at. List items addcreated_atandupdated_at. Labels and emails do not change. #12704, #12714 and #12790 are internal only. Monorepo #12711.Drafts
Update draft returns only
objectandid. A reply draft sent without a subject takes the thread subject withRe:. Monorepo #12729, #12621.Search
Remove
highlights.matched_email_idis now the emailid. Monorepo #12612, #12599.Access keys
The Inboxes tag lists the five routes that accept a sending access key. Monorepo #12641.
Small fixes
No
+in the address local part. No 10-file cap on reply and forward. Thepathrule matches the validator. Monorepo #12776, #12762.Verified
origin/mainofapps/public-apiinbox routes, types and auth middleware,packages/inboxes,packages/inbox-agent-schemasand the internal API drafts.main:archive200,archive_thread422,enabled_actionsalone 422.thread_id422, get 200, unknown email 404. New reply 200 withobject, thread reply 200 withidonly.objectandid. Reply draft without subject sent asRe: spec check 1016.+address 422. Search has nohighlights, andmatched_email_idequals the emailid.redocly lint: 0 errors, as onmain. The three new operations add three warnings from the 4xx rule.Not in this PR
Open monorepo PRs: #12743, #12744, #12834, #12152.
Breaking for clients
enabled_actionsis renamed toactions.archive_threadis renamed toarchive, anddelete_threadtomove_to_trash. The old names return 422.{object, id}, not the full draft.highlights.matched_email_idnow holds the emailid.inbox_idlosesformat: uuidon 27 operations.add_label_idsorremove_label_ids. Use the thread label operations.Agent tone
tonestays the enum of the four presets from #136. That is the intended contract. The live API still accepts custom text, which is an API bug, not part of the contract.Thread labels
Thread labels move to their own endpoints. Monorepo #12778, merged 2026-10-16.
inboxes/add-thread-labels:POST /inboxes/{inbox_id}/threads/{thread_id}/labels. Bodylabels, 1 to 10 label IDs. Labels already on the thread stay.inboxes/set-thread-labels:PUT /inboxes/{inbox_id}/threads/{thread_id}/labels. Bodylabels, 0 to 100 label IDs. It replaces every label in one atomic change. An empty array clears them.inboxes/remove-thread-label:DELETE /inboxes/{inbox_id}/threads/{thread_id}/labels/{label_id}. A label that is not on the thread returns 200.{ object: "list", data: [label] }with every label on the thread after the change. They accept the inbox ID or address.Label not found.and changes nothing. An unknown thread returns 404Thread not found.. A badlabelsarray returns 422.add_label_idsandremove_label_ids. The API strips them, so a body with only those fields returns 422validation_error.inbox.thread.labels.updatedcan now list several labels inaddedandremoved. A request that changes nothing sends no event. The other 13inbox.*payloads do not change.add_label_ids422. The temporary label was deleted and the fixture thread kept its labels.Identifier
Agent, draft, email and thread email routes now take the Inbox ID or the inbox email address. Monorepo #12892, merged 2026-10-16.
InboxIdOrEmailAddress:get-agent,update-agent, the six draft operations,list-thread-emails,get-thread-email,reply-thread-emailandforward-thread-email./inboxes/{inbox_id}now accepts both.