Only returned when withCounts=true is provided on the request.
Example:
2
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rewrite","colors":{"primary":"#9A9A9A","light":"#9A9A9A","dark":"#9A9A9A"},"logo":{"light":"https://mintcdn.com/rewrite/XnrSR78CtWbYcqck/images/icon.png?fit=max\u0026auto=format\u0026n=XnrSR78CtWbYcqck\u0026q=85\u0026s=676b38de6b5e9fd9e6396ffc49116274","dark":"https://mintcdn.com/rewrite/XnrSR78CtWbYcqck/images/icon.png?fit=max\u0026auto=format\u0026n=XnrSR78CtWbYcqck\u0026q=85\u0026s=676b38de6b5e9fd9e6396ffc49116274"},"favicon":"https://mintcdn.com/rewrite/ZQq_8eOFLgsQazYX/favicon.svg?fit=max\u0026auto=format\u0026n=ZQq_8eOFLgsQazYX\u0026q=85\u0026s=718267d219fea550bc35028430a1650f","api":{"playground":{"display":"simple"},"examples":{"autogenerate":false},"mdx":{"auth":{"method":"bearer","name":"Bearer"},"server":"https://api.rewritetoday.com/v1"}},"appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"https://dash.rewritetoday.com","label":"Dashboard"},{"icon":{"name":"github"},"href":"https://github.com/rewritetoday","label":"GitHub"}]},"footer":{"socials":{"x":"https://x.com/rewritetoday","github":"https://github.com/rewritetoday","discord":"https://discord.gg/CrJSgBUS4w","linkedin":"https://linkedin.com/company/rewritetoday"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Lato"}},"styling":{"codeblocks":{"theme":"vesper"},"latex":false},"errors":{"404":{"redirect":false,"title":"Rewrite - Not Found","description":"Hey, where did the page go?"}},"navigation":{"languages":[{"language":"en","default":true,"href":"en/welcome"},{"language":"pt-BR","href":"pt-br/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rewrite","hasAudioNarration":false,"actualSubdomain":"rewrite","customDomains":["docs.rewritetoday.com"],"gitSource":{"type":"github","owner":"rewritetoday","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21eb7d7fd5f14b8ebb175f","collectionId":"7ed32f14-5a85-4fa4-b9ae-f3dc5e3bfe30","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21eb7d7fd5f14b8ebb175f:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API","count":55},{"language":"en","tag":"Ecosystem","count":15},{"language":"pt-BR","tag":"Ecosystem","count":15},{"language":"en","tag":"Webhooks","count":14},{"language":"pt-BR","tag":"Webhooks","count":14},{"language":"en","tag":"Reference","count":12},{"language":"default","tag":"Segments","count":11},{"language":"en","tag":"SDKs","count":10},{"language":"pt-BR","tag":"SDKs","count":10},{"language":"en","tag":"API","count":9},{"language":"en","tag":"Events","count":9},{"language":"pt-BR","tag":"API","count":9},{"language":"pt-BR","tag":"Events","count":9},{"language":"default","tag":"Contacts","count":9},{"language":"pt-BR","tag":"Referencia","count":7},{"language":"default","tag":"API Keys","count":7},{"language":"default","tag":"Templates","count":7},{"language":"en","tag":"Overview","count":6},{"language":"en","tag":"Adapters","count":6},{"language":"pt-BR","tag":"Visao geral","count":6},{"language":"pt-BR","tag":"Adapters","count":6},{"language":"default","tag":"Webhooks","count":6},{"language":"pt-BR","tag":"Reference","count":5},{"language":"default","tag":"Messages","count":5},{"language":"default","tag":"Tags","count":5},{"language":"en","tag":"Themes","count":4},{"language":"en","tag":"Packages","count":4},{"language":"pt-BR","tag":"Themes","count":4},{"language":"default","tag":"Deliveries","count":3},{"language":"default","tag":"Logs","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{color-scheme:dark;--rm-accent:#9a9a9a;--rm-bg-0:#050505;--rm-bg-1:#080808;--rm-bg-2:#0b0b0b;--rm-text-strong:#ffffff;--rm-text:#e6e6e6;--rm-text-muted:#9a9a9a;--rm-border-soft:rgba(255, 255, 255, 0.08);--rm-border-strong:rgba(255, 255, 255, 0.12);--rm-shadow-soft:0 0 0 1px rgba(255, 255, 255, 0.02), 0 8px 30px rgba(0, 0, 0, 0.6);--mint-background-primary:#050505;--mint-background-secondary:#080808;--mint-background-tertiary:#0b0b0b;--mint-text-primary:var(--rm-text);--mint-text-secondary:var(--rm-text-muted);--mint-primary:var(--rm-accent);--mint-link:var(--rm-text-strong);--mint-link-hover:var(--rm-accent);--mint-border-color:var(--rm-border-soft);--mint-card-border:var(--rm-border-soft)}[data-selector=card]:focus-within,[data-selector=card]:hover{border-color:rgba(255,255,255,.1)!important;box-shadow:none!important}body,html{background:radial-gradient(1200px 600px at 20% -10%,rgba(154,154,154,.04),transparent 40%),linear-gradient(180deg,#050505 0,#070707 60%,#050505 100%)!important;color:var(--rm-text)}::selection{background:rgba(154,154,154,.35);color:var(--rm-text-strong)}::-moz-selection{background:rgba(154,154,154,.35);color:var(--rm-text-strong)}[data-selector=card] svg{padding:8px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}[data-selector=card]:hover svg{background:rgba(154,154,154,.06);border-color:rgba(154,154,154,.18)}#navbar,#sidebar{background:rgba(5,5,5,.75)!important;backdrop-filter:blur(8px);border-color:var(--rm-border-soft)!important}#table-of-contents{background:0 0!important}.prose h1,.prose h2,.prose h3,.prose h4{color:var(--rm-text-strong);letter-spacing:-.02em}.prose p{color:var(--rm-text)}#table-of-contents a:hover,#table-of-contents a[data-active=true],.prose a,.prose strong,.prose th{color:var(--rm-text-strong)}.prose a{text-decoration-color:rgba(255,255,255,.25);text-underline-offset:3px}.prose a:hover{color:var(--rm-accent);text-decoration-color:rgba(154,154,154,.6)}[data-selector=callout],[data-selector=card]{background:rgba(255,255,255,.03)!important;border:1px solid var(--rm-border-soft)!important;border-radius:14px;box-shadow:var(--rm-shadow-soft)}.prose table{border-collapse:separate;border-spacing:0}.prose th{background:rgba(255,255,255,.04)}.prose td,.prose th{border-color:var(--rm-border-soft)}.retry-schedule-table{width:100%}.retry-schedule-table>table,.retry-schedule-table__table{display:table!important;width:100%!important;min-width:100%!important;border-collapse:collapse!important;table-layout:fixed}code,pre{font-feature-settings:\"liga\" 1,\"calt\" 1}[data-selector=code-block],pre{background:#0b0b0b!important;border-radius:12px}[data-selector=code-block],[data-selector=code-block] pre,pre{border:0!important;box-shadow:none!important}code:not(pre code){background:rgba(255,255,255,.06);padding:.15em .4em;border-radius:6px;color:var(--rm-text-strong)}#table-of-contents a{color:var(--rm-text-muted)}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.2)}#body-content,#content-area,#content-container,[id=body-content],[id=content-area],[id=content-container]{background:0 0!important}"}],"page":{"pagePath":"api-reference/messages/list-messages","slug":"/api-reference/messages/list-messages","pageMetadata":{"title":"List messages","description":"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages","href":"/api-reference/messages/list-messages","autogeneratedByOpenApi":true},"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: \"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":"vesper"},"config":{},"pageMetadata":{"title":"List messages","description":"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages","href":"/api-reference/messages/list-messages","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/rewrite/89a964f52606961e/language-switch.js"],"openApiReferenceData":{"operation":{"tags":["Messages"],"operationId":"listMessages","summary":"List messages","description":"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.","x-codeSamples":[{"lang":"typescript","label":"Node.js","source":"import { Rewrite } from '@rewritetoday/sdk';\n\nconst rewrite = new Rewrite(process.env.REWRITE_API_KEY!);\n\nconst { data, error, cursor } = await rewrite.messages.list({\n limit: 25,\n status: 'DELIVERED',\n});\n\nif (error) throw error;"}],"security":["0bdb8d4a-02d1-47d6-b746-f068ed2ee015"],"parameters":["9a509e33-9f7c-4c79-b3ac-531ad81f1333","7e75e4e7-3ed0-4b6f-9cfd-f6c4396ba7b7","bea6da84-c662-4384-a55e-eb92e4b5f985","ae8849f8-10b8-4351-9560-825704174347","3979ea3c-3170-4462-bfe7-48937c46bdd6","5b51619e-0624-4876-9816-b2fd56d54701","a903bcf3-25eb-48ec-a9f0-e70006f558c2","576e5666-51c2-4d7b-9df8-9197b574031d"],"responses":{"200":"06dc5b42-d979-446e-8da9-969642ad02e2"},"x-required-scopes":["message:read"],"method":"get","type":"path","servers":["ab463777-3db3-4956-88e6-be5a3c0cdd11"],"path":"/messages","baseUrlOptions":["https://api.rewritetoday.com/v1"],"title":"List messages","codeSamples":[{"label":"Node.js","lang":"typescript","source":"import { Rewrite } from '@rewritetoday/sdk';\n\nconst rewrite = new Rewrite(process.env.REWRITE_API_KEY!);\n\nconst { data, error, cursor } = await rewrite.messages.list({\n limit: 25,\n status: 'DELIVERED',\n});\n\nif (error) throw error;"}],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"9a509e33-9f7c-4c79-b3ac-531ad81f1333":{"name":"after","in":"query","required":false,"description":"Cursor for forward pagination. Send exactly one of `after` or `before` when paginating.","schema":{"type":"string","example":"748395130237498412","isRequired":false,"description":"Cursor for forward pagination. Send exactly one of `after` or `before` when paginating.","uniqueKey":"","typeLabel":"string"}},"7e75e4e7-3ed0-4b6f-9cfd-f6c4396ba7b7":{"name":"before","in":"query","required":false,"description":"Cursor for backward pagination. Send exactly one of `after` or `before` when paginating.","schema":{"type":"string","example":"748395130237498412","isRequired":false,"description":"Cursor for backward pagination. Send exactly one of `after` or `before` when paginating.","uniqueKey":"","typeLabel":"string"}},"bea6da84-c662-4384-a55e-eb92e4b5f985":{"name":"limit","in":"query","required":false,"description":"Page size. Backend cursor schemas validate this between `2` and the route-specific maximum.","schema":{"type":"integer","minimum":2,"maximum":100,"isRequired":false,"description":"Page size. Backend cursor schemas validate this between `2` and the route-specific maximum.","uniqueKey":"","typeLabel":"integer"}},"ae8849f8-10b8-4351-9560-825704174347":{"name":"status","in":"query","required":false,"description":"Filter by message status.","schema":{"type":"string","enum":["SENT","QUEUED","FAILED","CANCELED","RECEIVED","SCHEDULED","DELIVERED"],"isRequired":false,"description":"Filter by message status.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"3979ea3c-3170-4462-bfe7-48937c46bdd6":{"name":"country","in":"query","required":false,"description":"Lowercase ISO 3166-1 alpha-2 country code inferred from the destination number.","schema":{"type":"string","example":"br","isRequired":false,"description":"Lowercase ISO 3166-1 alpha-2 country code inferred from the destination number.","uniqueKey":"","typeLabel":"string"}},"5b51619e-0624-4876-9816-b2fd56d54701":{"name":"encoding","in":"query","required":false,"description":"Filter by message encoding.","schema":{"type":"string","enum":["GSM7","UCS2"],"isRequired":false,"description":"Filter by message encoding.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"a903bcf3-25eb-48ec-a9f0-e70006f558c2":{"name":"scheduled","in":"query","required":false,"description":"Filter by whether the message has `scheduledAt` set.","schema":{"type":"boolean","isRequired":false,"description":"Filter by whether the message has `scheduledAt` set.","uniqueKey":"","typeLabel":"boolean"}},"576e5666-51c2-4d7b-9df8-9197b574031d":{"name":"withCounts","in":"query","required":false,"description":"When `true`, include a top-level `count` field with the total matching records.","schema":{"type":"boolean","isRequired":false,"description":"When `true`, include a top-level `count` field with the total matching records.","uniqueKey":"","typeLabel":"boolean"}}},"responses":{"06dc5b42-d979-446e-8da9-969642ad02e2":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["ok","data","cursor"],"additionalProperties":false,"properties":{"ok":{"type":"boolean","const":true,"isRequired":true,"uniqueKey":"ok","typeLabel":"boolean"},"data":{"type":"array","items":{"type":"object","required":["id","createdAt","contact","contactId","to","from","type","tags","status","country","content","encoding","templateId","deliveredAt","scheduledAt","sandbox"],"additionalProperties":false,"properties":{"id":{"type":"string","example":"748395130237498412","description":"Message identifier returned by Rewrite.","isRequired":true,"uniqueKey":"data.items.[INDEX].id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when Rewrite accepted the message.","example":"2026-03-20T14:22:31.562Z","isRequired":true,"uniqueKey":"data.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"contact":{"oneOf":[{"type":"string","description":"Resolved contact label used for this message, when the request targeted a saved contact.","example":"Fernanda","isRequired":true,"uniqueKey":"data.items.[INDEX].contact.oneOf.0","typeLabel":"string"},{"type":"null","description":"Resolved contact label used for this message, when the request targeted a saved contact.","example":"Fernanda","isRequired":true,"uniqueKey":"data.items.[INDEX].contact.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].contact","typeLabel":"string | null"},"contactId":{"oneOf":[{"type":"string","description":"Contact identifier associated with the message, when available.","example":"748395130237498515","isRequired":true,"uniqueKey":"data.items.[INDEX].contactId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Contact identifier associated with the message, when available.","example":"748395130237498515","isRequired":true,"uniqueKey":"data.items.[INDEX].contactId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].contactId","typeLabel":"string | null"},"to":{"type":"string","description":"Destination number in E.164 format.","example":"+5511999999999","isRequired":true,"uniqueKey":"data.items.[INDEX].to","typeLabel":"string"},"from":{"oneOf":[{"type":"string","description":"Resolved sender ID used for this message, when available.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].from.oneOf.0","typeLabel":"string"},{"type":"null","description":"Resolved sender ID used for this message, when available.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].from.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].from","typeLabel":"string | null"},"type":{"type":"string","enum":["SMS","OTP"],"description":"Message type stored by Rewrite.","example":"SMS","isRequired":true,"uniqueKey":"data.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"tags":{"type":"object","additionalProperties":true,"description":"Metadata attached to the message.","example":{"flow":"login","origin":"checkout"},"isRequired":true,"uniqueKey":"data.items.[INDEX].tags","typeLabel":"object"},"status":{"type":"string","enum":["SENT","QUEUED","FAILED","CANCELED","RECEIVED","SCHEDULED","DELIVERED"],"description":"Latest delivery status known by Rewrite.","example":"DELIVERED","isRequired":true,"uniqueKey":"data.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"country":{"type":"string","description":"Country inferred from the destination number.","example":"br","isRequired":true,"uniqueKey":"data.items.[INDEX].country","typeLabel":"string"},"content":{"type":"string","description":"Final SMS content sent to the destination number.","example":"Rewrite: seu codigo e 478201","isRequired":true,"uniqueKey":"data.items.[INDEX].content","typeLabel":"string"},"encoding":{"type":"string","enum":["GSM7","UCS2"],"description":"Encoding used by the provider when sending the SMS.","example":"GSM7","isRequired":true,"uniqueKey":"data.items.[INDEX].encoding","typeLabel":"enum\u003cstring>"},"templateId":{"oneOf":[{"type":"string","description":"Template used to render the message, when applicable.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].templateId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Template used to render the message, when applicable.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].templateId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].templateId","typeLabel":"string | null"},"deliveredAt":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp when the provider confirmed final delivery.","example":"2026-03-20T14:22:39.914Z","isRequired":true,"uniqueKey":"data.items.[INDEX].deliveredAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp when the provider confirmed final delivery.","example":"2026-03-20T14:22:39.914Z","isRequired":true,"uniqueKey":"data.items.[INDEX].deliveredAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].deliveredAt","typeLabel":"string\u003cdate-time> | null"},"scheduledAt":{"oneOf":[{"type":"string","format":"date-time","description":"Scheduled send time, when the message was delayed intentionally.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].scheduledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Scheduled send time, when the message was delayed intentionally.","example":null,"isRequired":true,"uniqueKey":"data.items.[INDEX].scheduledAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].scheduledAt","typeLabel":"string\u003cdate-time> | null"},"sandbox":{"type":"boolean","description":"Whether the message belongs to a sandbox project flow.","example":false,"isRequired":true,"uniqueKey":"data.items.[INDEX].sandbox","typeLabel":"boolean"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"example":[{"id":"748395130237498412","createdAt":"2026-03-20T14:22:31.562Z","contact":"Fernanda","contactId":"748395130237498515","to":"+5511999999999","from":null,"type":"SMS","tags":{"flow":"login","origin":"checkout"},"status":"DELIVERED","country":"br","content":"Rewrite: seu codigo e 478201","encoding":"GSM7","templateId":null,"deliveredAt":"2026-03-20T14:22:39.914Z","scheduledAt":null,"sandbox":false},{"id":"748395130237498413","createdAt":"2026-03-20T14:22:31.562Z","contact":"Fernanda","contactId":"748395130237498515","to":"+5511888888888","from":null,"type":"SMS","tags":{"flow":"login","origin":"checkout"},"status":"SENT","country":"br","content":"Rewrite: seu codigo e 478201","encoding":"GSM7","templateId":null,"deliveredAt":null,"scheduledAt":null,"sandbox":false}],"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"cursor":{"type":"object","required":["persist"],"additionalProperties":false,"properties":{"persist":{"type":"boolean","description":"When `true`, another page is available using the returned cursor values.","isRequired":true,"uniqueKey":"cursor.persist","typeLabel":"boolean"},"after":{"type":"string","example":"748395130237498412","description":"Cursor to request the next page.","uniqueKey":"cursor.after","typeLabel":"string"},"before":{"type":"string","example":"748395130237498412","description":"Cursor to request the previous page.","uniqueKey":"cursor.before","typeLabel":"string"}},"isRequired":true,"uniqueKey":"cursor","typeLabel":"object"},"count":{"type":"integer","description":"Only returned when `withCounts=true` is provided on the request.","example":2,"uniqueKey":"count","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","value":{"ok":true,"data":[{"id":"748395130237498412","createdAt":"2026-03-20T14:22:31.562Z","contact":"Fernanda","contactId":"748395130237498515","to":"+5511999999999","from":null,"type":"SMS","tags":{"flow":"login","origin":"checkout"},"status":"DELIVERED","country":"br","content":"Rewrite: seu codigo e 478201","encoding":"GSM7","templateId":null,"deliveredAt":"2026-03-20T14:22:39.914Z","scheduledAt":null,"sandbox":false},{"id":"748395130237498413","createdAt":"2026-03-20T14:22:31.562Z","contact":"Fernanda","contactId":"748395130237498515","to":"+5511888888888","from":null,"type":"SMS","tags":{"flow":"login","origin":"checkout"},"status":"SENT","country":"br","content":"Rewrite: seu codigo e 478201","encoding":"GSM7","templateId":null,"deliveredAt":null,"scheduledAt":null,"sandbox":false}],"count":2,"cursor":{"persist":true,"after":"748395130237498414"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0bdb8d4a-02d1-47d6-b746-f068ed2ee015":{"apiKey.message.read":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Send your API key as `Authorization: Bearer rw_...`.\n\nRequired scope: `message:read`.","scopes":[]}}},"servers":{"ab463777-3db3-4956-88e6-be5a3c0cdd11":{"url":"https://api.rewritetoday.com/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Send your API key as `Authorization: Bearer rw_...`.\n\nRequired scope: `message:read`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as `Authorization: Bearer rw_...`.\n\nRequired scope: `message:read`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey.message.read","name":"Authorization"}],"title":"apiKey.message.read"}]},"originalFileLocation":"pt-br/api/openapi-messages.json"},"subdomain":"rewrite","siteName":"Rewrite","title":"List messages - Rewrite","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/messages/list-messages","matchLevel":0},"pt-BR":{"href":"/api-reference/messages/list-messages","matchLevel":0}}},"lastModified":"2026-05-06T19:25:19.545Z","originalFileLocation":"api-reference/messages/list-messages.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rewrite\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_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=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List messages - Rewrite\">\u003cmeta data-mint-head property=\"og:description\" content=\"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rewrite\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rewritetoday.com/api-reference/messages/list-messages\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rewrite.mintlify.app/_mintlify/api/og/v2?division=Messages\u0026amp;title=List+messages\u0026amp;description=List+accepted+messages+for+the+current+project.+Results+are+returned+in+reverse+chronological+order+with+a+top-level+cursor+for+pagination.\u0026amp;theme=f7199cee5e11f5451be834b4\u0026amp;signature=485a7a5829d199f1a0d0a98778ef4b9dbbd06ea3cfb637403a2221bdb6db31c5\">\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 messages - Rewrite\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rewrite.mintlify.app/_mintlify/api/og/v2?division=Messages\u0026amp;title=List+messages\u0026amp;description=List+accepted+messages+for+the+current+project.+Results+are+returned+in+reverse+chronological+order+with+a+top-level+cursor+for+pagination.\u0026amp;theme=f7199cee5e11f5451be834b4\u0026amp;signature=485a7a5829d199f1a0d0a98778ef4b9dbbd06ea3cfb637403a2221bdb6db31c5\">\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=\"/mintlify-assets/_mintlify/favicons/rewrite/XJx96kI38Fnb4fzg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rewrite\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9A9A9A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rewritetoday.com/api-reference/messages/list-messages\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/messages/list-messages.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rewritetoday.com/#organization\",\"name\":\"Rewrite\",\"url\":\"https://docs.rewritetoday.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rewrite/XnrSR78CtWbYcqck/images/icon.png?fit=max\u0026auto=format\u0026n=XnrSR78CtWbYcqck\u0026q=85\u0026s=676b38de6b5e9fd9e6396ffc49116274\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rewritetoday.com#website\",\"name\":\"Rewrite\",\"url\":\"https://docs.rewritetoday.com\",\"publisher\":{\"@id\":\"https://docs.rewritetoday.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages#webpage\",\"url\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages\",\"name\":\"List messages\",\"description\":\"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\",\"dateModified\":\"2026-05-06T19:25:19.545Z\",\"isPartOf\":{\"@id\":\"https://docs.rewritetoday.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Messages\",\"item\":\"https://docs.rewritetoday.com/api-reference/messages/send-a-message\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List messages\",\"item\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages#apireference\",\"headline\":\"List messages\",\"name\":\"List messages\",\"description\":\"List accepted messages for the current project. Results are returned in reverse chronological order with a top-level cursor for pagination.\",\"url\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rewritetoday.com/api-reference/messages/list-messages#webpage\"},\"dateModified\":\"2026-05-06T19:25:19.545Z\",\"publisher\":{\"@id\":\"https://docs.rewritetoday.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rewritetoday.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rewrite\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Rewrite","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":"/en/welcome"}]},{"tab":"API","groups":[{"group":"Reference","pages":[{"title":"Introduction","href":"/en/api/introduction"},{"title":"Quickstart","href":"/en/api/quickstart"},{"title":"Usage limits","href":"/en/api/limits"},{"title":"Pagination","href":"/en/api/pagination"},{"title":"i18n","href":"/en/api/i18n"},{"title":"Deliverability","href":"/en/api/deliverability"},{"title":"Errors \u0026 retries","href":"/en/api/errors"}]},{"group":"Messages","pages":[{"title":"Send a message","description":"Send one SMS with inline content or by rendering a saved template. You can target either a direct E.164 number in `to` or a saved project contact in `contact`. Projects with international numbers enabled can send beyond the default `+55` traffic profile.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages","href":"/api-reference/messages/send-a-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages","href":"/api-reference/messages/list-messages"},{"title":"Send batch messages","description":"Send between 1 and 100 SMS messages in one request. Each entry can target either a direct E.164 number or a saved project contact, and Rewrite returns only the accepted message IDs.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages/batch","href":"/api-reference/messages/send-batch-messages"},{"title":"Cancel a message","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages/{id}/cancel","href":"/api-reference/messages/cancel-a-message"},{"title":"Get a message","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages/{id}","href":"/api-reference/messages/get-a-message"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json post /api-keys","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Delete API keys in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json delete /api-keys","href":"/api-reference/api-keys/delete-api-keys-in-bulk"},{"title":"Get an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys/{id}","href":"/api-reference/api-keys/get-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json patch /api-keys/{id}","href":"/api-reference/api-keys/update-an-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json delete /api-keys/{id}","href":"/api-reference/api-keys/delete-an-api-key"},{"title":"List logs for an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys/{id}/logs","href":"/api-reference/api-keys/list-logs-for-an-api-key"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Delete contacts in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts","href":"/api-reference/contacts/delete-contacts-in-bulk"},{"title":"Create contacts in batch","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts/batch","href":"/api-reference/contacts/create-contacts-in-batch"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json get /contacts/{identifier}","href":"/api-reference/contacts/get-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json patch /contacts/{id}","href":"/api-reference/contacts/update-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts/{id}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Attach tags to a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts/{id}/tags","href":"/api-reference/contacts/attach-tags-to-a-contact"},{"title":"Detach tags from a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts/{id}/tags","href":"/api-reference/contacts/detach-tags-from-a-contact"}]},{"group":"Segments","pages":[{"title":"List segments","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments","href":"/api-reference/segments/list-segments"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments","href":"/api-reference/segments/create-a-segment"},{"title":"Delete segments in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments","href":"/api-reference/segments/delete-segments-in-bulk"},{"title":"Get a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments/{id}","href":"/api-reference/segments/get-a-segment"},{"title":"Update a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json patch /segments/{id}","href":"/api-reference/segments/update-a-segment"},{"title":"Delete a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments/{id}","href":"/api-reference/segments/delete-a-segment"},{"title":"List contacts in a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments/{id}/contacts","href":"/api-reference/segments/list-contacts-in-a-segment"},{"title":"Attach one contact to a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts","href":"/api-reference/segments/attach-one-contact-to-a-segment"},{"title":"Attach contacts to a segment in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts/attach","href":"/api-reference/segments/attach-contacts-to-a-segment-in-bulk"},{"title":"Detach contacts from a segment in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts/detach","href":"/api-reference/segments/detach-contacts-from-a-segment-in-bulk"},{"title":"Detach one contact from a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments/{id}/contacts/{contact}","href":"/api-reference/segments/detach-one-contact-from-a-segment"}]},{"group":"OTP","pages":[{"title":"Send an OTP code","openapi":"/en/api/openapi-otp.json POST /otp","href":"/en/api/otp/send"},{"title":"Verify an OTP code","openapi":"/en/api/openapi-otp.json POST /otp/{id}/verify","href":"/en/api/otp/verify"}]},{"group":"Tags","pages":[{"title":"List tags","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json get /tags","href":"/api-reference/tags/list-tags"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json post /tags","href":"/api-reference/tags/create-a-tag"},{"title":"Get a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json get /tags/{id}","href":"/api-reference/tags/get-a-tag"},{"title":"Update a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json patch /tags/{id}","href":"/api-reference/tags/update-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json delete /tags/{id}","href":"/api-reference/tags/delete-a-tag"}]},{"group":"Templates","pages":[{"title":"List templates","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json get /templates","href":"/api-reference/templates/list-templates"},{"title":"Create a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json post /templates","href":"/api-reference/templates/create-a-template"},{"title":"Delete templates in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json delete /templates","href":"/api-reference/templates/delete-templates-in-bulk"},{"title":"Get a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json get /templates/{identifier}","href":"/api-reference/templates/get-a-template"},{"title":"Update a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json patch /templates/{id}","href":"/api-reference/templates/update-a-template"},{"title":"Delete a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json delete /templates/{id}","href":"/api-reference/templates/delete-a-template"},{"title":"Duplicate a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json post /templates/{id}/duplicate","href":"/api-reference/templates/duplicate-a-template"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json get /webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Create a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json post /webhooks","href":"/api-reference/webhooks/create-a-webhook"},{"title":"Delete webhooks in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json delete /webhooks","href":"/api-reference/webhooks/delete-webhooks-in-bulk"},{"title":"Get a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json get /webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json patch /webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json delete /webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook"}]},{"group":"Logs","pages":[{"title":"List request logs","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-logs.json get /logs","href":"/api-reference/logs/list-request-logs"},{"title":"Get a request log","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-logs.json get /logs/{id}","href":"/api-reference/logs/get-a-request-log"}]},{"group":"Deliveries","pages":[{"title":"List deliveries","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /deliveries","href":"/api-reference/deliveries/list-deliveries"},{"title":"Get a delivery","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /deliveries/{id}","href":"/api-reference/deliveries/get-a-delivery"},{"title":"List deliveries for a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /webhooks/{id}/deliveries","href":"/api-reference/deliveries/list-deliveries-for-a-webhook"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/en/cli/introduction"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/en/sdks/introduction"}]},{"tab":"AI","pages":[{"title":"AI","href":"/en/ai/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/en/webhooks/introduction"}]},{"tab":"Ecosystem","pages":[{"title":"Ecosystem","href":"/en/ecosystem/introduction"}]},{"tab":"Serveless","pages":[{"title":"Serveless","href":"/en/serveless/introduction"}]},{"tab":"Sandbox","pages":[{"title":"Sandbox","href":"/en/sandbox/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/en/changelog"}]}]},{"language":"pt-BR","tabs":[{"tab":"Bem-vindo","pages":[{"title":"Bem-vindo","href":"/pt-br/welcome"}]},{"tab":"API","groups":[{"group":"Referencia","pages":[{"title":"Introducao","href":"/pt-br/api/introduction"},{"title":"Quickstart","href":"/pt-br/api/quickstart"},{"title":"Limites de uso","href":"/pt-br/api/limits"},{"title":"Paginacao","href":"/pt-br/api/pagination"},{"title":"i18n","href":"/pt-br/api/i18n"},{"title":"Entregabilidade","href":"/pt-br/api/deliverability"},{"title":"Erros e retentativas","href":"/pt-br/api/errors"}]},{"group":"Messages","pages":[{"title":"Send a message","description":"Send one SMS with inline content or by rendering a saved template. You can target either a direct E.164 number in `to` or a saved project contact in `contact`. Projects with international numbers enabled can send beyond the default `+55` traffic profile.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages","href":"/api-reference/messages/send-a-message"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages","href":"/api-reference/messages/list-messages"},{"title":"Send batch messages","description":"Send between 1 and 100 SMS messages in one request. Each entry can target either a direct E.164 number or a saved project contact, and Rewrite returns only the accepted message IDs.","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages/batch","href":"/api-reference/messages/send-batch-messages"},{"title":"Cancel a message","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json post /messages/{id}/cancel","href":"/api-reference/messages/cancel-a-message"},{"title":"Get a message","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-messages.json get /messages/{id}","href":"/api-reference/messages/get-a-message"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json post /api-keys","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Delete API keys in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json delete /api-keys","href":"/api-reference/api-keys/delete-api-keys-in-bulk"},{"title":"Get an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys/{id}","href":"/api-reference/api-keys/get-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json patch /api-keys/{id}","href":"/api-reference/api-keys/update-an-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json delete /api-keys/{id}","href":"/api-reference/api-keys/delete-an-api-key"},{"title":"List logs for an API key","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-api-keys.json get /api-keys/{id}/logs","href":"/api-reference/api-keys/list-logs-for-an-api-key"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Delete contacts in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts","href":"/api-reference/contacts/delete-contacts-in-bulk"},{"title":"Create contacts in batch","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts/batch","href":"/api-reference/contacts/create-contacts-in-batch"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json get /contacts/{identifier}","href":"/api-reference/contacts/get-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json patch /contacts/{id}","href":"/api-reference/contacts/update-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts/{id}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Attach tags to a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json post /contacts/{id}/tags","href":"/api-reference/contacts/attach-tags-to-a-contact"},{"title":"Detach tags from a contact","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-contacts.json delete /contacts/{id}/tags","href":"/api-reference/contacts/detach-tags-from-a-contact"}]},{"group":"Segments","pages":[{"title":"List segments","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments","href":"/api-reference/segments/list-segments"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments","href":"/api-reference/segments/create-a-segment"},{"title":"Delete segments in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments","href":"/api-reference/segments/delete-segments-in-bulk"},{"title":"Get a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments/{id}","href":"/api-reference/segments/get-a-segment"},{"title":"Update a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json patch /segments/{id}","href":"/api-reference/segments/update-a-segment"},{"title":"Delete a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments/{id}","href":"/api-reference/segments/delete-a-segment"},{"title":"List contacts in a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json get /segments/{id}/contacts","href":"/api-reference/segments/list-contacts-in-a-segment"},{"title":"Attach one contact to a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts","href":"/api-reference/segments/attach-one-contact-to-a-segment"},{"title":"Attach contacts to a segment in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts/attach","href":"/api-reference/segments/attach-contacts-to-a-segment-in-bulk"},{"title":"Detach contacts from a segment in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json post /segments/{id}/contacts/detach","href":"/api-reference/segments/detach-contacts-from-a-segment-in-bulk"},{"title":"Detach one contact from a segment","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-segments.json delete /segments/{id}/contacts/{contact}","href":"/api-reference/segments/detach-one-contact-from-a-segment"}]},{"group":"OTP","pages":[{"title":"Send an OTP code","openapi":"/pt-br/api/openapi-otp.json POST /otp","href":"/pt-br/api/otp/send"},{"title":"Verify an OTP code","openapi":"/pt-br/api/openapi-otp.json POST /otp/{id}/verify","href":"/pt-br/api/otp/verify"}]},{"group":"Tags","pages":[{"title":"List tags","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json get /tags","href":"/api-reference/tags/list-tags"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json post /tags","href":"/api-reference/tags/create-a-tag"},{"title":"Get a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json get /tags/{id}","href":"/api-reference/tags/get-a-tag"},{"title":"Update a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json patch /tags/{id}","href":"/api-reference/tags/update-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-tags.json delete /tags/{id}","href":"/api-reference/tags/delete-a-tag"}]},{"group":"Templates","pages":[{"title":"List templates","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json get /templates","href":"/api-reference/templates/list-templates"},{"title":"Create a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json post /templates","href":"/api-reference/templates/create-a-template"},{"title":"Delete templates in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json delete /templates","href":"/api-reference/templates/delete-templates-in-bulk"},{"title":"Get a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json get /templates/{identifier}","href":"/api-reference/templates/get-a-template"},{"title":"Update a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json patch /templates/{id}","href":"/api-reference/templates/update-a-template"},{"title":"Delete a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json delete /templates/{id}","href":"/api-reference/templates/delete-a-template"},{"title":"Duplicate a template","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-templates.json post /templates/{id}/duplicate","href":"/api-reference/templates/duplicate-a-template"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json get /webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Create a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json post /webhooks","href":"/api-reference/webhooks/create-a-webhook"},{"title":"Delete webhooks in bulk","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json delete /webhooks","href":"/api-reference/webhooks/delete-webhooks-in-bulk"},{"title":"Get a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json get /webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json patch /webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-webhooks.json delete /webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook"}]},{"group":"Logs","pages":[{"title":"List request logs","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-logs.json get /logs","href":"/api-reference/logs/list-request-logs"},{"title":"Get a request log","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-logs.json get /logs/{id}","href":"/api-reference/logs/get-a-request-log"}]},{"group":"Deliveries","pages":[{"title":"List deliveries","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /deliveries","href":"/api-reference/deliveries/list-deliveries"},{"title":"Get a delivery","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /deliveries/{id}","href":"/api-reference/deliveries/get-a-delivery"},{"title":"List deliveries for a webhook","deprecated":null,"version":null,"openapi":"/pt-br/api/openapi-deliveries.json get /webhooks/{id}/deliveries","href":"/api-reference/deliveries/list-deliveries-for-a-webhook"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/pt-br/cli/introduction"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/pt-br/sdks/introduction"}]},{"tab":"AI","pages":[{"title":"AI","href":"/pt-br/ai/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/pt-br/webhooks/introduction"}]},{"tab":"Ecosystem","pages":[{"title":"Ecosystem","href":"/pt-br/ecosystem/introduction"}]},{"tab":"Serveless","pages":[{"title":"Serveless","href":"/pt-br/serveless/introduction"}]},{"tab":"Sandbox","pages":[{"title":"Sandbox","href":"/pt-br/sandbox/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/pt-br/changelog"}]}]}]},"basePath":"","title":"List messages - Rewrite","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}