use resend_rs::{ list_opts::ListOptions, types::ListInboxThreadsOptions, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _threads = resend .inboxes .list_threads( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", ListInboxThreadsOptions::new(), ListOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.ListInboxThreadsResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ListInboxThreadsResponseSuccess data = resend.inboxes().threads() .list("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxThreadListAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ) );Console.WriteLine( "Nr Threads={0}", resp.Content.Data.Count );
curl -X GET 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1/threads' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend inboxes threads list b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1
use resend_rs::{ list_opts::ListOptions, types::ListInboxThreadsOptions, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _threads = resend .inboxes .list_threads( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", ListInboxThreadsOptions::new(), ListOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.ListInboxThreadsResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ListInboxThreadsResponseSuccess data = resend.inboxes().threads() .list("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxThreadListAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ) );Console.WriteLine( "Nr Threads={0}", resp.Content.Data.Count );
curl -X GET 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1/threads' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend inboxes threads list b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1
The ID of the last thread on the current page. Returns the next, older page.
Must be a thread ID. To filter by date, use Search
Threads with start_date.
The ID of the first thread on the current page. Returns the previous, newer
page. Cannot be combined with after. Must be a thread ID. To filter by date,
use Search Threads with end_date.
To find threads by text, sender, recipient, attachment, or date, use Search
Threads.
The folder the thread lives in. Every thread sits in exactly one folder
within its inbox. You can move a thread to inbox, archive, spam, or
trash. sent is assigned automatically.
inbox: The default. The thread holds at least one received message.
archive: The thread was archived.
spam: The thread was marked as spam.
trash: The thread is scheduled for deletion in 30 days.
sent: Threads whose messages are all outbound.
import { Resend } from 'resend';const resend = new Resend('re_xxxxxxxxx');const { data, error } = await resend.inboxes.threads.list({ inboxId: 'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1',});
use resend_rs::{ list_opts::ListOptions, types::ListInboxThreadsOptions, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let _threads = resend .inboxes .list_threads( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", ListInboxThreadsOptions::new(), ListOptions::default(), ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.ListInboxThreadsResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); ListInboxThreadsResponseSuccess data = resend.inboxes().threads() .list("b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxThreadListAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ) );Console.WriteLine( "Nr Threads={0}", resp.Content.Data.Count );
curl -X GET 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1/threads' \ -H 'Authorization: Bearer re_xxxxxxxxx'
resend inboxes threads list b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Resend","description":"Resend is the email API for developers. The documentation covers the REST API, official SDKs, the CLI, the MCP server, webhooks, deliverability guides, and step-by-step quickstarts for every major language and framework.","colors":{"primary":"#000000","light":"#EBECED","dark":"#0A0C10"},"logo":{"light":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac","dark":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-white.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=3843916235739ffb9cb1d24683221341","href":"https://resend.com"},"favicon":"https://mintcdn.com/resend/ABWmVTZIHGIFNTFD/favicon.png?fit=max\u0026auto=format\u0026n=ABWmVTZIHGIFNTFD\u0026q=85\u0026s=cdbec1c9eedb30488e99d94d84999c24","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.resend.com"}},"background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"https://resend.com/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://resend.com/signup"}},"footer":{"socials":{"x":"https://x.com/resend","github":"https://github.com/resend","youtube":"https://www.youtube.com/@resendlabs","website":"https://resend.com/"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"Inter","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"vesper"}},"latex":false},"integrations":{"posthog":{"apiKey":"phc_AgEBpcQTRsBl3UgQX2U8XvimTlgdXG6YEhfvJl2cUfc","sessionRecording":false}},"contextual":{"options":["copy",{"title":"llms-full.txt","description":"View all docs as Markdown for LLMs","icon":"markdown","href":"https://resend.com/docs/llms-full.txt"},"add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"resend","hasAudioNarration":false,"actualSubdomain":"resend","customDomains":["resend.com","resend-staging.com"],"gitSource":{"type":"github","owner":"resend","repo":"resend-docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1ebf3d6a250fd1db950a4","collectionId":"d7ddd3d0-dc7d-454e-9307-88f200dd596f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1ebf3d6a250fd1db950a4"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1fd428ffbca5869286ff9","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":178},{"language":"default","tag":"API Reference","count":150},{"language":"default","tag":"Learn","count":115},{"language":"default","tag":"Guides","count":96},{"language":"default","tag":"Get started","count":57},{"language":"default","tag":"Webhooks","count":54},{"language":"default","tag":"Sending examples","count":52},{"language":"default","tag":"Domains","count":38},{"language":"default","tag":"Events reference","count":37},{"language":"default","tag":"Sending","count":32}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:not(.dark) ::selection{background-color:#0000001a}html.dark ::selection{background-color:#ffffff33}html:not(.dark) .codeblock-light .line-highlight,html:not(.dark) .codeblock-light .line-highlight:after,html:not(.dark) .codeblock-light .line-highlight:before{background:#00cc9937}html.dark .line-highlight,html.dark .line-highlight:after,html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight,html:not(.dark) .codeblock-dark .line-highlight:after,html:not(.dark) .codeblock-dark .line-highlight:before{background:#00fff61d}html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight:before{border-color:#4cd7b8}html:not(.dark) .codeblock-light .line-highlight:before{border-color:#55d799}#page-context-menu-button{padding-block:8px}.nav-logo{width:80px}@media (min-width:1024px){#navbar .flex-1:has(>a .nav-logo){flex:none!important;width:15rem}#navbar .ustify-end:has(.nav-tabs){justify-content:space-between!important;margin-left:0!important}#navbar .flex:has(>.ustify-end){flex:1!important}#navbar .nav-tabs{white-space:nowrap}}"}],"page":{"pagePath":"api-reference/inboxes/list-threads","slug":"/api-reference/inboxes/list-threads","pageMetadata":{"title":"List Threads","description":"Retrieve the threads in an inbox, filtered by folder, label, and read status.","api":"GET /inboxes/:inbox_id/threads","href":"/api-reference/inboxes/list-threads"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieve the threads in an inbox, filtered by folder, label, and read status.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ResendParamField=({children,body,path,...props})=>{const{ParamField}=_provideComponents()||{};if(!ParamField)_missingMdxReference(`ParamField`,true);const[lang,setLang]=useState(()=>{return localStorage.getItem(`code`)||`\"Node.js\"`});useEffect(()=>{const onStorage=event=>{const key=event.detail.key;if(key===`code`){setLang(event.detail.value)}};document.addEventListener(`mintlify-localstorage`,onStorage);return()=>{document.removeEventListener(`mintlify-localstorage`,onStorage)}},[]);const toCamelCase=str=>typeof str===`string`?str.replace(/[_-](\\w)/g,(_,c)=>c.toUpperCase()):str;const resolvedBody=useMemo(()=>{const value=JSON.parse(lang);return value===`Node.js`?toCamelCase(body):body},[body,lang]);const resolvedPath=useMemo(()=>{const value=JSON.parse(lang);return value===`Node.js`?toCamelCase(path):path},[path,lang]);return _jsx(ParamField,{body:resolvedBody,path:resolvedPath,...props,children})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,_MdxComponentBoundary}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A thread is a conversation within an inbox, made up of one or more messages.`}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ResendParamField`,children:_jsx(ResendParamField,{path:`inbox_id`,type:`string`,required:true,children:_jsxs(_components.p,{children:[`The Inbox ID or the inbox email address, such as `,_jsx(_components.code,{children:`support@example.com`}),`.`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsxs(ParamField,{query:`folders`,type:`string`,id:`param-folders`,children:[_jsxs(_components.p,{children:[`Comma-separated folders to list. Defaults to `,_jsx(_components.code,{children:`inbox`}),`, or to\n`,_jsx(_components.code,{children:`inbox,archive,sent`}),` when `,_jsx(_components.code,{children:`labels`}),` is set.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`inbox`}),`: The default. The thread holds at least one received message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`archive`}),`: The thread was archived.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`spam`}),`: The thread was marked as spam.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`trash`}),`: The thread is scheduled for deletion in 30 days.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sent`}),`: Threads whose messages are all outbound.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{query:`labels`,type:`string`,id:`param-labels`,children:_jsxs(_components.p,{children:[`Comma-separated label IDs. Returns threads with any of these labels. Up to\n`,_jsx(_components.code,{children:`50`}),` IDs.`]})}),`\n`,_jsx(ParamField,{query:`read`,type:`boolean`,id:`param-read`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` returns threads where every email is read. `,_jsx(_components.code,{children:`false`}),` returns threads with\nat least one unread email.`]})}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,id:`param-limit`,children:_jsxs(_components.p,{children:[`Number of threads to return. Default is `,_jsx(_components.code,{children:`20`}),`, maximum is `,_jsx(_components.code,{children:`100`}),`, minimum is\n`,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsx(ParamField,{query:`after`,type:`string`,id:`param-after`,children:_jsxs(_components.p,{children:[`The ID of the last thread on the current page. Returns the next, older page.\nMust be a thread ID. To filter by date, use `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search\nThreads`}),` with `,_jsx(_components.code,{children:`start_date`}),`.`]})}),`\n`,_jsx(ParamField,{query:`before`,type:`string`,id:`param-before`,children:_jsxs(_components.p,{children:[`The ID of the first thread on the current page. Returns the previous, newer\npage. Cannot be combined with `,_jsx(_components.code,{children:`after`}),`. Must be a thread ID. To filter by date,\nuse `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search Threads`}),` with `,_jsx(_components.code,{children:`end_date`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`To find threads by text, sender, recipient, attachment, or date, use `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search\nThreads`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ParamField,{body:`object`,type:`string`,id:`param-object`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`list`}),`.`]})}),`\n`,_jsx(ParamField,{body:`has_more`,type:`boolean`,id:`param-has-more`,children:_jsxs(_components.p,{children:[`Whether more threads exist beyond this page. Pass the last thread’s `,_jsx(_components.code,{children:`id`}),` as\n`,_jsx(_components.code,{children:`after`}),` to continue.`]})}),`\n`,_jsxs(ParamField,{body:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`The matching threads, most recently active first.`}),_jsxs(Expandable,{defaultOpen:`true`,title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the thread.`})}),_jsx(ParamField,{body:`subject`,type:`string | null`,id:`param-subject`,children:_jsx(_components.p,{children:`The subject of the thread.`})}),_jsx(ParamField,{body:`from`,type:`string | null`,id:`param-from`,children:_jsx(_components.p,{children:`Sender email address. Can include the display name.`})}),_jsx(ParamField,{body:`to`,type:`string[]`,id:`param-to`,children:_jsxs(_components.p,{children:[`The recipients of the most recent message. For a received email, these\nare the addresses it was delivered to, not the full `,_jsx(_components.code,{children:`To`}),` header.`]})}),_jsx(ParamField,{body:`cc`,type:`string[]`,id:`param-cc`,children:_jsx(_components.p,{children:`The CC recipients of the most recent message.`})}),_jsx(ParamField,{body:`bcc`,type:`string[]`,id:`param-bcc`,children:_jsx(_components.p,{children:`The BCC recipients of the most recent message. Always empty for a\nreceived email.`})}),_jsxs(ParamField,{body:`labels`,type:`array`,id:`param-labels-1`,children:[_jsx(_components.p,{children:`The labels attached to the thread.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The ID of the label.`})}),_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The name of the label.`})}),_jsx(ParamField,{body:`color`,type:`string`,id:`param-color`,children:_jsxs(_components.p,{children:[`The color of the label as an uppercase `,_jsx(_components.code,{children:`#RRGGBB`}),` hex code.`]})})]})]}),_jsx(ParamField,{body:`email_count`,type:`number`,id:`param-email-count`,children:_jsx(_components.p,{children:`The number of emails in the thread.`})}),_jsx(ParamField,{body:`has_attachment`,type:`boolean`,id:`param-has-attachment`,children:_jsx(_components.p,{children:`Whether the most recent message in the thread has an attachment.`})}),_jsx(ParamField,{body:`has_draft`,type:`boolean`,id:`param-has-draft`,children:_jsx(_components.p,{children:`Whether the thread has an unsent draft.`})}),_jsx(ParamField,{body:`read`,type:`boolean`,id:`param-read-1`,children:_jsx(_components.p,{children:`True only when every message in the thread is read.`})}),_jsx(ParamField,{body:`received_at`,type:`string`,id:`param-received-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the thread was last active.`})}),_jsxs(ParamField,{body:`folder`,type:`string`,id:`param-folder`,children:[_jsxs(_components.p,{children:[`The folder the thread lives in. Every thread sits in exactly one folder\nwithin its inbox. You can move a thread to `,_jsx(_components.code,{children:`inbox`}),`, `,_jsx(_components.code,{children:`archive`}),`, `,_jsx(_components.code,{children:`spam`}),`, or\n`,_jsx(_components.code,{children:`trash`}),`. `,_jsx(_components.code,{children:`sent`}),` is assigned automatically.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`inbox`}),`: The default. The thread holds at least one received message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`archive`}),`: The thread was archived.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`spam`}),`: The thread was marked as spam.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`trash`}),`: The thread is scheduled for deletion in 30 days.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sent`}),`: Threads whose messages are all outbound.`]}),`\n`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ResendParamField,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"vesper"}},"config":{},"pageMetadata":{"title":"List Threads","description":"Retrieve the threads in an inbox, filtered by folder, label, and read status.","api":"GET /inboxes/:inbox_id/threads","href":"/api-reference/inboxes/list-threads"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ResendParamField=()=>null;function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A thread is a conversation within an inbox, made up of one or more messages.`}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ResendParamField`,children:_jsx(ResendParamField,{path:`inbox_id`,type:`string`,required:true,children:_jsxs(_components.p,{children:[`The Inbox ID or the inbox email address, such as `,_jsx(_components.code,{children:`support@example.com`}),`.`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsxs(ParamField,{query:`folders`,type:`string`,id:`param-folders`,children:[_jsxs(_components.p,{children:[`Comma-separated folders to list. Defaults to `,_jsx(_components.code,{children:`inbox`}),`, or to\n`,_jsx(_components.code,{children:`inbox,archive,sent`}),` when `,_jsx(_components.code,{children:`labels`}),` is set.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`inbox`}),`: The default. The thread holds at least one received message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`archive`}),`: The thread was archived.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`spam`}),`: The thread was marked as spam.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`trash`}),`: The thread is scheduled for deletion in 30 days.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sent`}),`: Threads whose messages are all outbound.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{query:`labels`,type:`string`,id:`param-labels`,children:_jsxs(_components.p,{children:[`Comma-separated label IDs. Returns threads with any of these labels. Up to\n`,_jsx(_components.code,{children:`50`}),` IDs.`]})}),`\n`,_jsx(ParamField,{query:`read`,type:`boolean`,id:`param-read`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` returns threads where every email is read. `,_jsx(_components.code,{children:`false`}),` returns threads with\nat least one unread email.`]})}),`\n`,_jsx(ParamField,{query:`limit`,type:`number`,id:`param-limit`,children:_jsxs(_components.p,{children:[`Number of threads to return. Default is `,_jsx(_components.code,{children:`20`}),`, maximum is `,_jsx(_components.code,{children:`100`}),`, minimum is\n`,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsx(ParamField,{query:`after`,type:`string`,id:`param-after`,children:_jsxs(_components.p,{children:[`The ID of the last thread on the current page. Returns the next, older page.\nMust be a thread ID. To filter by date, use `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search\nThreads`}),` with `,_jsx(_components.code,{children:`start_date`}),`.`]})}),`\n`,_jsx(ParamField,{query:`before`,type:`string`,id:`param-before`,children:_jsxs(_components.p,{children:[`The ID of the first thread on the current page. Returns the previous, newer\npage. Cannot be combined with `,_jsx(_components.code,{children:`after`}),`. Must be a thread ID. To filter by date,\nuse `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search Threads`}),` with `,_jsx(_components.code,{children:`end_date`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`To find threads by text, sender, recipient, attachment, or date, use `,_jsx(_components.a,{href:`/api-reference/inboxes/search-threads`,children:`Search\nThreads`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ParamField,{body:`object`,type:`string`,id:`param-object`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`list`}),`.`]})}),`\n`,_jsx(ParamField,{body:`has_more`,type:`boolean`,id:`param-has-more`,children:_jsxs(_components.p,{children:[`Whether more threads exist beyond this page. Pass the last thread’s `,_jsx(_components.code,{children:`id`}),` as\n`,_jsx(_components.code,{children:`after`}),` to continue.`]})}),`\n`,_jsxs(ParamField,{body:`data`,type:`array`,id:`param-data`,children:[_jsx(_components.p,{children:`The matching threads, most recently active first.`}),_jsxs(Expandable,{defaultOpen:`true`,title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the thread.`})}),_jsx(ParamField,{body:`subject`,type:`string | null`,id:`param-subject`,children:_jsx(_components.p,{children:`The subject of the thread.`})}),_jsx(ParamField,{body:`from`,type:`string | null`,id:`param-from`,children:_jsx(_components.p,{children:`Sender email address. Can include the display name.`})}),_jsx(ParamField,{body:`to`,type:`string[]`,id:`param-to`,children:_jsxs(_components.p,{children:[`The recipients of the most recent message. For a received email, these\nare the addresses it was delivered to, not the full `,_jsx(_components.code,{children:`To`}),` header.`]})}),_jsx(ParamField,{body:`cc`,type:`string[]`,id:`param-cc`,children:_jsx(_components.p,{children:`The CC recipients of the most recent message.`})}),_jsx(ParamField,{body:`bcc`,type:`string[]`,id:`param-bcc`,children:_jsx(_components.p,{children:`The BCC recipients of the most recent message. Always empty for a\nreceived email.`})}),_jsxs(ParamField,{body:`labels`,type:`array`,id:`param-labels-1`,children:[_jsx(_components.p,{children:`The labels attached to the thread.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`The ID of the label.`})}),_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The name of the label.`})}),_jsx(ParamField,{body:`color`,type:`string`,id:`param-color`,children:_jsxs(_components.p,{children:[`The color of the label as an uppercase `,_jsx(_components.code,{children:`#RRGGBB`}),` hex code.`]})})]})]}),_jsx(ParamField,{body:`email_count`,type:`number`,id:`param-email-count`,children:_jsx(_components.p,{children:`The number of emails in the thread.`})}),_jsx(ParamField,{body:`has_attachment`,type:`boolean`,id:`param-has-attachment`,children:_jsx(_components.p,{children:`Whether the most recent message in the thread has an attachment.`})}),_jsx(ParamField,{body:`has_draft`,type:`boolean`,id:`param-has-draft`,children:_jsx(_components.p,{children:`Whether the thread has an unsent draft.`})}),_jsx(ParamField,{body:`read`,type:`boolean`,id:`param-read-1`,children:_jsx(_components.p,{children:`True only when every message in the thread is read.`})}),_jsx(ParamField,{body:`received_at`,type:`string`,id:`param-received-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the thread was last active.`})}),_jsxs(ParamField,{body:`folder`,type:`string`,id:`param-folder`,children:[_jsxs(_components.p,{children:[`The folder the thread lives in. Every thread sits in exactly one folder\nwithin its inbox. You can move a thread to `,_jsx(_components.code,{children:`inbox`}),`, `,_jsx(_components.code,{children:`archive`}),`, `,_jsx(_components.code,{children:`spam`}),`, or\n`,_jsx(_components.code,{children:`trash`}),`. `,_jsx(_components.code,{children:`sent`}),` is assigned automatically.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`inbox`}),`: The default. The thread holds at least one received message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`archive`}),`: The thread was archived.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`spam`}),`: The thread was marked as spam.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`trash`}),`: The thread is scheduled for deletion in 30 days.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sent`}),`: Threads whose messages are all outbound.`]}),`\n`]})]})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { Resend } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'resend'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:` resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'re_xxxxxxxxx'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`data`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`error`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.inboxes.threads.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`list`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` inboxId: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`3`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`$resend `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`client`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'re_xxxxxxxxx'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`$resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`->`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`inboxes`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`->`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`threads`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`->`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`list`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`resend.api_key `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"re_xxxxxxxxx\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`resend.Inboxes.Threads.list(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Ruby`,numberOfLines:`5`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`require`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"resend\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"re_xxxxxxxxx\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`::`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`Inboxes`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`::`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`Threads`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`list`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`inbox_id:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` })`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`9`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`package`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`github.com/resend/resend-go/v4`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`func`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` main`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`\tclient `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`:=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`NewClient`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"re_xxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`\tclient.Inboxes.Threads.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`List`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`nil`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Rust`,numberOfLines:`21`,language:`rust`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`use`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` resend_rs`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` list_opts`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`ListOptions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` types`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`ListInboxThreadsOptions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`Result`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`#[tokio`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`main]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`async`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:` fn`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` main`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`() `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`->`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Result`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`\u003c()> {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` let`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`new`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"re_xxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` let`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` _threads `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` .`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`inboxes`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` .`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`list_threads`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` ListInboxThreadsOptions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`new`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` ListOptions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`::`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`default`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` .await?`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Ok`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Java`,numberOfLines:`12`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` com.resend.Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` com.resend.core.exception.ResendException`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` com.resend.services.inboxes.model.ListInboxThreadsResponseSuccess`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`public`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` class`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Main`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` public`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` static`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` void`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` main`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`String`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`[] `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFF`},children:`args`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`throws`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` ResendException`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"re_xxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` ListInboxThreadsResponseSuccess`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` data `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`inboxes`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`threads`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` .`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`list`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`.NET`,numberOfLines:`6`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#FFC799`},children:`using`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`IResend`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` ResendClient.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`Create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`( `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"re_xxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` ); `}),_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#8B8B8B94`},children:`// Or from DI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`var`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` resp`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`InboxThreadListAsync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`( `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Guid`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`( `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` ) );`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`Console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`( `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"Nr Threads={0}\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, resp.Content.Data.Count );`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#99FFE4`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` GET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1/threads'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#A0A0A0`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#99FFE4`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'Authorization: Bearer re_xxxxxxxxx'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`CLI`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`resend`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` inboxes`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` threads`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` list`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"list\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"has_more\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"4d8e2a1c-9b3f-4c6d-8a21-3e5f7c9c0d12\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"subject\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"Refund for order 1041\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"from\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"Ada Lovelace \u003cada@example.org>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"support@example.com\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"cc\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"bcc\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"labels\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"7f9c1d2e-4a6b-4c3d-8e15-9b0a7c6d5e34\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"Urgent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"#E93D82\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"email_count\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`2`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"has_attachment\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"has_draft\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`false`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"read\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`false`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"received_at\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"2026-08-05T14:03:11.229Z\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` \"folder\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`\"inbox\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ResendParamField,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"vesper"}},"config":{},"pageMetadata":{"title":"List Threads","description":"Retrieve the threads in an inbox, filtered by folder, label, and read status.","api":"GET /inboxes/:inbox_id/threads","href":"/api-reference/inboxes/list-threads"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Response Fields","slug":"response-fields","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> { Resend } \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">from\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> 'resend'\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">const\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\"> resend\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> =\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> new\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">'re_xxxxxxxxx'\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">const\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> { \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">data\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">, \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">error\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> } \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> await\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend.inboxes.threads.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">list\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> inboxId: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1'\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"php\">\u003ccode language=\"php\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">$resend \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">client\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">'re_xxxxxxxxx'\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">$resend\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">->\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">inboxes\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">->\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">threads\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">->\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">list\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">'b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1'\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">resend.api_key \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"re_xxxxxxxxx\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">resend.Inboxes.Threads.list(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Ruby","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"ruby\">\u003ccode language=\"ruby\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">require\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"resend\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\">Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">api_key\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> =\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"re_xxxxxxxxx\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\">Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">::\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\">Inboxes\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">::\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\">Threads\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">list\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">({ \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">inbox_id:\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> })\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Go","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"go\">\u003ccode language=\"go\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">package\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> main\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">import\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">github.com/resend/resend-go/v4\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">func\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> main\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">\tclient \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">:=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">NewClient\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"re_xxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">\tclient.Inboxes.Threads.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">List\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">, \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">nil\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Rust","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"rust\">\u003ccode language=\"rust\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">use\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> resend_rs\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> list_opts\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">ListOptions\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> types\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">ListInboxThreadsOptions\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">, \u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">Result\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">#[tokio\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">main]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">async\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\"> fn\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> main\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">() \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">->\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Result\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">\u0026#x3C;()> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> let\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">new\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"re_xxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> let\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> _threads \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> .\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">inboxes\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> .\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">list_threads\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> ListInboxThreadsOptions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">new\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> ListOptions\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">::\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">default\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> )\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> .await?\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Ok\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Java","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"java\">\u003ccode language=\"java\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> com.resend.Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> com.resend.core.exception.ResendException\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">import\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> com.resend.services.inboxes.model.ListInboxThreadsResponseSuccess\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">public\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> class\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Main\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> public\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> static\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> void\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> main\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">String\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">[] \u003c/span>\u003cspan style=\"color:#E36209;--shiki-dark:#FFF\">args\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">) \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">throws\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> ResendException\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> new\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"re_xxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#A0A0A0\"> ListInboxThreadsResponseSuccess\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> data \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">=\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">inboxes\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">().\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">threads\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> .\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">list\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">(\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":".NET","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"csharp\">\u003ccode language=\"csharp\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#FFC799\">using\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Resend\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">IResend\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> resend\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> =\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> ResendClient.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">Create\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">( \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"re_xxxxxxxxx\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> ); \u003c/span>\u003cspan style=\"color:#6A737D;--shiki-dark:#8B8B8B94\">// Or from DI\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">var\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> resp\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> =\u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\"> await\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> resend.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">InboxThreadListAsync\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">( \u003c/span>\u003cspan style=\"color:#D73A49;--shiki-dark:#A0A0A0\">new\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\"> Guid\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">( \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> ) );\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">Console.\u003c/span>\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">WriteLine\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">( \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"Nr Threads={0}\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">, resp.Content.Data.Count );\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">curl\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#99FFE4\"> -X\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> GET\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> 'https://api.resend.com/inboxes/b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1/threads'\u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#A0A0A0\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#99FFE4\"> -H\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> 'Authorization: Bearer re_xxxxxxxxx'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"CLI","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#6F42C1;--shiki-dark:#FFC799\">resend\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> inboxes\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> threads\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> list\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\"> b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light vesper\" style=\"background-color:#fff;--shiki-dark-bg:#101010;color:#24292e;--shiki-dark:#FFF\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"27\">\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"object\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"list\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"has_more\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">true\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"data\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"id\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"4d8e2a1c-9b3f-4c6d-8a21-3e5f7c9c0d12\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"subject\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"Refund for order 1041\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"from\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"Ada Lovelace \u0026#x3C;ada@example.org>\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"to\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: [\u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"support@example.com\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"cc\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"bcc\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"labels\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"id\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"7f9c1d2e-4a6b-4c3d-8e15-9b0a7c6d5e34\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"name\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"Urgent\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"color\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"#E93D82\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"email_count\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\">2\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"has_attachment\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">true\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"has_draft\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"read\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#005CC5;--shiki-dark:#FFF\">false\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"received_at\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"2026-08-05T14:03:11.229Z\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#005CC5;--shiki-dark:#FFC799\"> \"folder\"\u003c/span>\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">: \u003c/span>\u003cspan style=\"color:#032F62;--shiki-dark:#99FFE4\">\"inbox\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#24292E;--shiki-dark:#FFF\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"List Threads","path":"/inboxes/:inbox_id/threads","servers":[{"url":"https://api.resend.com"}],"method":"get","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{"folders":{"schema":[{"type":"string","description":"Comma-separated folders to list. Defaults to `inbox` , or to `inbox,archive,sent` when `labels` is set. `inbox` : The default. The thread holds at least one received message. `archive` : The thread was archived. `spam` : The thread was marked as spam. `trash` : The thread is scheduled for deletion in 30 days. `sent` : Threads whose messages are all outbound."}]},"labels":{"schema":[{"type":"string","description":"Comma-separated label IDs. Returns threads with any of these labels. Up to `50` IDs."}]},"read":{"schema":[{"type":"boolean","description":"`true` returns threads where every email is read. `false` returns threads with at least one unread email."}]},"limit":{"schema":[{"type":"number","description":"Number of threads to return. Default is `20` , maximum is `100` , minimum is `1` ."}]},"after":{"schema":[{"type":"string","description":"The ID of the last thread on the current page. Returns the next, older page. Must be a thread ID. To filter by date, use Search Threads with `start_date` ."}]},"before":{"schema":[{"type":"string","description":"The ID of the first thread on the current page. Returns the previous, newer page. Cannot be combined with `after` . Must be a thread ID. To filter by date, use Search Threads with `end_date` ."}]}},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"object":[{"type":"string","description":"Always `list` ."}],"has_more":[{"type":"boolean","description":"Whether more threads exist beyond this page. Pass the last thread’s `id` as `after` to continue."}],"data":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The ID of the thread."}],"subject":[{"type":"object","properties":{},"description":"The subject of the thread."}],"from":[{"type":"object","properties":{},"description":"Sender email address. Can include the display name."}],"to":[{"type":"array","items":[{"type":"string"}],"description":"The recipients of the most recent message. For a received email, these are the addresses it was delivered to, not the full `To` header."}],"cc":[{"type":"array","items":[{"type":"string"}],"description":"The CC recipients of the most recent message."}],"bcc":[{"type":"array","items":[{"type":"string"}],"description":"The BCC recipients of the most recent message. Always empty for a received email."}],"labels":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"The ID of the label."}],"name":[{"type":"string","description":"The name of the label."}],"color":[{"type":"string","description":"The color of the label as an uppercase `#RRGGBB` hex code."}]}}],"description":"The labels attached to the thread."}],"email_count":[{"type":"number","description":"The number of emails in the thread."}],"has_attachment":[{"type":"boolean","description":"Whether the most recent message in the thread has an attachment."}],"has_draft":[{"type":"boolean","description":"Whether the thread has an unsent draft."}],"read":[{"type":"boolean","description":"True only when every message in the thread is read."}],"received_at":[{"type":"string","description":"ISO 8601 timestamp when the thread was last active."}],"folder":[{"type":"string","description":"The folder the thread lives in. Every thread sits in exactly one folder within its inbox. You can move a thread to `inbox` , `archive` , `spam` , or `trash` . `sent` is assigned automatically. `inbox` : The default. The thread holds at least one received message. `archive` : The thread was archived. `spam` : The thread was marked as spam. `trash` : The thread is scheduled for deletion in 30 days. `sent` : Threads whose messages are all outbound."}]}}],"description":"The matching threads, most recently active first."}]}}],"examples":{"example":{"value":{"object":"\u003cstring>","has_more":true,"data":[{"id":"\u003cstring>","subject":{},"from":{},"to":["\u003cstring>"],"cc":["\u003cstring>"],"bcc":["\u003cstring>"],"labels":[{"id":"\u003cstring>","name":"\u003cstring>","color":"\u003cstring>"}],"email_count":123,"has_attachment":true,"has_draft":true,"read":true,"received_at":"\u003cstring>","folder":"\u003cstring>"}]}}}}}},"response":{},"deprecated":false}},"jsLinks":["/docs/_mintlify/custom/resend/34a103d44dce6f34/resend.js","/docs/_mintlify/custom/resend/b0fac65f85cb29e7/reo.dev.js"],"subdomain":"resend","siteName":"Resend","title":"List Threads - Resend","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T23:16:32.987Z","originalFileLocation":"api-reference/inboxes/list-threads.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve the threads in an inbox, filtered by folder, label, and read status.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Resend\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List Threads - Resend\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve the threads in an inbox, filtered by folder, label, and read status.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Resend\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://resend.com/docs/api-reference/inboxes/list-threads\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Inbox+Threads\u0026amp;title=List+Threads\u0026amp;description=Retrieve+the+threads+in+an+inbox%2C+filtered+by+folder%2C+label%2C+and+read+status.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=c4197f873c7d79f1369c2b645079961fb960665de2b523f88aaa451b7bcce802\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List Threads - Resend\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve the threads in an inbox, filtered by folder, label, and read status.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Inbox+Threads\u0026amp;title=List+Threads\u0026amp;description=Retrieve+the+threads+in+an+inbox%2C+filtered+by+folder%2C+label%2C+and+read+status.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=c4197f873c7d79f1369c2b645079961fb960665de2b523f88aaa451b7bcce802\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Resend\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://resend.com/docs/api-reference/inboxes/list-threads\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/inboxes/list-threads.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://resend.com/#organization\",\"name\":\"Resend\",\"url\":\"https://resend.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://resend.com/docs#website\",\"name\":\"Resend\",\"url\":\"https://resend.com/docs\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://resend.com/docs/api-reference/inboxes/list-threads#webpage\",\"url\":\"https://resend.com/docs/api-reference/inboxes/list-threads\",\"name\":\"List Threads\",\"description\":\"Retrieve the threads in an inbox, filtered by folder, label, and read status.\",\"dateModified\":\"2026-10-27T23:16:32.987Z\",\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://resend.com/docs/api-reference/inboxes/list-threads#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://resend.com/docs/api-reference/inboxes/list-threads#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resend\",\"item\":\"https://resend.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List Threads\",\"item\":\"https://resend.com/docs/api-reference/inboxes/list-threads\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://resend.com/docs/api-reference/inboxes/list-threads#apireference\",\"headline\":\"List Threads\",\"name\":\"List Threads\",\"description\":\"Retrieve the threads in an inbox, filtered by folder, label, and read status.\",\"url\":\"https://resend.com/docs/api-reference/inboxes/list-threads\",\"mainEntityOfPage\":{\"@id\":\"https://resend.com/docs/api-reference/inboxes/list-threads#webpage\"},\"dateModified\":\"2026-10-27T23:16:32.987Z\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"},\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"}}]}\u003c/script>","siteName":"Resend","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Guides","icon":"books","pages":[{"title":"Guides","href":"/knowledge-base/introduction"}]},{"tab":"API Reference","icon":"rectangle-terminal","groups":[{"group":"API Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Usage Limits","href":"/api-reference/rate-limit"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Sending","pages":[{"title":"Send Email","api":"POST /emails","href":"/api-reference/emails/send-email"},{"title":"Send Batch Emails","api":"POST /emails/batch","href":"/api-reference/emails/send-batch-emails"},{"title":"Retrieve Sent Email","api":"GET /emails/:email_id","href":"/api-reference/emails/retrieve-email"},{"title":"List Sent Emails","api":"GET /emails","href":"/api-reference/emails/list-emails"},{"title":"Update Email","api":"PATCH /emails/:email_id","href":"/api-reference/emails/update-email"},{"title":"Cancel Email","api":"POST /emails/:email_id/cancel","href":"/api-reference/emails/cancel-email"},{"title":"Share Email","api":"POST /emails/:email_id/share","href":"/api-reference/emails/share-email"},{"title":"Retrieve Attachment","api":"GET /emails/:email_id/attachments/:attachment_id","href":"/api-reference/emails/retrieve-email-attachment"},{"title":"List Attachments","api":"GET /emails/:email_id/attachments","href":"/api-reference/emails/list-email-attachments"},{"title":"Retrieve Metrics","api":"GET /emails/metrics","href":"/api-reference/emails/get-metrics"}]},{"group":"Receiving","pages":[{"title":"Retrieve Received Email","api":"GET /emails/receiving/:email_id","href":"/api-reference/emails/retrieve-received-email"},{"title":"List Received Emails","api":"GET /emails/receiving","href":"/api-reference/emails/list-received-emails"},{"title":"Retrieve Attachment","api":"GET /emails/receiving/:email_id/attachments/:attachment_id","href":"/api-reference/emails/retrieve-received-email-attachment"},{"title":"List Attachments","api":"GET /emails/receiving/:email_id/attachments","href":"/api-reference/emails/list-received-email-attachments"}]},{"group":"Inboxes","pages":[{"title":"Create Inbox","api":"POST /inboxes","href":"/api-reference/inboxes/create-inbox"},{"title":"Retrieve Inbox","api":"GET /inboxes/:inbox_id","href":"/api-reference/inboxes/get-inbox"},{"title":"List Inboxes","api":"GET /inboxes","href":"/api-reference/inboxes/list-inboxes"},{"title":"Update Inbox","api":"PATCH /inboxes/:inbox_id","href":"/api-reference/inboxes/update-inbox"},{"title":"Delete Inbox","api":"DELETE /inboxes/:inbox_id","href":"/api-reference/inboxes/delete-inbox"}]},{"group":"Inbox Labels","pages":[{"title":"Create Label","api":"POST /inboxes/:inbox_id/labels","href":"/api-reference/inboxes/create-label"},{"title":"List Labels","api":"GET /inboxes/:inbox_id/labels","href":"/api-reference/inboxes/list-labels"},{"title":"Update Label","api":"PATCH /inboxes/:inbox_id/labels/:label_id","href":"/api-reference/inboxes/update-label"},{"title":"Delete Label","description":"Remove an existing label from an inbox.","api":"DELETE /inboxes/:inbox_id/labels/:label_id","href":"/api-reference/inboxes/delete-label"}]},{"group":"Inbox Threads","pages":[{"title":"List Threads","api":"GET /inboxes/:inbox_id/threads","href":"/api-reference/inboxes/list-threads"},{"title":"Search Threads","description":"Find threads in an inbox by text, people, attachments, and dates.","api":"GET /inboxes/:inbox_id/threads/search","href":"/api-reference/inboxes/search-threads"},{"title":"Retrieve Thread","api":"GET /inboxes/:inbox_id/threads/:thread_id","href":"/api-reference/inboxes/get-thread"},{"title":"Update Thread","api":"PATCH /inboxes/:inbox_id/threads/:thread_id","href":"/api-reference/inboxes/update-thread"},{"title":"Delete Thread","api":"DELETE /inboxes/:inbox_id/threads/:thread_id","href":"/api-reference/inboxes/delete-thread"}]},{"group":"Inbox Thread Labels","pages":[{"title":"Add Thread Labels","api":"POST /inboxes/:inbox_id/threads/:thread_id/labels","href":"/api-reference/inboxes/add-thread-labels"},{"title":"Set Thread Labels","api":"PUT /inboxes/:inbox_id/threads/:thread_id/labels","href":"/api-reference/inboxes/set-thread-labels"},{"title":"Remove Thread Label","api":"DELETE /inboxes/:inbox_id/threads/:thread_id/labels/:label_id","href":"/api-reference/inboxes/remove-thread-label"}]},{"group":"Inbox Thread Emails","pages":[{"title":"List Thread Emails","api":"GET /inboxes/:inbox_id/threads/:thread_id/emails","href":"/api-reference/inboxes/list-thread-emails"},{"title":"Retrieve Thread Email","api":"GET /inboxes/:inbox_id/threads/:thread_id/emails/:email_id","href":"/api-reference/inboxes/get-thread-email"},{"title":"Reply to Thread Email","api":"POST /inboxes/:inbox_id/threads/:thread_id/emails/:email_id/reply","href":"/api-reference/inboxes/reply-thread-email"},{"title":"Forward Thread Email","api":"POST /inboxes/:inbox_id/threads/:thread_id/emails/:email_id/forward","href":"/api-reference/inboxes/forward-thread-email"}]},{"group":"Inbox Drafts","pages":[{"title":"Create Draft","api":"POST /inboxes/:inbox_id/drafts","href":"/api-reference/inboxes/create-draft"},{"title":"List Drafts","api":"GET /inboxes/:inbox_id/drafts","href":"/api-reference/inboxes/list-drafts"},{"title":"Retrieve Draft","api":"GET /inboxes/:inbox_id/drafts/:draft_id","href":"/api-reference/inboxes/get-draft"},{"title":"Update Draft","api":"PATCH /inboxes/:inbox_id/drafts/:draft_id","href":"/api-reference/inboxes/update-draft"},{"title":"Delete Draft","api":"DELETE /inboxes/:inbox_id/drafts/:draft_id","href":"/api-reference/inboxes/delete-draft"},{"title":"Send Draft","api":"POST /inboxes/:inbox_id/drafts/:draft_id/send","href":"/api-reference/inboxes/send-draft"}]},{"group":"Inbox Agent","pages":[{"title":"Retrieve Agent Settings","api":"GET /inboxes/:inbox_id/agent","href":"/api-reference/inboxes/get-agent"},{"title":"Update Agent Settings","api":"PATCH /inboxes/:inbox_id/agent","href":"/api-reference/inboxes/update-agent"}]},{"group":"Broadcasts","pages":[{"title":"Create Broadcast","api":"POST /broadcasts","href":"/api-reference/broadcasts/create-broadcast"},{"title":"Send Broadcast","api":"POST /broadcasts/:broadcast_id/send","href":"/api-reference/broadcasts/send-broadcast"},{"title":"Cancel Broadcast","api":"POST /broadcasts/:broadcast_id/cancel","href":"/api-reference/broadcasts/cancel-broadcast"},{"title":"Duplicate Broadcast","api":"POST /broadcasts/:broadcast_id/duplicate","href":"/api-reference/broadcasts/duplicate-broadcast"},{"title":"Retrieve Broadcast","api":"GET /broadcasts/:broadcast_id","href":"/api-reference/broadcasts/get-broadcast"},{"title":"List Broadcasts","api":"GET /broadcasts","href":"/api-reference/broadcasts/list-broadcasts"},{"title":"Update Broadcast","api":"PATCH /broadcasts/:broadcast_id","href":"/api-reference/broadcasts/update-broadcast"},{"title":"Delete Broadcast","api":"DELETE /broadcasts/:broadcast_id","href":"/api-reference/broadcasts/delete-broadcast"},{"title":"List Recipients","api":"GET /broadcasts/:broadcast_id/recipients","href":"/api-reference/broadcasts/list-broadcast-recipients"},{"title":"List Clicked Links","api":"GET /broadcasts/:broadcast_id/clicked-links","href":"/api-reference/broadcasts/list-broadcast-clicked-links"}]},{"group":"Automations","pages":[{"title":"Create Automation","api":"POST /automations","href":"/api-reference/automations/create-automation"},{"title":"Update Automation","api":"PATCH /automations/:automation_id","href":"/api-reference/automations/update-automation"},{"title":"Retrieve Automation","api":"GET /automations/:automation_id","href":"/api-reference/automations/get-automation"},{"title":"List Automations","api":"GET /automations","href":"/api-reference/automations/list-automations"},{"title":"Duplicate Automation","api":"POST /automations/:automation_id/duplicate","href":"/api-reference/automations/duplicate-automation"},{"title":"Stop Automation","api":"POST /automations/:automation_id/stop","href":"/api-reference/automations/stop-automation"},{"title":"Delete Automation","api":"DELETE /automations/:automation_id","href":"/api-reference/automations/delete-automation"},{"title":"List Automation Runs","api":"GET /automations/:automation_id/runs","href":"/api-reference/automations/list-automation-runs"},{"title":"Retrieve Automation Run","api":"GET /automations/:automation_id/runs/:run_id","href":"/api-reference/automations/get-automation-run"}]},{"group":"Events","pages":[{"title":"Create Event","api":"POST /events","href":"/api-reference/events/create-event"},{"title":"Send Event","api":"POST /events/send","href":"/api-reference/events/send-event"},{"title":"Retrieve Event","api":"GET /events/:id","href":"/api-reference/events/get-event"},{"title":"List Events","api":"GET /events","href":"/api-reference/events/list-events"},{"title":"Update Event","api":"PATCH /events/:id","href":"/api-reference/events/update-event"},{"title":"Delete Event","api":"DELETE /events/:id","href":"/api-reference/events/delete-event"}]},{"group":"Templates","pages":[{"title":"Create Template","api":"POST /templates","href":"/api-reference/templates/create-template"},{"title":"Retrieve Template","api":"GET /templates/:template_id","href":"/api-reference/templates/get-template"},{"title":"List Templates","api":"GET /templates","href":"/api-reference/templates/list-templates"},{"title":"Update Template","api":"PATCH /templates/:template_id","href":"/api-reference/templates/update-template"},{"title":"Delete Template","api":"DELETE /templates/:template_id","href":"/api-reference/templates/delete-template"},{"title":"Publish Template","api":"POST /templates/:template_id/publish","href":"/api-reference/templates/publish-template"},{"title":"Duplicate Template","api":"POST /templates/:template_id/duplicate","href":"/api-reference/templates/duplicate-template"}]},{"group":"Contacts","pages":[{"title":"Create Contact","api":"POST /contacts","href":"/api-reference/contacts/create-contact"},{"title":"Retrieve Contact","api":"GET /contacts/:contact_id","href":"/api-reference/contacts/get-contact"},{"title":"List Contacts","api":"GET /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Update Contact","api":"PATCH /contacts/:contact_id","href":"/api-reference/contacts/update-contact"},{"title":"Delete Contact","api":"DELETE /contacts/:contact_id","href":"/api-reference/contacts/delete-contact"},{"title":"Add Contact to Segment","api":"POST /contacts/:contact_id/segments/:segment_id","href":"/api-reference/contacts/add-contact-to-segment"},{"title":"List Contact Segments","api":"GET /contacts/:contact_id/segments","href":"/api-reference/contacts/list-contact-segments"},{"title":"Delete Contact Segment","api":"DELETE /contacts/:contact_id/segments/:segment_id","href":"/api-reference/contacts/delete-contact-segment"},{"title":"Retrieve Contact Topics","api":"GET /contacts/:contact_id/topics","href":"/api-reference/contacts/get-contact-topics"},{"title":"Update Contact Topics","api":"PATCH /contacts/:contact_id/topics","href":"/api-reference/contacts/update-contact-topics"}]},{"group":"Contact Properties","pages":[{"title":"Create Contact Property","api":"POST /contact-properties","href":"/api-reference/contact-properties/create-contact-property"},{"title":"Retrieve Contact Property","api":"GET /contact-properties/:contact_property_id","href":"/api-reference/contact-properties/get-contact-property"},{"title":"List Contact Properties","api":"GET /contact-properties","href":"/api-reference/contact-properties/list-contact-properties"},{"title":"Update Contact Property","api":"PATCH /contact-properties/:contact_property_id","href":"/api-reference/contact-properties/update-contact-property"},{"title":"Delete Contact Property","api":"DELETE /contact-properties/:contact_property_id","href":"/api-reference/contact-properties/delete-contact-property"}]},{"group":"Contact Imports","pages":[{"title":"Create Contact Import","api":"POST /contacts/imports","href":"/api-reference/contacts/create-contact-import"},{"title":"Retrieve Contact Import","api":"GET /contacts/imports/:id","href":"/api-reference/contacts/get-contact-import"},{"title":"List Contact Imports","api":"GET /contacts/imports","href":"/api-reference/contacts/list-contact-imports"}]},{"group":"Segments","pages":[{"title":"Create Segment","api":"POST /segments","href":"/api-reference/segments/create-segment"},{"title":"Retrieve Segment","api":"GET /segments/:segment_id","href":"/api-reference/segments/get-segment"},{"title":"List Segments","api":"GET /segments","href":"/api-reference/segments/list-segments"},{"title":"Update Segment","api":"PATCH /segments/:segment_id","href":"/api-reference/segments/update-segment"},{"title":"Delete Segment","api":"DELETE /segments/:segment_id","href":"/api-reference/segments/delete-segment"},{"title":"List Segment Contacts","api":"GET /segments/:segment_id/contacts","href":"/api-reference/segments/list-segment-contacts"},{"title":"Retrieve Metrics","api":"GET /segments/metrics","tag":"BETA","href":"/api-reference/segments/get-segment-metrics"}]},{"group":"Topics","pages":[{"title":"Create Topic","api":"POST /topics","href":"/api-reference/topics/create-topic"},{"title":"Retrieve Topic","api":"GET /topics/:topic_id","href":"/api-reference/topics/get-topic"},{"title":"List Topics","api":"GET /topics","href":"/api-reference/topics/list-topics"},{"title":"Update Topic","api":"PATCH /topics/:topic_id","href":"/api-reference/topics/update-topic"},{"title":"Delete Topic","api":"DELETE /topics/:topic_id","href":"/api-reference/topics/delete-topic"}]},{"group":"Audiences","tag":"DEPRECATED","pages":[{"title":"Create Audience","api":"POST /audiences","href":"/api-reference/audiences/create-audience"},{"title":"Retrieve Audience","api":"GET /audiences/:audience_id","href":"/api-reference/audiences/get-audience"},{"title":"List Audiences","api":"GET /audiences","href":"/api-reference/audiences/list-audiences"},{"title":"Delete Audience","api":"DELETE /audiences/:audience_id","href":"/api-reference/audiences/delete-audience"}]},{"group":"Domains","pages":[{"title":"Create Domain","api":"POST /domains","href":"/api-reference/domains/create-domain"},{"title":"Claim Domain","api":"POST /domains/claim","href":"/api-reference/domains/claim-domain"},{"title":"Retrieve Domain Claim","api":"GET /domains/:domain_id/claim","href":"/api-reference/domains/get-domain-claim"},{"title":"Verify Domain Claim","api":"POST /domains/:domain_id/claim/verify","href":"/api-reference/domains/verify-domain-claim"},{"title":"Verify Domain","api":"POST /domains/:domain_id/verify","href":"/api-reference/domains/verify-domain"},{"title":"Retrieve Domain","api":"GET /domains/:domain_id","href":"/api-reference/domains/get-domain"},{"title":"List Domains","api":"GET /domains","href":"/api-reference/domains/list-domains"},{"title":"Update Domain","api":"PATCH /domains/:domain_id","href":"/api-reference/domains/update-domain"},{"title":"Delete Domain","api":"DELETE /domains/:domain_id","href":"/api-reference/domains/delete-domain"}]},{"group":"Logs","pages":[{"title":"Retrieve Log","api":"GET /logs/:log_id","href":"/api-reference/logs/retrieve-log"},{"title":"List Logs","api":"GET /logs","href":"/api-reference/logs/list-logs"}]},{"group":"Usage","pages":[{"title":"Retrieve Usage","api":"GET /usage","href":"/api-reference/usage/retrieve-usage"}]},{"group":"API Keys","pages":[{"title":"Create API key","api":"POST /api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"List API keys","api":"GET /api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Update API key","api":"PATCH /api-keys/:api_key_id","href":"/api-reference/api-keys/update-api-key"},{"title":"Delete API key","api":"DELETE /api-keys/:api_key_id","href":"/api-reference/api-keys/delete-api-key"}]},{"group":"Suppressions","pages":[{"title":"Add Suppression","api":"POST /suppressions","href":"/api-reference/suppressions/add-suppression"},{"title":"Retrieve Suppression","api":"GET /suppressions/:suppression","href":"/api-reference/suppressions/get-suppression"},{"title":"List Suppressions","api":"GET /suppressions","href":"/api-reference/suppressions/list-suppressions"},{"title":"Remove Suppression","api":"DELETE /suppressions/:suppression","href":"/api-reference/suppressions/remove-suppression"},{"title":"Add Batch Suppressions","api":"POST /suppressions/batch/add","href":"/api-reference/suppressions/add-batch-suppressions"},{"title":"Remove Batch Suppressions","api":"POST /suppressions/batch/remove","href":"/api-reference/suppressions/remove-batch-suppressions"}]},{"group":"Authorized Apps","pages":[{"title":"List Grants","api":"GET /oauth/grants","href":"/api-reference/oauth/list-grants"},{"title":"Revoke Grant","api":"DELETE /oauth/grants/:oauth_grant_id","href":"/api-reference/oauth/revoke-grant"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","api":"POST /webhooks","href":"/api-reference/webhooks/create-webhook"},{"title":"Retrieve Webhook","api":"GET /webhooks/:webhook_id","href":"/api-reference/webhooks/get-webhook"},{"title":"List Webhooks","api":"GET /webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Update Webhook","api":"PATCH /webhooks/:webhook_id","href":"/api-reference/webhooks/update-webhook"},{"title":"Delete Webhook","api":"DELETE /webhooks/:webhook_id","href":"/api-reference/webhooks/delete-webhook"},{"title":"Rotate Signing Secret","api":"POST /webhooks/:webhook_id/signing-secret/rotate","href":"/api-reference/webhooks/rotate-signing-secret"},{"title":"List Events","api":"GET /webhooks/:webhook_id/events","href":"/api-reference/webhooks/list-events"},{"title":"Retrieve Event","api":"GET /webhooks/:webhook_id/events/:event_id","href":"/api-reference/webhooks/get-event"},{"title":"Replay Event","api":"POST /webhooks/:webhook_id/events/:event_id/replay","href":"/api-reference/webhooks/replay-event"},{"title":"List Attempts","api":"GET /webhooks/:webhook_id/events/:event_id/attempts","href":"/api-reference/webhooks/list-event-attempts"}]},{"group":"OAuth","pages":[{"title":"Register Client","api":"POST /oauth/register","href":"/api-reference/oauth/register"},{"title":"Authorize","api":"GET /oauth/authorize","href":"/api-reference/oauth/authorize"},{"title":"Token","api":"POST /oauth/token","href":"/api-reference/oauth/token"},{"title":"Revoke Token","api":"POST /oauth/revoke","href":"/api-reference/oauth/revoke"}]}]}]},"title":"List Threads - Resend","buildId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","deploymentId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DBvOZtde.js","utils-BMzGkvGb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BYhgN8Gl.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-qDMltnin.js","snippetPresets-CABPPIq4.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Bx9dgvF5.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-EwWVpM4w.js","shallow-vGbuQTai.js","getApiPlaygroundDisplay-DP2addym.js","CodeSnippet-BG6rB_-H.js","CodeSnippets-CFVdLBFC.js","Page-B-qdInYQ.js","getPastedJson-JGlMoKBJ.js","icon-BK_uyWxF.js","MethodPill-Du3sAVkF.js","DuplicateIcon-CMq42UID.js","createIcon-RdBrtBmo.js","DynamicMarkdown-B3juXLG8.js","SectionHeading-B--QsSCa.js","axios-vUo_bRtp.js"]}