Number of messages to try to fetch from the stream. Defaults to 1.The count of returned messages may be less than the requested batch size if there are fewer messages available for the consumer.
Amount of time to wait for messages to become available in the stream, in milliseconds. Defaults to 0.When wait_for is greater than 0, the request will block until any messages are available or wait_for milliseconds have passed.Therefore, you can use wait_for to implement long polling.Instead of passing in an integer, you can also pass in a duration string, like "60s", "5000ms", or "5m".
The response is an object with a data property that contains a list of messages. Within each message is an ack_id and a data property that contains the message data.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sequin","colors":{"primary":"#7855FF","light":"#F5F5F5","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/sequinstream/I2Yx_f_pmUFGglUP/logo/light.png?fit=max\u0026auto=format\u0026n=I2Yx_f_pmUFGglUP\u0026q=85\u0026s=95c3f0fb08a9c4b89ad71a91e83d535f","dark":"https://mintcdn.com/sequinstream/I2Yx_f_pmUFGglUP/logo/dark.png?fit=max\u0026auto=format\u0026n=I2Yx_f_pmUFGglUP\u0026q=85\u0026s=3bb2df88d7dfae6bccbd2f495ed88271","href":"https://sequinstream.com"},"favicon":"/favicon.png","api":{"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://api.sequinstream.com/api/"}},"navbar":{"links":[{"href":"https://discord.gg/BV8wFXvNtY","label":"Discord"},{"href":"https://join.slack.com/t/sequin-community/shared_invite/zt-37begzach-4aUwR5xt_XgivdvctZDemA","label":"Slack"}],"primary":{"type":"github","href":"https://github.com/sequinstream/sequin"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/sequinstream","x":"https://x.com/sequinstream","youtube":"https://www.youtube.com/@SequinStream","discord":"https://discord.gg/BV8wFXvNtY","slack":"https://join.slack.com/t/sequin-community/shared_invite/zt-37begzach-4aUwR5xt_XgivdvctZDemA"},"links":[{"header":"Developers","items":[{"label":"Changelog","href":"https://github.com/sequinstream/sequin/blob/main/CHANGELOG.md"},{"label":"Open Source (MIT)","href":"https://github.com/sequinstream/sequin?tab=MIT-1-ov-file"},{"label":"GitHub","href":"https://github.com/sequinstream/sequin"},{"label":"Contributing","href":"https://github.com/sequinstream/sequin/blob/main/CONTRIBUTING.md"}]},{"header":"Product","items":[{"label":"Pricing","href":"https://sequinstream.com/"},{"label":"Features","href":"https://sequinstream.com/"},{"label":"Compare Sequin","href":"https://sequinstream.com/docs/compare"}]},{"header":"Company","items":[{"label":"Blog","href":"https://blog.sequinstream.com/"},{"label":"Careers","href":"https://sequin.notion.site/"},{"label":"Contact","href":"mailto:support@sequinstream.com"}]}]},"integrations":{"koala":{"publicApiKey":"pk_ec2e6140b3d56f5eb1735350eb20e92b8002"},"posthog":{"apiKey":"phc_TZn6p4BG38FxUXrH8IvmG39TEHvqdO2kXGoqrSwN8IY"}},"contextual":{"options":["chatgpt","claude","copy"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sequinstream","hasAudioNarration":false,"actualSubdomain":"sequinstream","customDomains":["sequinstream.com"],"gitSource":{"type":"github","owner":"sequinstream","repo":"sequin","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":true,"issues":true},"entitlements":{},"buildId":"6ae92150f2d1fb3a80be2cf1:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Documentation","count":96},{"language":"default","tag":"Reference","count":34},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Management API","count":25},{"language":"default","tag":"Get started","count":23},{"language":"default","tag":"Sinks","count":20},{"language":"default","tag":"Quickstarts","count":17},{"language":"default","tag":"Sink setup guides","count":16},{"language":"default","tag":"How-to guides","count":10},{"language":"default","tag":"Postgres databases","count":7}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"reference/sequin-stream-api/receive","slug":"/reference/sequin-stream-api/receive","pageMetadata":{"title":"Receive next messages","sidebarTitle":"Receive","description":"Use the `/receive` endpoint to get one or more messages from a Sequin Stream","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/receive","href":"/reference/sequin-stream-api/receive","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Use the \", _jsx(_components.code, {\n children: \"/receive\"\n }), \" endpoint to get one or more messages from a Sequin Stream\"]\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={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[`You can use either `,_jsx(_components.code,{children:`POST`}),` or `,_jsx(_components.code,{children:`GET`}),` to receive messages from a Sequin Stream.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsx(ParamField,{path:`id_or_name`,type:`string`,required:true,id:`param-id-or-name`,children:_jsx(_components.p,{children:`The ID or name of the Sequin Stream.`})}),`\n`,_jsxs(ParamField,{body:`batch_size`,type:`integer`,placeholder:1,id:`param-batch-size`,children:[_jsxs(_components.p,{children:[`Number of messages to try to fetch from the stream. Defaults to `,_jsx(_components.code,{children:`1`}),`.`]}),_jsx(_components.p,{children:`The count of returned messages may be less than the requested batch size if there are fewer messages available for the consumer.`})]}),`\n`,_jsxs(ParamField,{body:`wait_for`,type:`integer | string`,placeholder:0,id:`param-wait-for`,children:[_jsxs(_components.p,{children:[`Amount of time to wait for messages to become available in the stream, in milliseconds. Defaults to `,_jsx(_components.code,{children:`0`}),`.`]}),_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`wait_for`}),` is greater than `,_jsx(_components.code,{children:`0`}),`, the request will block until any messages are available or `,_jsx(_components.code,{children:`wait_for`}),` milliseconds have passed.`]}),_jsxs(_components.p,{children:[`Therefore, you can use `,_jsx(_components.code,{children:`wait_for`}),` to implement long polling.`]}),_jsxs(_components.p,{children:[`Instead of passing in an integer, you can also pass in a duration string, like `,_jsx(_components.code,{children:`\"60s\"`}),`, `,_jsx(_components.code,{children:`\"5000ms\"`}),`, or `,_jsx(_components.code,{children:`\"5m\"`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[`The response is an object with a `,_jsx(_components.code,{children:`data`}),` property that contains a list of `,_jsx(_components.a,{href:`/reference/messages`,children:`messages`}),`. Within each message is an `,_jsx(_components.code,{children:`ack_id`}),` and a `,_jsx(_components.code,{children:`data`}),` property that contains the message data.`]}),`\n`,_jsx(ResponseField,{name:`data`,type:`list`,required:true,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`ack_id`,type:`string`,required:true,id:`param-ack-id`,children:_jsxs(_components.p,{children:[`You’ll use the `,_jsx(_components.code,{children:`ack_id`}),` in follow-up requests to either `,_jsx(_components.a,{href:`/reference/sequin-stream-api/ack`,children:`ack`}),` or `,_jsx(_components.a,{href:`/reference/sequin-stream-api/nack`,children:`nack`}),` this specific message.`]})}),_jsx(ResponseField,{name:`record`,type:`object`,required:true,id:`param-record`,children:_jsxs(_components.p,{children:[`A `,_jsx(_components.a,{href:`/reference/messages`,children:`message`}),` containing the message data with a key for each column in the associated table.`]})}),_jsx(ResponseField,{name:`changes`,type:`object`,id:`param-changes`,children:_jsx(_components.p,{children:`An object containing the previous values for changed fields.`})}),_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action`,children:_jsx(_components.p,{children:`The action that occurred on the message.`})}),_jsx(ResponseField,{name:`metadata`,type:`object`,required:true,id:`param-metadata`,children:_jsx(_components.p,{children:`Metadata about the Sequin Stream sink that produced the message.`})})]})})]})}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":"Receive next messages","sidebarTitle":"Receive","description":"Use the `/receive` endpoint to get one or more messages from a Sequin Stream","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/receive","href":"/reference/sequin-stream-api/receive","hidden":false}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[`You can use either `,_jsx(_components.code,{children:`POST`}),` or `,_jsx(_components.code,{children:`GET`}),` to receive messages from a Sequin Stream.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request parameters`}),`\n`,_jsx(ParamField,{path:`id_or_name`,type:`string`,required:true,id:`param-id-or-name`,children:_jsx(_components.p,{children:`The ID or name of the Sequin Stream.`})}),`\n`,_jsxs(ParamField,{body:`batch_size`,type:`integer`,placeholder:1,id:`param-batch-size`,children:[_jsxs(_components.p,{children:[`Number of messages to try to fetch from the stream. Defaults to `,_jsx(_components.code,{children:`1`}),`.`]}),_jsx(_components.p,{children:`The count of returned messages may be less than the requested batch size if there are fewer messages available for the consumer.`})]}),`\n`,_jsxs(ParamField,{body:`wait_for`,type:`integer | string`,placeholder:0,id:`param-wait-for`,children:[_jsxs(_components.p,{children:[`Amount of time to wait for messages to become available in the stream, in milliseconds. Defaults to `,_jsx(_components.code,{children:`0`}),`.`]}),_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`wait_for`}),` is greater than `,_jsx(_components.code,{children:`0`}),`, the request will block until any messages are available or `,_jsx(_components.code,{children:`wait_for`}),` milliseconds have passed.`]}),_jsxs(_components.p,{children:[`Therefore, you can use `,_jsx(_components.code,{children:`wait_for`}),` to implement long polling.`]}),_jsxs(_components.p,{children:[`Instead of passing in an integer, you can also pass in a duration string, like `,_jsx(_components.code,{children:`\"60s\"`}),`, `,_jsx(_components.code,{children:`\"5000ms\"`}),`, or `,_jsx(_components.code,{children:`\"5m\"`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[`The response is an object with a `,_jsx(_components.code,{children:`data`}),` property that contains a list of `,_jsx(_components.a,{href:`/reference/messages`,children:`messages`}),`. Within each message is an `,_jsx(_components.code,{children:`ack_id`}),` and a `,_jsx(_components.code,{children:`data`}),` property that contains the message data.`]}),`\n`,_jsx(ResponseField,{name:`data`,type:`list`,required:true,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`ack_id`,type:`string`,required:true,id:`param-ack-id`,children:_jsxs(_components.p,{children:[`You’ll use the `,_jsx(_components.code,{children:`ack_id`}),` in follow-up requests to either `,_jsx(_components.a,{href:`/reference/sequin-stream-api/ack`,children:`ack`}),` or `,_jsx(_components.a,{href:`/reference/sequin-stream-api/nack`,children:`nack`}),` this specific message.`]})}),_jsx(ResponseField,{name:`record`,type:`object`,required:true,id:`param-record`,children:_jsxs(_components.p,{children:[`A `,_jsx(_components.a,{href:`/reference/messages`,children:`message`}),` containing the message data with a key for each column in the associated table.`]})}),_jsx(ResponseField,{name:`changes`,type:`object`,id:`param-changes`,children:_jsx(_components.p,{children:`An object containing the previous values for changed fields.`})}),_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action`,children:_jsx(_components.p,{children:`The action that occurred on the message.`})}),_jsx(ResponseField,{name:`metadata`,type:`object`,required:true,id:`param-metadata`,children:_jsx(_components.p,{children:`Metadata about the Sequin Stream sink that produced the message.`})})]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Using POST`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.sequinstream.com/api/http_pull_consumers/orders-pull-consumer/receive`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_API_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"batch_size\": 10 }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Using GET`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.sequinstream.com/api/http_pull_consumers/orders-pull-consumer/receive?batch_size=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_API_TOKEN'`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`36`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`36`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ack_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MTYyeJ7abUjl1pO\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"record\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1234`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`789`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"shipped\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"changes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"update\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"table_schema\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"public\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"table_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"orders\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commit_timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-20T15:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commit_lsn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123456789`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commit_idx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"database_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myapp-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// deprecated`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"consumer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f47ac10b-58cc-4372-a567-0e02b2c3d479\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"orders_webhook\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"my-custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-custom-value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"database\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345678-9abc-def0-1234-56789abcdef0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myapp-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"annotations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"my-custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-custom-value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"database\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"myapp-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"hostname\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"db.example.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}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":"Receive next messages","sidebarTitle":"Receive","description":"Use the `/receive` endpoint to get one or more messages from a Sequin Stream","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/receive","href":"/reference/sequin-stream-api/receive","hidden":false}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request parameters","slug":"request-parameters","depth":2,"children":[]},{"title":"Response fields","slug":"response-fields","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Using POST","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.sequinstream.com/api/http_pull_consumers/orders-pull-consumer/receive\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer YOUR_API_TOKEN'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{ \"batch_size\": 10 }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Using GET","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> GET\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.sequinstream.com/api/http_pull_consumers/orders-pull-consumer/receive?batch_size=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer YOUR_API_TOKEN'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"36\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ack_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"MTYyeJ7abUjl1pO\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"record\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1234\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">789\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"shipped\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"changes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pending\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"update\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"table_schema\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"public\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"table_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"orders\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commit_timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-03-20T15:30:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commit_lsn\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123456789\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commit_idx\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"database_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"myapp-prod\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// deprecated\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"consumer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"f47ac10b-58cc-4372-a567-0e02b2c3d479\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"orders_webhook\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"annotations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"my-custom-key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my-custom-value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"database\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"12345678-9abc-def0-1234-56789abcdef0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"myapp-prod\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"annotations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"my-custom-key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my-custom-value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"database\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"myapp-prod\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"hostname\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"db.example.com\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Receive next messages","path":"/api/http_pull_consumers/{consumer_id_or_name}/receive","servers":[{"url":"https://api.sequinstream.com/api/"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id_or_name":{"schema":[{"type":"string","description":"The ID or name of the Sequin Stream.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"batch_size":[{"type":"integer","description":"Number of messages to try to fetch from the stream. Defaults to `1` . The count of returned messages may be less than the requested batch size if there are fewer messages available for the consumer."}],"wait_for":[{"type":"object","properties":{},"description":"Amount of time to wait for messages to become available in the stream, in milliseconds. Defaults to `0` . When `wait_for` is greater than `0` , the request will block until any messages are available or `wait_for` milliseconds have passed. Therefore, you can use `wait_for` to implement long polling. Instead of passing in an integer, you can also pass in a duration string, like `\"60s\"` , `\"5000ms\"` , or `\"5m\"` ."}]}}],"examples":{"example":{"value":{"batch_size":123,"wait_for":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"array","items":[{"type":"object","properties":{"ack_id":[{"type":"string","description":"You’ll use the `ack_id` in follow-up requests to either ack or nack this specific message.","required":true}],"record":[{"type":"object","properties":{},"description":"A message containing the message data with a key for each column in the associated table.","required":true}],"changes":[{"type":"object","properties":{},"description":"An object containing the previous values for changed fields."}],"action":[{"type":"string","description":"The action that occurred on the message."}],"metadata":[{"type":"object","properties":{},"description":"Metadata about the Sequin Stream sink that produced the message.","required":true}]}}],"required":true}]}}],"examples":{"example":{"value":{"data":[{"ack_id":"\u003cstring>","record":{},"changes":{},"action":"\u003cstring>","metadata":{}}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"sequinstream","siteName":"Sequin","title":"Receive next messages - Sequin","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-11-07T16:30:10.222Z","originalFileLocation":"reference/sequin-stream-api/receive.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=\"Use the /receive endpoint to get one or more messages from a Sequin Stream\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sequin\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Receive next messages - Sequin\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use the /receive endpoint to get one or more messages from a Sequin Stream\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sequin\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sequinstream.com/docs/reference/sequin-stream-api/receive\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sequinstream.mintlify.site/docs/_mintlify/api/og/v2?division=Sequin+Stream+sink\u0026amp;title=Receive+next+messages\u0026amp;description=Use+the+%60%2Freceive%60+endpoint+to+get+one+or+more+messages+from+a+Sequin+Stream\u0026amp;theme=5d38747a3bb7abd263673d5c\u0026amp;signature=f5aa6bdf3986a10ce50304b14320feab353c3881e4b6b0fca8f5b886e2af0b72\">\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=\"Receive next messages - Sequin\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use the /receive endpoint to get one or more messages from a Sequin Stream\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sequinstream.mintlify.site/docs/_mintlify/api/og/v2?division=Sequin+Stream+sink\u0026amp;title=Receive+next+messages\u0026amp;description=Use+the+%60%2Freceive%60+endpoint+to+get+one+or+more+messages+from+a+Sequin+Stream\u0026amp;theme=5d38747a3bb7abd263673d5c\u0026amp;signature=f5aa6bdf3986a10ce50304b14320feab353c3881e4b6b0fca8f5b886e2af0b72\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sequinstream/vqDNOJ4XNfAVGEX_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sequin\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7855FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sequinstream.com/docs/reference/sequin-stream-api/receive\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/reference/sequin-stream-api/receive.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sequinstream.com/#organization\",\"name\":\"Sequin\",\"url\":\"https://sequinstream.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sequinstream/I2Yx_f_pmUFGglUP/logo/light.png?fit=max\u0026auto=format\u0026n=I2Yx_f_pmUFGglUP\u0026q=85\u0026s=95c3f0fb08a9c4b89ad71a91e83d535f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://sequinstream.com/docs#website\",\"name\":\"Sequin\",\"url\":\"https://sequinstream.com/docs\",\"publisher\":{\"@id\":\"https://sequinstream.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive#webpage\",\"url\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive\",\"name\":\"Receive next messages\",\"description\":\"Use the /receive endpoint to get one or more messages from a Sequin Stream\",\"dateModified\":\"2025-11-07T16:30:10.222Z\",\"isPartOf\":{\"@id\":\"https://sequinstream.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://sequinstream.com/docs/reference/configuration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sinks\",\"item\":\"https://sequinstream.com/docs/reference/sinks/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sequin Stream sink\",\"item\":\"https://sequinstream.com/docs/reference/sinks/sequin-stream\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Receive next messages\",\"item\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive#apireference\",\"headline\":\"Receive next messages\",\"name\":\"Receive next messages\",\"description\":\"Use the /receive endpoint to get one or more messages from a Sequin Stream\",\"url\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive\",\"mainEntityOfPage\":{\"@id\":\"https://sequinstream.com/docs/reference/sequin-stream-api/receive#webpage\"},\"dateModified\":\"2025-11-07T16:30:10.222Z\",\"publisher\":{\"@id\":\"https://sequinstream.com/#organization\"},\"isPartOf\":{\"@id\":\"https://sequinstream.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sequin\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sequin\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/reference/sequin-stream-api/receive.md","siteName":"Sequin","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"What is Sequin?","icon":"book-open","iconType":"solid","href":"/introduction","hidden":false},{"group":"Quickstarts","icon":"gauge-max","pages":[{"title":"Get started with webhooks","sidebarTitle":"Webhooks","href":"/quickstart/webhooks","hidden":false},{"title":"Get started with Kafka","sidebarTitle":"Kafka","href":"/quickstart/kafka","hidden":false},{"title":"Get started with Typesense","sidebarTitle":"Typesense","href":"/quickstart/typesense","hidden":false},{"title":"Get started with Meilisearch","sidebarTitle":"Meilisearch","href":"/quickstart/meilisearch","hidden":false},{"title":"Get started with Elasticsearch","sidebarTitle":"Elasticsearch","href":"/quickstart/elasticsearch","hidden":false},{"title":"Get started with AWS SQS","sidebarTitle":"AWS SQS","href":"/quickstart/sqs","hidden":false},{"title":"Get started with AWS Kinesis","sidebarTitle":"AWS Kinesis","href":"/quickstart/kinesis","hidden":false},{"title":"Get started with AWS SNS","sidebarTitle":"AWS SNS","href":"/quickstart/sns","hidden":false},{"title":"Get started with Redis Strings","sidebarTitle":"Redis Strings","href":"/quickstart/redis-string","hidden":false},{"title":"Get started with Redis Streams","sidebarTitle":"Redis Streams","href":"/quickstart/redis-stream","hidden":false},{"title":"Get started with GCP Pub/Sub","sidebarTitle":"GCP Pub/Sub","href":"/quickstart/gcp-pubsub","hidden":false},{"title":"Get started with NATS","sidebarTitle":"NATS","href":"/quickstart/nats","hidden":false},{"title":"Get started with RabbitMQ","sidebarTitle":"RabbitMQ","href":"/quickstart/rabbitmq","hidden":false},{"title":"Get started with S2","sidebarTitle":"S2","href":"/quickstart/s2","hidden":false},{"title":"Get started with Sequin Stream","sidebarTitle":"Sequin Stream","href":"/quickstart/sequin-stream","hidden":false},{"title":"Get started with Azure Event Hubs","sidebarTitle":"Azure Event Hubs","href":"/quickstart/azure-event-hubs","hidden":false},{"title":"Get started with Redpanda","sidebarTitle":"Redpanda","href":"/quickstart/redpanda","hidden":false}]},{"title":"Getting Started with Sequin","sidebarTitle":"Running Sequin","icon":"rabbit-running","href":"/running-sequin","hidden":false},{"title":"How to connect your Postgres database to Sequin","icon":"elephant","sidebarTitle":"Connect Postgres","href":"/connect-postgres","hidden":false},{"title":"How to set up real-time Postgres CDC","icon":"plug","sidebarTitle":"Set up CDC sink","href":"/postgres-change-data-capture","hidden":false},{"title":"Compare Sequin","icon":"list-check","iconType":"solid","href":"/compare","hidden":false},{"title":"Performance","icon":"gauge-high","iconType":"solid","href":"/performance","hidden":false}]},{"group":"Sink setup guides","pages":[{"title":"How to stream Postgres to AWS Kinesis","sidebarTitle":"AWS Kinesis","href":"/how-to/stream-postgres-to-kinesis","hidden":false},{"title":"How to stream Postgres to AWS SNS","sidebarTitle":"AWS SNS","href":"/how-to/stream-postgres-to-sns","hidden":false},{"title":"How to stream Postgres to AWS SQS","sidebarTitle":"AWS SQS","href":"/how-to/stream-postgres-to-sqs","hidden":false},{"title":"How to stream Postgres to Azure Event Hubs","sidebarTitle":"Azure Event Hubs","href":"/how-to/stream-postgres-to-azure-event-hubs","hidden":false},{"title":"How to stream Postgres to Elasticsearch","sidebarTitle":"Elasticsearch","href":"/how-to/stream-postgres-to-elasticsearch","hidden":false},{"title":"How to stream Postgres to GCP Pub/Sub","sidebarTitle":"GCP Pub/Sub","href":"/how-to/stream-postgres-to-gcp-pubsub","hidden":false},{"title":"How to stream Postgres to Kafka","sidebarTitle":"Kafka","href":"/how-to/stream-postgres-to-kafka","hidden":false},{"title":"How to stream Postgres to Meilisearch","sidebarTitle":"Meilisearch","href":"/how-to/stream-postgres-to-meilisearch","hidden":false},{"title":"How to stream Postgres to NATS","sidebarTitle":"NATS","href":"/how-to/stream-postgres-to-nats","hidden":false},{"title":"How to stream Postgres to RabbitMQ","sidebarTitle":"RabbitMQ","href":"/how-to/stream-postgres-to-rabbitmq","hidden":false},{"title":"How to stream Postgres to Redis Strings","sidebarTitle":"Redis Strings","href":"/how-to/stream-postgres-to-redis-string","hidden":false},{"title":"How to stream Postgres to Redis Streams","sidebarTitle":"Redis Stream","href":"/how-to/stream-postgres-to-redis-stream","hidden":false},{"title":"How to stream Postgres to S2","sidebarTitle":"S2","href":"/how-to/stream-postgres-to-s2","hidden":false},{"title":"How to stream Postgres to Sequin Stream","sidebarTitle":"Sequin Stream","href":"/how-to/stream-postgres-to-sequin-stream","hidden":false},{"title":"How to stream Postgres to Typesense","sidebarTitle":"Typesense","href":"/how-to/stream-postgres-to-typesense","hidden":false},{"title":"How to stream Postgres to a webhook endpoint","sidebarTitle":"Webhooks","href":"/how-to/stream-postgres-to-a-webhook-endpoint","hidden":false}]},{"group":"How-to guides","pages":[{"title":"How to deploy to production","sidebarTitle":"Deploy to production","href":"/how-to/deploy-to-production","hidden":false},{"title":"Test with Sequin","sidebarTitle":"Test with Sequin","href":"/how-to/testing","hidden":false},{"title":"How to create audit logs with Sequin","sidebarTitle":"Create audit logs","href":"/how-to/create-audit-logs","hidden":false},{"title":"How to annotate database changes","sidebarTitle":"Annotate changes","href":"/how-to/annotate-changes","hidden":false},{"title":"How to replicate tables with Sequin","sidebarTitle":"Replicate tables","href":"/how-to/replicate-tables","hidden":false},{"title":"How to maintain caches with Sequin","sidebarTitle":"Maintain caches","href":"/how-to/maintain-caches","hidden":false},{"title":"How to sync search indexes with Sequin","sidebarTitle":"Sync search indexes","href":"/how-to/sync-search-indexes","hidden":false},{"title":"Set up change retention","sidebarTitle":"Set up change retention","href":"/how-to/setup-change-retention","hidden":false},{"title":"How to build automated workflows from database changes","sidebarTitle":"Build automated workflows","href":"/how-to/trigger-automated-workflows","hidden":false},{"title":"How to stream Postgres changes to AWS Lambda","sidebarTitle":"Send to AWS Lambda","href":"/how-to/stream-postgres-to-aws-lambda","hidden":false}]},{"group":"Concepts","pages":[{"title":"Sequin's consistency model","sidebarTitle":"Consistency model","href":"/concepts/consistency-model","hidden":false}]},{"group":"Reference","pages":[{"title":"Configuration","sidebarTitle":"Configuration","href":"/reference/configuration","hidden":false},{"title":"Minimum instance requirements","sidebarTitle":"Minimum requirements","href":"/reference/minimum-requirements","hidden":false},{"title":"Databases","sidebarTitle":"Databases","href":"/reference/databases","hidden":false},{"group":"Sinks","pages":[{"title":"General Sink Reference","sidebarTitle":"General Sink Reference","href":"/reference/sinks/overview","hidden":false},{"title":"AWS Kinesis sink","sidebarTitle":"AWS Kinesis sink","href":"/reference/sinks/kinesis","hidden":false},{"title":"AWS SNS sink","sidebarTitle":"AWS SNS sink","href":"/reference/sinks/sns","hidden":false},{"title":"AWS SQS sink","sidebarTitle":"AWS SQS sink","href":"/reference/sinks/sqs","hidden":false},{"title":"Azure Event Hubs sink","sidebarTitle":"Azure Event Hubs sink","href":"/reference/sinks/azure-event-hubs","hidden":false},{"title":"Elasticsearch sink","sidebarTitle":"Elasticsearch sink","href":"/reference/sinks/elasticsearch","hidden":false},{"title":"GCP Pub/Sub sink","sidebarTitle":"GCP Pub/Sub sink","href":"/reference/sinks/gcp-pubsub","hidden":false},{"title":"Kafka sink","sidebarTitle":"Kafka sink","href":"/reference/sinks/kafka","hidden":false},{"title":"Meilisearch sink","sidebarTitle":"Meilisearch sink","href":"/reference/sinks/meilisearch","hidden":false},{"title":"NATS sink","sidebarTitle":"NATS sink","href":"/reference/sinks/nats","hidden":false},{"title":"RabbitMQ sink","sidebarTitle":"RabbitMQ sink","href":"/reference/sinks/rabbitmq","hidden":false},{"title":"Redis String sink","sidebarTitle":"Redis String sink","href":"/reference/sinks/redis-string","hidden":false},{"title":"Redis Stream sink","sidebarTitle":"Redis Stream sink","href":"/reference/sinks/redis-stream","hidden":false},{"title":"S2 sink","sidebarTitle":"S2 sink","href":"/reference/sinks/s2","hidden":false},{"group":"Sequin Stream sink","pages":[{"title":"Sequin Stream Reference","sidebarTitle":"Sequin Stream Reference","description":"Reference for using Sequin's native HTTP-based stream, Sequin Stream.","href":"/reference/sinks/sequin-stream","hidden":false},{"title":"Receive next messages","sidebarTitle":"Receive","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/receive","href":"/reference/sequin-stream-api/receive","hidden":false},{"title":"Ack messages","description":"Ack messages in a Sequin Stream","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/ack","href":"/reference/sequin-stream-api/ack","hidden":false},{"title":"Nack messages","api":"POST /api/http_pull_consumers/{consumer_id_or_name}/nack","href":"/reference/sequin-stream-api/nack","hidden":false}]},{"title":"Typesense sink","sidebarTitle":"Typesense sink","href":"/reference/sinks/typesense","hidden":false},{"title":"Webhook sink","sidebarTitle":"Webhook sink","href":"/reference/sinks/webhooks","hidden":false}]},{"title":"Messages","sidebarTitle":"Messages","href":"/reference/messages","hidden":false},{"title":"Filters","sidebarTitle":"Filters","href":"/reference/filters","hidden":false},{"title":"Enrichment","href":"/reference/enrichment","hidden":false},{"title":"Transforms","href":"/reference/transforms","hidden":false},{"title":"Routing functions","sidebarTitle":"Routing","href":"/reference/routing","hidden":false},{"title":"Backfills","sidebarTitle":"Backfills","href":"/reference/backfills","hidden":false},{"title":"Change retention","sidebarTitle":"Change retention","href":"/reference/change-retention","hidden":false},{"title":"Transaction Annotations","sidebarTitle":"Annotations","href":"/reference/annotations","hidden":false},{"title":"sequin.yaml","sidebarTitle":"sequin.yaml","href":"/reference/sequin-yaml"},{"title":"Sequin CLI","sidebarTitle":"Sequin CLI","href":"/reference/cli/overview","hidden":false},{"title":"Metrics","href":"/reference/metrics","hidden":false}]},{"group":"Database setup guides","pages":[{"title":"Connecting to an AWS RDS database","sidebarTitle":"AWS RDS","icon":"aws","iconType":"solid","href":"/how-to/setup-rds","hidden":false},{"title":"Connecting to an Azure Database for PostgreSQL","sidebarTitle":"Azure Postgres","icon":"microsoft","iconType":"solid","href":"/how-to/setup-azure","hidden":false},{"title":"Connecting to a GCP Cloud SQL database","sidebarTitle":"GCP Cloud SQL","icon":"google","iconType":"solid","href":"/how-to/setup-gcp","hidden":false},{"title":"Connecting to Neon","sidebarTitle":"Neon","icon":"elephant","iconType":"solid","href":"/how-to/setup-neon","hidden":false},{"title":"Connecting to Supabase","sidebarTitle":"Supabase","icon":"bolt","iconType":"solid","href":"/how-to/setup-supabase","hidden":false},{"title":"Connecting to a TimescaleDB database","sidebarTitle":"TimescaleDB","icon":"clock","iconType":"solid","href":"/how-to/setup-timescale","hidden":false}]},{"group":"Tutorials","pages":[{"title":"Trigger AWS Lambdas from database changes","sidebarTitle":"AWS Lambda (via webhook)","href":"/guides/lambda","hidden":false},{"title":"Sink to Cloudflare Pipeline and R2 Bucket","sidebarTitle":"Sink to Cloudflare R2 Bucket","href":"/guides/cloudflare-pipeline","hidden":false},{"title":"Trigger Cloudflare Workers from database changes","sidebarTitle":"Send to Cloudflare Workers","href":"/guides/cloudflare","hidden":false},{"title":"Transactionally start a Temporal workflow when data changes in your database","sidebarTitle":"Start a Temporal workflow","href":"/guides/temporal","hidden":false},{"title":"Replicate Postgres to Tinybird","sidebarTitle":"Replicate to Tinybird","href":"/guides/tinybird","hidden":false},{"title":"Build webhook subscriptions for your users with Sequin","sidebarTitle":"Power user-facing webhooks","href":"/guides/user-webhooks","hidden":false}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/management-api/introduction"}]}]},"basePath":"","title":"Receive next messages - Sequin","buildId":"dpl_2AK98Hxhwu4fUXpx9atbv41cC328","deploymentId":"dpl_2AK98Hxhwu4fUXpx9atbv41cC328","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-EBSrFTg1.js","utils-Y_7TcRh4.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D1wvvkPH.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-aT0ty6oN.js","snippetPresets-DoNRuyJc.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CXRajFpn.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BAyOsINj.js","shallow-CIcHqV1v.js","getApiPlaygroundDisplay-C5igZwEf.js","CodeSnippet-BFWnQLNh.js","CodeSnippets-Cx2mFgZW.js","Page-DCFaZE46.js","getPastedJson-BOy09PZp.js","icon-BwmYtB6R.js","MethodPill-DAIhq-iu.js","DuplicateIcon-DFM8Q3ph.js","createIcon-0UdvzB4Z.js","DynamicMarkdown-DYYZTGpa.js","SectionHeading-BFCDRUuH.js","axios-vUo_bRtp.js"]}