Use this endpoint for team-wide message exports, sync jobs, and analytics pipelines that need to walk through message history.
Sending an empty JSON body returns the most recent messages. To continue pagination, pass the last returned message timestamp as created_at in the next request.
Recommended authentication for new integrations. Generate a short-lived JWT from your API Secret ID and API Secret Key, then pass the signed JWT as a bearer token in the Authorization header.
API Secret credentials are available in the Heymarket app under Settings > Integrations > API. The Secret Key is shown only when it is generated, so copy and store it securely before closing the dialog.
Replace CURRENT_UNIX_TIMESTAMP with the current Unix timestamp in seconds when generating the token.
Sign the JWT with HMAC-SHA256 using this signing secret:
YOUR_API_SECRET_ID||YOUR_API_SECRET_KEY
Send the signed JWT as a bearer token:
Authorization: Bearer YOUR_SIGNED_JWT
Tokens expire 5 minutes after the iat timestamp. Generate a new JWT per request, or cache it briefly for less than 5 minutes. Generate JWTs only from trusted server-side code; do not expose the API Secret Key in browser, mobile, or other client-side code.
Last returned message timestamp. Fetch messages created on and after this RFC 3339 timestamp. Message history is limited to the last 12 months; an older value is treated as 12 months ago.
Failure detail for an outbound message. Keyed by target for carrier and group failures; some channels key it by provider metadata (provider, message, status_code) instead.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Heymarket API Documentation","colors":{"primary":"#FACC15","light":"#FEF08A","dark":"#0F0F0F"},"logo":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","favicon":"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019","navbar":{"links":[{"href":"/api-reference/openapi/heymarket-openapi-3.1.2.yaml","label":"OpenAPI spec"},{"href":"https://www.heymarket.com/","label":"Website"},{"href":"https://www.heymarket.com/demo/","label":"Book a demo"}],"primary":{"type":"button","label":"Sign in","href":"https://app.heymarket.com"}},"footer":{"socials":{"website":"https://www.heymarket.com/"},"links":[{"header":"Heymarket","items":[{"label":"Website","href":"https://www.heymarket.com/"},{"label":"Sign in","href":"https://app.heymarket.com"},{"label":"Book a demo","href":"https://www.heymarket.com/demo"},{"label":"Contact sales","href":"https://www.heymarket.com/contact-sales"}]}]},"contextual":{"options":["download-spec","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"heymarket","hasAudioNarration":false,"actualSubdomain":"heymarket","customDomains":["developers.heymarket.com"],"gitSource":{"type":"github","owner":"commonsun","repo":"docs","deployBranch":"master","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeb83d173ca05196a82b456","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"Contacts","count":26},{"language":"default","tag":"Other Resources","count":15},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Lists","count":10},{"language":"default","tag":"Conversations","count":9},{"language":"default","tag":"Links","count":8},{"language":"default","tag":"Templates","count":7},{"language":"default","tag":"Core Concepts","count":6},{"language":"default","tag":"Messages","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"rbac-expansion","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/messages/list-all","slug":"/api-reference/messages/list-all","pageMetadata":{"title":"List all messages","sidebarTitle":"List All","description":"Paginate messages across your team.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all","href":"/api-reference/messages/list-all"},"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: \"Paginate messages across your team.\"\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];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this endpoint for team-wide message exports, sync jobs, and analytics pipelines that need to walk through message history.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Sending an empty JSON body returns the most recent messages. To continue pagination, pass the last returned message timestamp as `,_jsx(_components.code,{children:`created_at`}),` in the next request.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{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":{"config":{},"pageMetadata":{"title":"List all messages","sidebarTitle":"List All","description":"Paginate messages across your team.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all","href":"/api-reference/messages/list-all"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Paginate messages across your team.","requestBody":"a321e8c4-0de1-4bc1-abe7-84b776ff02f5","responses":{"200":"a8af1561-8401-4734-961f-2fca40152996","400":"19386e66-686a-47b5-9706-e81ddc229a2a","401":"b4ffbe13-39df-44ad-a1b0-f00057d54460","429":"36420270-e040-4505-86dd-f411536e6b06","default":"6153f041-703e-4bfc-980b-5449470c0d08"},"security":["15921acc-af23-4b05-b54c-2031059463c6","f23c1dc7-1d5d-41ce-a92c-98679fd34b49"],"summary":"Paginate Message","tags":["Messages"],"operationId":"v1ListMessage","method":"post","type":"path","servers":["42faa54b-fc72-4b87-a8b5-8e3b196b5907"],"path":"/v1/messages/all","baseUrlOptions":["https://api.heymarket.com"],"title":"Paginate Message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"required":["created_at"],"properties":{"created_at":{"description":"Last returned message timestamp. Fetch messages created on and after this RFC 3339 timestamp. Message history is limited to the last 12 months; an older value is treated as 12 months ago.","format":"date-time","type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"ascending":{"description":"True to sort in ascending order. Defaults to descending.","type":"boolean","uniqueKey":"ascending","typeLabel":"boolean"},"inbox_id":{"description":"Optional inbox ID to filter messages.","type":"integer","uniqueKey":"inbox_id","typeLabel":"integer"},"limit":{"description":"Messages to return per page. Defaults to 30.","type":"integer","uniqueKey":"limit","typeLabel":"integer"},"order":{"description":"Field to sort by. Valid values are created_at and updated_at.","type":"string","uniqueKey":"order","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"created_at":"2023-11-07T05:31:56Z","ascending":true,"inbox_id":123,"limit":123,"order":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Message pagination json","required":true,"exampleType":"generated"},"responses":{"a8af1561-8401-4734-961f-2fca40152996":{"description":"array of messages in team","headers":{"X-Heymarket-History-Start":{"description":"Present only when `created_at` was omitted or older than 12 months. The [RFC 3339](http://www.faqs.org/rfcs/rfc3339.html) timestamp used as the start of the history instead.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"items":{"properties":{"author":{"type":"string","uniqueKey":"items.[INDEX].author","typeLabel":"string"},"broadcast_id":{"type":"integer","uniqueKey":"items.[INDEX].broadcast_id","typeLabel":"integer"},"conversation":{"properties":{"assigned":{"type":"integer","uniqueKey":"items.[INDEX].conversation.assigned","typeLabel":"integer"},"blocked":{"type":"boolean","uniqueKey":"items.[INDEX].conversation.blocked","typeLabel":"boolean"},"channel":{"type":"string","uniqueKey":"items.[INDEX].conversation.channel","typeLabel":"string"},"created":{"type":"string","uniqueKey":"items.[INDEX].conversation.created","typeLabel":"string"},"creator":{"type":"integer","uniqueKey":"items.[INDEX].conversation.creator","typeLabel":"integer"},"email_noti":{"type":"boolean","uniqueKey":"items.[INDEX].conversation.email_noti","typeLabel":"boolean"},"id":{"type":"integer","uniqueKey":"items.[INDEX].conversation.id","typeLabel":"integer"},"inbox":{"type":"integer","uniqueKey":"items.[INDEX].conversation.inbox","typeLabel":"integer"},"last_inbound":{"type":"integer","uniqueKey":"items.[INDEX].conversation.last_inbound","typeLabel":"integer"},"local_id":{"type":"string","uniqueKey":"items.[INDEX].conversation.local_id","typeLabel":"string"},"members":{"items":{"properties":{"id":{"type":"integer","uniqueKey":"items.[INDEX].conversation.members.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"items.[INDEX].conversation.members.items.[INDEX].name","typeLabel":"string"}},"type":"object","uniqueKey":"items.[INDEX].conversation.members.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"items.[INDEX].conversation.members","typeLabel":"object[]"},"muted":{"type":"boolean","uniqueKey":"items.[INDEX].conversation.muted","typeLabel":"boolean"},"name":{"type":"string","uniqueKey":"items.[INDEX].conversation.name","typeLabel":"string"},"noreply":{"type":"string","uniqueKey":"items.[INDEX].conversation.noreply","typeLabel":"string"},"op":{"type":"string","uniqueKey":"items.[INDEX].conversation.op","typeLabel":"string"},"read":{"type":"integer","uniqueKey":"items.[INDEX].conversation.read","typeLabel":"integer"},"replied":{"type":"boolean","uniqueKey":"items.[INDEX].conversation.replied","typeLabel":"boolean"},"snooze_till":{"type":"string","uniqueKey":"items.[INDEX].conversation.snooze_till","typeLabel":"string"},"status":{"type":"string","uniqueKey":"items.[INDEX].conversation.status","typeLabel":"string"},"super":{"type":"integer","uniqueKey":"items.[INDEX].conversation.super","typeLabel":"integer"},"support":{"type":"boolean","uniqueKey":"items.[INDEX].conversation.support","typeLabel":"boolean"},"target":{"type":"string","uniqueKey":"items.[INDEX].conversation.target","typeLabel":"string"},"type":{"type":"string","uniqueKey":"items.[INDEX].conversation.type","typeLabel":"string"},"updated":{"type":"string","uniqueKey":"items.[INDEX].conversation.updated","typeLabel":"string"}},"type":"object","uniqueKey":"items.[INDEX].conversation","typeLabel":"object"},"custom":{"properties":{"data":{"items":{"type":"integer","uniqueKey":"items.[INDEX].custom.data.items.[INDEX]","typeLabel":"integer"},"type":"array","uniqueKey":"items.[INDEX].custom.data","typeLabel":"integer[]"},"type":{"type":"string","uniqueKey":"items.[INDEX].custom.type","typeLabel":"string"}},"type":"object","uniqueKey":"items.[INDEX].custom","typeLabel":"object"},"date":{"type":"string","uniqueKey":"items.[INDEX].date","typeLabel":"string"},"flagged":{"type":"boolean","uniqueKey":"items.[INDEX].flagged","typeLabel":"boolean"},"id":{"type":"integer","uniqueKey":"items.[INDEX].id","typeLabel":"integer"},"link_url":{"type":"string","uniqueKey":"items.[INDEX].link_url","typeLabel":"string"},"local_id":{"type":"string","uniqueKey":"items.[INDEX].local_id","typeLabel":"string"},"media":{"type":"string","uniqueKey":"items.[INDEX].media","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"items.[INDEX].phone","typeLabel":"string"},"raw_error":{"type":"string","description":"Failure reason for an outbound message. Set when `status` is `failed`, `undelivered`, `dropped`, or `bounce`.","uniqueKey":"items.[INDEX].raw_error","typeLabel":"string"},"status":{"type":"string","uniqueKey":"items.[INDEX].status","typeLabel":"string"},"super":{"type":"integer","uniqueKey":"items.[INDEX].super","typeLabel":"integer"},"support":{"type":"boolean","uniqueKey":"items.[INDEX].support","typeLabel":"boolean"},"target":{"type":"string","uniqueKey":"items.[INDEX].target","typeLabel":"string"},"target_errors":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"items.[INDEX].target_errors.additionalProperties","typeLabel":"string"},"description":"Failure detail for an outbound message. Keyed by target for carrier and group failures; some channels key it by provider metadata (`provider`, `message`, `status_code`) instead.","uniqueKey":"items.[INDEX].target_errors","typeLabel":"object"},"text":{"type":"string","uniqueKey":"items.[INDEX].text","typeLabel":"string"},"type":{"type":"string","uniqueKey":"items.[INDEX].type","typeLabel":"string"},"updated":{"type":"string","uniqueKey":"items.[INDEX].updated","typeLabel":"string"},"user":{"type":"integer","uniqueKey":"items.[INDEX].user","typeLabel":"integer"}},"type":"object","uniqueKey":"items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"","typeLabel":"object[]"},"examples":{"Example":{"title":"Example","value":[{"author":"\u003cstring>","broadcast_id":123,"conversation":{"assigned":123,"blocked":true,"channel":"\u003cstring>","created":"\u003cstring>","creator":123,"email_noti":true,"id":123,"inbox":123,"last_inbound":123,"local_id":"\u003cstring>","members":[{"id":123,"name":"\u003cstring>"}],"muted":true,"name":"\u003cstring>","noreply":"\u003cstring>","op":"\u003cstring>","read":123,"replied":true,"snooze_till":"\u003cstring>","status":"\u003cstring>","super":123,"support":true,"target":"\u003cstring>","type":"\u003cstring>","updated":"\u003cstring>"},"custom":{"data":[123],"type":"\u003cstring>"},"date":"\u003cstring>","flagged":true,"id":123,"link_url":"\u003cstring>","local_id":"\u003cstring>","media":"\u003cstring>","phone":"\u003cstring>","raw_error":"\u003cstring>","status":"\u003cstring>","super":123,"support":true,"target":"\u003cstring>","target_errors":{},"text":"\u003cstring>","type":"\u003cstring>","updated":"\u003cstring>","user":123}]}},"exampleType":"generated"}},"exampleType":"generated"},"19386e66-686a-47b5-9706-e81ddc229a2a":{"description":"bad_data","content":{"application/json":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"b4ffbe13-39df-44ad-a1b0-f00057d54460":{"description":"Authentication credentials were missing or invalid.","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"response":{"title":"response","value":"Unauthorized"}},"exampleType":"examples"}},"exampleType":"examples"},"36420270-e040-4505-86dd-f411536e6b06":{"description":"The request exceeded the API rate limit.","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"response":{"title":"response","value":"too many requests"}},"exampleType":"examples"}},"exampleType":"examples"},"6153f041-703e-4bfc-980b-5449470c0d08":{"description":"Unexpected server error.","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"response":{"title":"response","value":"error"}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"15921acc-af23-4b05-b54c-2031059463c6":{"ApiSecretJwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Recommended authentication for new integrations. Generate a short-lived JWT from your API Secret ID and API Secret Key, then pass the signed JWT as a bearer token in the `Authorization` header.\n\nAPI Secret credentials are available in the Heymarket app under Settings > Integrations > API. The Secret Key is shown only when it is generated, so copy and store it securely before closing the dialog.\n\nUse the following JWT values:\n\n```json\n{\n \"alg\": \"HS256\",\n \"typ\": \"JWT\"\n}\n```\n\n```text\n{\n \"iss\": \"YOUR_API_SECRET_ID\",\n \"iat\": CURRENT_UNIX_TIMESTAMP\n}\n```\n\nReplace `CURRENT_UNIX_TIMESTAMP` with the current Unix timestamp in seconds when generating the token.\n\nSign the JWT with HMAC-SHA256 using this signing secret:\n\n```text\nYOUR_API_SECRET_ID||YOUR_API_SECRET_KEY\n```\n\nSend the signed JWT as a bearer token:\n\n```text\nAuthorization: Bearer YOUR_SIGNED_JWT\n```\n\nTokens expire 5 minutes after the `iat` timestamp. Generate a new JWT per request, or cache it briefly for less than 5 minutes. Generate JWTs only from trusted server-side code; do not expose the API Secret Key in browser, mobile, or other client-side code.","scopes":[],"schemeName":"ApiSecretJwtAuth"}},"f23c1dc7-1d5d-41ce-a92c-98679fd34b49":{"LegacyApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"Team API key","description":"Legacy authentication for existing integrations. Provide the Heymarket team API key as a bearer token in the `Authorization` header.\n\n```text\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI key authentication is planned for deprecation. New integrations should use API Secret JWT authentication.","scopes":[],"schemeName":"LegacyApiKeyAuth"}}},"servers":{"42faa54b-fc72-4b87-a8b5-8e3b196b5907":{"url":"https://api.heymarket.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Recommended authentication for new integrations. Generate a short-lived JWT from your API Secret ID and API Secret Key, then pass the signed JWT as a bearer token in the `Authorization` header.\n\nAPI Secret credentials are available in the Heymarket app under Settings > Integrations > API. The Secret Key is shown only when it is generated, so copy and store it securely before closing the dialog.\n\nUse the following JWT values:\n\n```json\n{\n \"alg\": \"HS256\",\n \"typ\": \"JWT\"\n}\n```\n\n```text\n{\n \"iss\": \"YOUR_API_SECRET_ID\",\n \"iat\": CURRENT_UNIX_TIMESTAMP\n}\n```\n\nReplace `CURRENT_UNIX_TIMESTAMP` with the current Unix timestamp in seconds when generating the token.\n\nSign the JWT with HMAC-SHA256 using this signing secret:\n\n```text\nYOUR_API_SECRET_ID||YOUR_API_SECRET_KEY\n```\n\nSend the signed JWT as a bearer token:\n\n```text\nAuthorization: Bearer YOUR_SIGNED_JWT\n```\n\nTokens expire 5 minutes after the `iat` timestamp. Generate a new JWT per request, or cache it briefly for less than 5 minutes. Generate JWTs only from trusted server-side code; do not expose the API Secret Key in browser, mobile, or other client-side code.","scopes":[],"schemeName":"ApiSecretJwtAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Recommended authentication for new integrations. Generate a short-lived JWT from your API Secret ID and API Secret Key, then pass the signed JWT as a bearer token in the `Authorization` header.\n\nAPI Secret credentials are available in the Heymarket app under Settings > Integrations > API. The Secret Key is shown only when it is generated, so copy and store it securely before closing the dialog.\n\nUse the following JWT values:\n\n```json\n{\n \"alg\": \"HS256\",\n \"typ\": \"JWT\"\n}\n```\n\n```text\n{\n \"iss\": \"YOUR_API_SECRET_ID\",\n \"iat\": CURRENT_UNIX_TIMESTAMP\n}\n```\n\nReplace `CURRENT_UNIX_TIMESTAMP` with the current Unix timestamp in seconds when generating the token.\n\nSign the JWT with HMAC-SHA256 using this signing secret:\n\n```text\nYOUR_API_SECRET_ID||YOUR_API_SECRET_KEY\n```\n\nSend the signed JWT as a bearer token:\n\n```text\nAuthorization: Bearer YOUR_SIGNED_JWT\n```\n\nTokens expire 5 minutes after the `iat` timestamp. Generate a new JWT per request, or cache it briefly for less than 5 minutes. Generate JWTs only from trusted server-side code; do not expose the API Secret Key in browser, mobile, or other client-side code.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiSecretJwtAuth","name":"Authorization"}],"title":"ApiSecretJwtAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Team API key","description":"Legacy authentication for existing integrations. Provide the Heymarket team API key as a bearer token in the `Authorization` header.\n\n```text\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI key authentication is planned for deprecation. New integrations should use API Secret JWT authentication.","scopes":[],"schemeName":"LegacyApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Legacy authentication for existing integrations. Provide the Heymarket team API key as a bearer token in the `Authorization` header.\n\n```text\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI key authentication is planned for deprecation. New integrations should use API Secret JWT authentication.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"LegacyApiKeyAuth","name":"Authorization"}],"title":"LegacyApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi/heymarket-openapi-3.1.2.yaml"},"subdomain":"heymarket","siteName":"Heymarket API Documentation","title":"List all messages - Heymarket API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-19T11:20:12.424Z","originalFileLocation":"api-reference/messages/list-all.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=\"Paginate messages across your team.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List all messages - Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Paginate messages across your team.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.heymarket.com/api-reference/messages/list-all\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://heymarket.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=List+all+messages\u0026amp;description=Paginate+messages+across+your+team.\u0026amp;theme=3af5b0b317c33f599ae9a1e6\u0026amp;signature=8f719cfdbdd4659428599777adf9c08f1ce1f6237410450700156ddb85f4542c\">\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 all messages - Heymarket API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Paginate messages across your team.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://heymarket.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=List+all+messages\u0026amp;description=Paginate+messages+across+your+team.\u0026amp;theme=3af5b0b317c33f599ae9a1e6\u0026amp;signature=8f719cfdbdd4659428599777adf9c08f1ce1f6237410450700156ddb85f4542c\">\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/heymarket/PnhlhpViHYUR1Ls5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Heymarket API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FACC15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.heymarket.com/api-reference/messages/list-all\">\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-all.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.heymarket.com/#organization\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/heymarket/GJKeY5d8-xGJrsi0/images/logo-hey-black.svg?fit=max\u0026auto=format\u0026n=GJKeY5d8-xGJrsi0\u0026q=85\u0026s=f94b7dce9d8015a0cc51ec555b7e3019\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.heymarket.com#website\",\"name\":\"Heymarket API Documentation\",\"url\":\"https://developers.heymarket.com\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.heymarket.com/api-reference/messages/list-all#webpage\",\"url\":\"https://developers.heymarket.com/api-reference/messages/list-all\",\"name\":\"List all messages\",\"description\":\"Paginate messages across your team.\",\"dateModified\":\"2026-05-19T11:20:12.424Z\",\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.heymarket.com/api-reference/messages/list-all#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.heymarket.com/api-reference/messages/list-all#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Messages\",\"item\":\"https://developers.heymarket.com/api-reference/messages/send\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List all messages\",\"item\":\"https://developers.heymarket.com/api-reference/messages/list-all\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.heymarket.com/api-reference/messages/list-all#apireference\",\"headline\":\"List all messages\",\"name\":\"List all messages\",\"description\":\"Paginate messages across your team.\",\"url\":\"https://developers.heymarket.com/api-reference/messages/list-all\",\"mainEntityOfPage\":{\"@id\":\"https://developers.heymarket.com/api-reference/messages/list-all#webpage\"},\"dateModified\":\"2026-05-19T11:20:12.424Z\",\"publisher\":{\"@id\":\"https://developers.heymarket.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.heymarket.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Heymarket API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Heymarket API Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Contacts","pages":[{"title":"Contacts API overview","sidebarTitle":"Overview","href":"/api-reference/contacts/overview"},{"title":"Create contact","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact","href":"/api-reference/contacts/create"},{"title":"Create contact (v2)","sidebarTitle":"Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact","href":"/api-reference/contacts/create-v2"},{"title":"Get contact","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/contact/{id}","href":"/api-reference/contacts/get"},{"title":"Get contact by phone or ID","sidebarTitle":"Get by Phone","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/get","href":"/api-reference/contacts/get-by-phone-or-id"},{"title":"Get contact (v2)","sidebarTitle":"Get v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}","href":"/api-reference/contacts/get-v2"},{"title":"List contacts","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts","href":"/api-reference/contacts/list"},{"title":"List contacts (v2)","sidebarTitle":"List v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/list","href":"/api-reference/contacts/list-v2"},{"title":"Count contacts","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/count","href":"/api-reference/contacts/count"},{"title":"List contact fields","sidebarTitle":"Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact-fields","href":"/api-reference/contacts/contact-fields"},{"title":"Create contact fields","sidebarTitle":"Create Contact Fields","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contacts/fields","href":"/api-reference/contacts/create-contact-fields"},{"title":"Update contact","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/contact/{id}","href":"/api-reference/contacts/update"},{"title":"Update contact (v2)","sidebarTitle":"Update v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}","href":"/api-reference/contacts/update-v2"},{"title":"Delete contact","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/contact/{id}","href":"/api-reference/contacts/delete"},{"title":"Delete contact (v2)","sidebarTitle":"Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}","href":"/api-reference/contacts/delete-v2"},{"title":"Batch create contacts","sidebarTitle":"Batch Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/contacts","href":"/api-reference/contacts/bulk"},{"title":"Bulk create contacts (v2)","sidebarTitle":"Bulk Create v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts","href":"/api-reference/contacts/bulk-v2"},{"title":"Bulk delete contacts (v2)","sidebarTitle":"Bulk Delete v2","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contacts","href":"/api-reference/contacts/bulk-delete-v2"},{"title":"Search contacts","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contacts/search","href":"/api-reference/contacts/search"},{"title":"Create contact channel","sidebarTitle":"Create Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels"},{"title":"Update contact channel","sidebarTitle":"Update Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/contact/{contactID}/channel","href":"/api-reference/contacts/channels-update"},{"title":"Get contact channel","sidebarTitle":"Get Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-get"},{"title":"List contact channels","sidebarTitle":"List Channels","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v2/contact/{contactID}/channels","href":"/api-reference/contacts/channels-list"},{"title":"Delete contact channel","sidebarTitle":"Delete Channel","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/contact/{contactID}/channel/{channelType}","href":"/api-reference/contacts/channels-delete"},{"title":"Get contact status","sidebarTitle":"Get Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/status","href":"/api-reference/contacts/status"},{"title":"Set contact status","sidebarTitle":"Set Status","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/contact/set_status","href":"/api-reference/contacts/set-status"}]},{"group":"Messages","pages":[{"title":"Send SMS and MMS messages","sidebarTitle":"Send Message","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/message/send","href":"/api-reference/messages/send"},{"title":"Send email messages","sidebarTitle":"Send Email","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/email/send","href":"/api-reference/messages/send-email"},{"title":"Get message history from a conversation","sidebarTitle":"Get History","description":"Get the 50 most recent messages from a conversation by phone number and inbox.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/messages","href":"/api-reference/messages/get-history"},{"title":"List all messages","sidebarTitle":"List All","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all","href":"/api-reference/messages/list-all"},{"title":"Count messages","sidebarTitle":"Count","description":"Get the count of team messages that match the pagination filters.","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/messages/all/count","href":"/api-reference/messages/count"}]},{"group":"Links","pages":[{"title":"Links API overview and object","sidebarTitle":"Overview","href":"/api-reference/links/overview"},{"title":"Create link","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/link","href":"/api-reference/links/create"},{"title":"Bulk create links","sidebarTitle":"Bulk Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/batch/links","href":"/api-reference/links/bulk-create"},{"title":"Get link","sidebarTitle":"Get by ID","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/{id}","href":"/api-reference/links/get"},{"title":"Get link by short code","sidebarTitle":"Get by Short Code","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/link/code/{code}","href":"/api-reference/links/get-by-short-code"},{"title":"Update link URL","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/link/{id}","href":"/api-reference/links/update"},{"title":"Delete link","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/link/{id}","href":"/api-reference/links/delete"},{"title":"List links","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/links","href":"/api-reference/links/list"}]},{"group":"Conversations","pages":[{"title":"List conversations","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations","href":"/api-reference/conversations/list"},{"title":"Count conversations","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/count","href":"/api-reference/conversations/count"},{"title":"Get conversation","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/conversations/{id}","href":"/api-reference/conversations/get"},{"title":"Open conversation","sidebarTitle":"Open","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/open","href":"/api-reference/conversations/open-close"},{"title":"Close conversation","sidebarTitle":"Close","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/close","href":"/api-reference/conversations/close"},{"title":"Mark conversation as read","sidebarTitle":"Mark Read","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/read","href":"/api-reference/conversations/mark-read"},{"title":"Mark conversation as unread","sidebarTitle":"Mark Unread","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/unread","href":"/api-reference/conversations/mark-unread"},{"title":"Reassign conversation","sidebarTitle":"Reassign","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/reassign","href":"/api-reference/conversations/reassign"},{"title":"Transfer conversation","sidebarTitle":"Transfer","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/conversations/transfer","href":"/api-reference/conversations/transfer"}]},{"group":"Lists","pages":[{"title":"Lists API overview","sidebarTitle":"Overview","href":"/api-reference/lists/overview"},{"title":"Paginate lists","sidebarTitle":"Paginate","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/paginate","href":"/api-reference/lists/paginate-v2"},{"title":"Count lists","sidebarTitle":"Count","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/count","href":"/api-reference/lists/count-v2"},{"title":"Search lists","sidebarTitle":"Search","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists/search","href":"/api-reference/lists/search-v2"},{"title":"Create list","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v2/lists","href":"/api-reference/lists/create"},{"title":"Update list","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v2/lists/{id}","href":"/api-reference/lists/update"},{"title":"Delete list","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v2/lists/{id}","href":"/api-reference/lists/delete"},{"title":"Paginate lists (v1)","sidebarTitle":"Paginate (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists","href":"/api-reference/lists/list"},{"title":"Count lists (v1)","sidebarTitle":"Count (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/lists/count","href":"/api-reference/lists/count"},{"title":"Search lists (v1)","sidebarTitle":"Search (v1)","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/search/lists","href":"/api-reference/lists/search"}]},{"group":"Templates","pages":[{"title":"Templates API overview and objects","sidebarTitle":"Overview","href":"/api-reference/templates/overview"},{"title":"Template operations","sidebarTitle":"Operations","href":"/api-reference/templates/manage"},{"title":"List templates","sidebarTitle":"List","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/templates","href":"/api-reference/templates/list"},{"title":"Create template","sidebarTitle":"Create","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/template","href":"/api-reference/templates/create"},{"title":"Get template","sidebarTitle":"Get","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/template/{id}","href":"/api-reference/templates/get"},{"title":"Update template","sidebarTitle":"Update","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/template/{id}","href":"/api-reference/templates/update"},{"title":"Delete template","sidebarTitle":"Delete","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/template/{id}","href":"/api-reference/templates/delete"}]},{"group":"Other Resources","pages":[{"title":"Create scheduled message","sidebarTitle":"Create Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/schedule","href":"/api-reference/schedule"},{"title":"Get scheduled message","sidebarTitle":"Get Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/schedule/{id}","href":"/api-reference/schedule-get"},{"title":"Update scheduled message","sidebarTitle":"Update Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml PUT /v1/schedule/{id}","href":"/api-reference/schedule-update"},{"title":"Delete scheduled message","sidebarTitle":"Delete Schedule","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/schedule/{id}","href":"/api-reference/schedule-delete"},{"title":"Get inboxes","sidebarTitle":"Inboxes","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/inboxes","href":"/api-reference/inboxes"},{"title":"Get team","sidebarTitle":"Team","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/team","href":"/api-reference/team"},{"title":"Get users","sidebarTitle":"Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/users/get","href":"/api-reference/users"},{"title":"Update users","sidebarTitle":"Update Users","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/users/update","href":"/api-reference/users-update"},{"title":"List tags","sidebarTitle":"Tags","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tags","href":"/api-reference/tags"},{"title":"Create tag","sidebarTitle":"Create Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/tag","href":"/api-reference/tags-create"},{"title":"Get tag","sidebarTitle":"Get Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/tag/{id}","href":"/api-reference/tags-get"},{"title":"Delete tag","sidebarTitle":"Delete Tag","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml DELETE /v1/tag/{id}","href":"/api-reference/tags-delete"},{"title":"List surveys","sidebarTitle":"Surveys","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml POST /v1/surveys","href":"/api-reference/surveys"},{"title":"Get survey","sidebarTitle":"Get Survey","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml GET /v1/survey/{id}","href":"/api-reference/surveys-get"},{"title":"Receive webhook event","sidebarTitle":"Webhook Event","openapi":"api-reference/openapi/heymarket-openapi-3.1.2.yaml webhook heymarketEvent","href":"/api-reference/webhooks"}]}]}]},"basePath":"","title":"List all messages - Heymarket API Documentation","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D9ithiIZ.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}