Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user’s latest message.
POST
/
v2
/
notify
/
reply
import Prelude from "@prelude.so/sdk";const client = new Prelude();async function main() { const response = await client.notify.reply({ to: "+33612345678", text: "Thanks for reaching out! We'll look into your request.", reply_to: "im_01k8aq2zggeyssvt53zgvpx63a", }); console.log(response.id);}main();
package mainimport ( "context" "fmt" "github.com/prelude-so/go-sdk" "github.com/prelude-so/go-sdk/option")func main() { client := prelude.NewClient() response, err := client.Notify.Reply(context.TODO(), prelude.NotifyReplyParams{ To: prelude.F("+33612345678"), Text: prelude.F("Thanks for reaching out! We'll look into your request."), ReplyTo: prelude.F("im_01k8aq2zggeyssvt53zgvpx63a"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.ID)}
import osfrom prelude_python_sdk import Preludeclient = Prelude()response = client.notify.reply( to="+33612345678", text="Thanks for reaching out! We'll look into your request.", reply_to="im_01k8aq2zggeyssvt53zgvpx63a",)print(response.id)
{ "id": "tx_01k8ap1btqf5r9fq2c8ax5fhc9", "to": "+33612345678", "text": "Thanks for reaching out! We'll look into your request.", "reply_to": "im_01k8aq2zggeyssvt53zgvpx63a", "created_at": "2025-10-24T12:00:00Z", "media": { "type": "audio", "url": "https://your-app.com/media/voice-note.ogg" }, "callback_url": "https://your-app.com/webhooks/notify", "correlation_id": "support-ticket-42"}
{
"code": "invalid_phone_number",
"message": "The provided phone number is invalid. Provide a valid E.164 phone number.",
"type": "bad_request",
"request_id": "3d19215e-2991-4a05-a41a-527314e6ff6a",
"param": "phone_number"
}
import Prelude from "@prelude.so/sdk";const client = new Prelude();async function main() { const response = await client.notify.reply({ to: "+33612345678", text: "Thanks for reaching out! We'll look into your request.", reply_to: "im_01k8aq2zggeyssvt53zgvpx63a", }); console.log(response.id);}main();
package mainimport ( "context" "fmt" "github.com/prelude-so/go-sdk" "github.com/prelude-so/go-sdk/option")func main() { client := prelude.NewClient() response, err := client.Notify.Reply(context.TODO(), prelude.NotifyReplyParams{ To: prelude.F("+33612345678"), Text: prelude.F("Thanks for reaching out! We'll look into your request."), ReplyTo: prelude.F("im_01k8aq2zggeyssvt53zgvpx63a"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.ID)}
import osfrom prelude_python_sdk import Preludeclient = Prelude()response = client.notify.reply( to="+33612345678", text="Thanks for reaching out! We'll look into your request.", reply_to="im_01k8aq2zggeyssvt53zgvpx63a",)print(response.id)
A reply leaves on the channel the inbound message came in on: a native WhatsApp quoted message, or an RCS message from the agent that received the message. It must be sent within the 24-hour conversation window that follows the latest inbound message from the same user. See WhatsApp 2-Way Messaging and RCS 2-Way Messaging for the full flow.
Request fields
string
required
The recipient’s phone number in E.164 format. Must match the phone number that sent the original inbound message, otherwise a phone_number_mismatch error is returned.
string
The reply message body. Sent as a free-form text on WhatsApp or RCS, not as a template. Required without media.
object
A file to send by link, with its type and an https url. On WhatsApp, type is image, audio, video or document: see Replying with a file. On RCS, type is image, video, audio or document, and the reply takes no text: see Replying with a file.
string
required
The inbound message ID (prefixed with im_) to reply to. This ID is provided in the inbound.message.received webhook event.
string
The URL where webhooks will be sent for delivery events of this reply.
string
A user-defined identifier to correlate this reply with your internal systems. It is returned in the response and any webhook events that refer to this message.
Error Handling
The reply endpoint returns specific error codes for 2-way messaging failures:
Error Code
Description
Action
window_expired
WhatsApp only: the 24-hour conversation window has closed
RCS 2-Way Messaging - Receive inbound RCS messages on your agent and send replies
Send a message - Send templated transactional and marketing messages
Webhooks - Receive delivery updates, inbound messages, and subscription events
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
to
string
required
The recipient's phone number in E.164 format. Must match the phone number that sent the original inbound message.
Example:
"+33612345678"
reply_to
string
required
The inbound message ID (prefixed with im_) to reply to. This ID is provided in the inbound.message.received webhook event.
Example:
"im_01k8aq2zggeyssvt53zgvpx63a"
text
string
The reply message body. Required without media. On WhatsApp, with an image, a video or a document, it is the caption; an audio reply takes no text. On RCS, a reply with media takes no text.
Example:
"Thanks for reaching out! We'll look into your request."
media
object
A file to send by link. On WhatsApp, with an image, a video or a document, text is the caption; an audio reply takes no text. On RCS, a reply with a file takes no text.
Show child attributes
callback_url
string
The URL where webhooks will be sent for delivery events of this reply.
Example:
"https://your-app.com/webhooks/notify"
correlation_id
string
A user-defined identifier to correlate this reply with your internal systems. It is returned in the response and any webhook events that refer to this message.
Maximum string length: 80
Example:
"support-ticket-42"
Callbacks
POST
{$request.body#/callback_url}webhook_event
Body
application/json
id
string
required
The event identifier.
Example:
"evt_01hynf45qvevj844m9az2x2f3c"
created_at
string<date-time>
required
The event creation date.
Example:
"2028-01-01T00:00:00Z"
type
string
required
The event type.
Example:
"<message_type>"
payload
object
required
The event payload.
Show child attributes
Response
Your server accepted the event and will process it.
Response
OK
id
string
required
The reply message identifier.
Example:
"tx_01k8ap1btqf5r9fq2c8ax5fhc9"
to
string
required
The recipient's phone number in E.164 format.
Example:
"+33612345678"
text
string
required
The reply message body that was sent.
Example:
"Thanks for reaching out! We'll look into your request."
reply_to
string
required
The inbound message ID this reply was sent in response to.
Example:
"im_01k8aq2zggeyssvt53zgvpx63a"
created_at
string<date-time>
required
The reply creation date in RFC3339 format.
Example:
"2025-10-24T12:00:00Z"
media
object
The file the reply sent.
Show child attributes
callback_url
string
The callback URL where webhooks will be sent.
Example:
"https://your-app.com/webhooks/notify"
correlation_id
string
The user-defined correlation identifier echoed back from the request.
Maximum string length: 80
Example:
"support-ticket-42"
⌘I
import Prelude from "@prelude.so/sdk";const client = new Prelude();async function main() { const response = await client.notify.reply({ to: "+33612345678", text: "Thanks for reaching out! We'll look into your request.", reply_to: "im_01k8aq2zggeyssvt53zgvpx63a", }); console.log(response.id);}main();
package mainimport ( "context" "fmt" "github.com/prelude-so/go-sdk" "github.com/prelude-so/go-sdk/option")func main() { client := prelude.NewClient() response, err := client.Notify.Reply(context.TODO(), prelude.NotifyReplyParams{ To: prelude.F("+33612345678"), Text: prelude.F("Thanks for reaching out! We'll look into your request."), ReplyTo: prelude.F("im_01k8aq2zggeyssvt53zgvpx63a"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.ID)}
import osfrom prelude_python_sdk import Preludeclient = Prelude()response = client.notify.reply( to="+33612345678", text="Thanks for reaching out! We'll look into your request.", reply_to="im_01k8aq2zggeyssvt53zgvpx63a",)print(response.id)
{ "id": "tx_01k8ap1btqf5r9fq2c8ax5fhc9", "to": "+33612345678", "text": "Thanks for reaching out! We'll look into your request.", "reply_to": "im_01k8aq2zggeyssvt53zgvpx63a", "created_at": "2025-10-24T12:00:00Z", "media": { "type": "audio", "url": "https://your-app.com/media/voice-note.ogg" }, "callback_url": "https://your-app.com/webhooks/notify", "correlation_id": "support-ticket-42"}
{
"code": "invalid_phone_number",
"message": "The provided phone number is invalid. Provide a valid E.164 phone number.",
"type": "bad_request",
"request_id": "3d19215e-2991-4a05-a41a-527314e6ff6a",
"param": "phone_number"
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Prelude Docs","colors":{"primary":"#3D16FF","light":"#83dd05","dark":"#3a5ccc"},"logo":{"light":"https://mintcdn.com/ding/Oh9xTmLZLfeVDwbL/images/logo/light.svg?fit=max\u0026auto=format\u0026n=Oh9xTmLZLfeVDwbL\u0026q=85\u0026s=592853f53e252f58d8ca969053ecde2c","dark":"https://mintcdn.com/ding/Oh9xTmLZLfeVDwbL/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=Oh9xTmLZLfeVDwbL\u0026q=85\u0026s=b353ee028ccba0ef11d98646ada1d585"},"favicon":"https://mintcdn.com/ding/mO4m5aLNuvukvWgO/favicon.png?fit=max\u0026auto=format\u0026n=mO4m5aLNuvukvWgO\u0026q=85\u0026s=31138ef6929c5da3b6fbe480c91d653f","appearance":{"default":"system","strict":false},"background":{"decoration":"gradient","color":{"light":"#fff","dark":"#060A06"}},"navbar":{"links":[{"href":"https://prelude.so/contact","label":"Book a demo"}],"primary":{"type":"button","label":"Get started","href":"https://app.prelude.so"}},"footer":{"socials":{"x":"https://x.com/@UsePrelude","github":"https://github.com/prelude-so","linkedin":"https://www.linkedin.com/company/prelude-so"},"links":[{"header":"Pricing","items":[{"label":"Check all prices","href":"https://prelude.so/countries"},{"label":"US Prices","href":"https://prelude.so/countries/us"},{"label":"France Prices","href":"https://prelude.so/countries/fr"},{"label":"UK Prices","href":"https://prelude.so/countries/gb"},{"label":"Germany Prices","href":"https://prelude.so/countries/de"}]},{"header":"About Us","items":[{"label":"Blog","href":"https://prelude.so/blog"},{"label":"Customer Story","href":"https://prelude.so/customer-stories"},{"label":"Careers","href":"https://jobs.ashbyhq.com/Prelude"}]},{"header":"Resources","items":[{"label":"Status Page","href":"https://status.prelude.so"},{"label":"Trust Center","href":"https://trust.prelude.so/"}]}]},"seo":{"indexing":"all"},"fonts":{"family":"Inter"},"integrations":{"ga4":{"measurementId":"G-CQ4YD24X1M"},"cookies":{"key":"mint_prldc","value":"true"}},"contextual":{"options":["copy","cursor","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ding","hasAudioNarration":false,"actualSubdomain":"ding","customDomains":["docs.prelude.so"],"gitSource":{"type":"github","owner":"ding-live","repo":"monorepo","deployBranch":"master","contentDirectory":"doc","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b09c389cfd00c340367b876","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Auth","count":187},{"language":"default","tag":"API Reference","count":152},{"language":"default","tag":"Management","count":106},{"language":"default","tag":"Documentation","count":104},{"language":"default","tag":"Frontend","count":38},{"language":"default","tag":"Verify","count":35},{"language":"default","tag":"Integration Guide","count":26},{"language":"default","tag":"Notify","count":25},{"language":"default","tag":"Watch","count":24},{"language":"default","tag":"Frontend SDKs","count":21}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@prelude.so","showHelpButton":true}},"basePath":"","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".update-container ul{list-style:none!important;padding-left:0!important}.update-container ul li::marker{content:none}"}]}
{"page":{"pagePath":"notify/v2/api-reference/send-a-reply","slug":"/notify/v2/api-reference/send-a-reply","pageMetadata":{"openapi":"post /v2/notify/reply","title":"Reply to an inbound message","description":"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.","href":"/notify/v2/api-reference/send-a-reply"},"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: \"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user’s latest message.\"\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`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`A reply leaves on the channel the inbound message came in on: a native WhatsApp quoted message, or an RCS message from the agent that received the message. It must be sent within the `,_jsx(_components.strong,{children:`24-hour conversation window`}),` that follows the latest inbound message from the same user. See `,_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp`,children:`WhatsApp 2-Way Messaging`}),` and `,_jsx(_components.a,{href:`/notify/v2/documentation/rcs`,children:`RCS 2-Way Messaging`}),` for the full flow.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\n`,_jsx(ParamField,{path:`to`,type:`string`,required:true,id:`param-to`,children:_jsxs(_components.p,{children:[`The recipient’s phone number in E.164 format. Must match the phone number that sent the original inbound message, otherwise a `,_jsx(_components.code,{children:`phone_number_mismatch`}),` error is returned.`]})}),`\n`,_jsx(ParamField,{path:`text`,type:`string`,id:`param-text`,children:_jsxs(_components.p,{children:[`The reply message body. Sent as a free-form text on WhatsApp or RCS, not as a template. Required without `,_jsx(_components.code,{children:`media`}),`.`]})}),`\n`,_jsx(ParamField,{path:`media`,type:`object`,id:`param-media`,children:_jsxs(_components.p,{children:[`A file to send by link, with its `,_jsx(_components.code,{children:`type`}),` and an https `,_jsx(_components.code,{children:`url`}),`. On WhatsApp, `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`audio`}),`, `,_jsx(_components.code,{children:`video`}),` or `,_jsx(_components.code,{children:`document`}),`: see `,_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp#replying-with-a-file`,children:`Replying with a file`}),`. On RCS, `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`video`}),`, `,_jsx(_components.code,{children:`audio`}),` or `,_jsx(_components.code,{children:`document`}),`, and the reply takes no `,_jsx(_components.code,{children:`text`}),`: see `,_jsx(_components.a,{href:`/notify/v2/documentation/rcs#replying-with-a-file`,children:`Replying with a file`}),`.`]})}),`\n`,_jsx(ParamField,{path:`reply_to`,type:`string`,required:true,id:`param-reply-to`,children:_jsxs(_components.p,{children:[`The inbound message ID (prefixed with `,_jsx(_components.code,{children:`im_`}),`) to reply to. This ID is provided in the `,_jsx(_components.code,{children:`inbound.message.received`}),` webhook event.`]})}),`\n`,_jsx(ParamField,{path:`callback_url`,type:`string`,id:`param-callback-url`,children:_jsx(_components.p,{children:`The URL where webhooks will be sent for delivery events of this reply.`})}),`\n`,_jsx(ParamField,{path:`correlation_id`,type:`string`,id:`param-correlation-id`,children:_jsx(_components.p,{children:`A user-defined identifier to correlate this reply with your internal systems. It is returned in the response and any webhook events that refer to this message.`})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsx(_components.p,{children:`The reply endpoint returns specific error codes for 2-way messaging failures:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`window_expired`})}),_jsx(_components.td,{children:`WhatsApp only: the 24-hour conversation window has closed`}),_jsxs(_components.td,{children:[`Use a template-based message via `,_jsx(_components.a,{href:`/notify/v2/api-reference/send-a-message`,children:`Send a message`}),` instead`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_reply_context`})}),_jsxs(_components.td,{children:[`The inbound message ID in `,_jsx(_components.code,{children:`reply_to`}),` was not found`]}),_jsxs(_components.td,{children:[`Verify the message ID from the `,_jsx(_components.code,{children:`inbound.message.received`}),` webhook`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reply_not_supported`})}),_jsx(_components.td,{children:`The number or agent that received the message takes no part in 2-way messaging: an OTP agent, or no callback URL is registered`}),_jsx(_components.td,{children:`Ask your Customer Success Manager to enable 2-way messaging on that sender`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phone_number_mismatch`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`to`}),` number does not match the inbound message sender`]}),_jsx(_components.td,{children:`Use the phone number from the inbound webhook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`missing_text`})}),_jsxs(_components.td,{children:[`Neither `,_jsx(_components.code,{children:`text`}),` nor `,_jsx(_components.code,{children:`media`}),` is set`]}),_jsx(_components.td,{children:`Provide a reply message body or a file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_media`})}),_jsxs(_components.td,{children:[`The file in `,_jsx(_components.code,{children:`media`}),` cannot be sent; the message says why`]}),_jsx(_components.td,{children:`Fix the file or the request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_phone_number`})}),_jsx(_components.td,{children:`Phone number format is invalid`}),_jsx(_components.td,{children:`Validate phone number format`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_balance`})}),_jsx(_components.td,{children:`Account balance is too low`}),_jsx(_components.td,{children:`Top up your account`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For a complete list of errors, see the `,_jsx(_components.a,{href:`/introduction/errors`,children:`Error documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-documentation`,children:`Related Documentation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp`,children:`WhatsApp 2-Way Messaging`}),` - Receive inbound WhatsApp messages and send replies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/rcs`,children:`RCS 2-Way Messaging`}),` - Receive inbound RCS messages on your agent and send replies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/api-reference/send-a-message`,children:`Send a message`}),` - Send templated transactional and marketing messages`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/webhook`,children:`Webhooks`}),` - Receive delivery updates, inbound messages, and subscription events`]}),`\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":{"openapi":"post /v2/notify/reply","title":"Reply to an inbound message","description":"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.","href":"/notify/v2/api-reference/send-a-reply"}}},"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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`15`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Prelude`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@prelude.so/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`notify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`reply`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"+33612345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` text:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Thanks for reaching out! We'll look into your request.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` reply_to:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"im_01k8aq2zggeyssvt53zgvpx63a\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`24`,language:`go`,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:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`context`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/prelude-so/go-sdk`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/prelude-so/go-sdk/option`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tclient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tresponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Notify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Reply`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`TODO`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(), `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`NotifyReplyParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tTo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+33612345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tText`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Thanks for reaching out! We'll look into your request.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tReplyTo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`prelude`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`F`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"im_01k8aq2zggeyssvt53zgvpx63a\"`}),_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:`\t})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`\t\tpanic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Error`}),_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:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Printf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%+v`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ID`}),_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(CodeBlock,{filename:`Python`,numberOfLines:`12`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` prelude_python_sdk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Prelude`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Prelude()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.notify.reply(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` to`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+33612345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` text`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Thanks for reaching out! We'll look into your request.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` reply_to`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"im_01k8aq2zggeyssvt53zgvpx63a\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.id)`})]}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A reply leaves on the channel the inbound message came in on: a native WhatsApp quoted message, or an RCS message from the agent that received the message. It must be sent within the `,_jsx(_components.strong,{children:`24-hour conversation window`}),` that follows the latest inbound message from the same user. See `,_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp`,children:`WhatsApp 2-Way Messaging`}),` and `,_jsx(_components.a,{href:`/notify/v2/documentation/rcs`,children:`RCS 2-Way Messaging`}),` for the full flow.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-fields`,children:`Request fields`}),`\n`,_jsx(ParamField,{path:`to`,type:`string`,required:true,id:`param-to`,children:_jsxs(_components.p,{children:[`The recipient’s phone number in E.164 format. Must match the phone number that sent the original inbound message, otherwise a `,_jsx(_components.code,{children:`phone_number_mismatch`}),` error is returned.`]})}),`\n`,_jsx(ParamField,{path:`text`,type:`string`,id:`param-text`,children:_jsxs(_components.p,{children:[`The reply message body. Sent as a free-form text on WhatsApp or RCS, not as a template. Required without `,_jsx(_components.code,{children:`media`}),`.`]})}),`\n`,_jsx(ParamField,{path:`media`,type:`object`,id:`param-media`,children:_jsxs(_components.p,{children:[`A file to send by link, with its `,_jsx(_components.code,{children:`type`}),` and an https `,_jsx(_components.code,{children:`url`}),`. On WhatsApp, `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`audio`}),`, `,_jsx(_components.code,{children:`video`}),` or `,_jsx(_components.code,{children:`document`}),`: see `,_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp#replying-with-a-file`,children:`Replying with a file`}),`. On RCS, `,_jsx(_components.code,{children:`type`}),` is `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`video`}),`, `,_jsx(_components.code,{children:`audio`}),` or `,_jsx(_components.code,{children:`document`}),`, and the reply takes no `,_jsx(_components.code,{children:`text`}),`: see `,_jsx(_components.a,{href:`/notify/v2/documentation/rcs#replying-with-a-file`,children:`Replying with a file`}),`.`]})}),`\n`,_jsx(ParamField,{path:`reply_to`,type:`string`,required:true,id:`param-reply-to`,children:_jsxs(_components.p,{children:[`The inbound message ID (prefixed with `,_jsx(_components.code,{children:`im_`}),`) to reply to. This ID is provided in the `,_jsx(_components.code,{children:`inbound.message.received`}),` webhook event.`]})}),`\n`,_jsx(ParamField,{path:`callback_url`,type:`string`,id:`param-callback-url`,children:_jsx(_components.p,{children:`The URL where webhooks will be sent for delivery events of this reply.`})}),`\n`,_jsx(ParamField,{path:`correlation_id`,type:`string`,id:`param-correlation-id`,children:_jsx(_components.p,{children:`A user-defined identifier to correlate this reply with your internal systems. It is returned in the response and any webhook events that refer to this message.`})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsx(_components.p,{children:`The reply endpoint returns specific error codes for 2-way messaging failures:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`window_expired`})}),_jsx(_components.td,{children:`WhatsApp only: the 24-hour conversation window has closed`}),_jsxs(_components.td,{children:[`Use a template-based message via `,_jsx(_components.a,{href:`/notify/v2/api-reference/send-a-message`,children:`Send a message`}),` instead`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_reply_context`})}),_jsxs(_components.td,{children:[`The inbound message ID in `,_jsx(_components.code,{children:`reply_to`}),` was not found`]}),_jsxs(_components.td,{children:[`Verify the message ID from the `,_jsx(_components.code,{children:`inbound.message.received`}),` webhook`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reply_not_supported`})}),_jsx(_components.td,{children:`The number or agent that received the message takes no part in 2-way messaging: an OTP agent, or no callback URL is registered`}),_jsx(_components.td,{children:`Ask your Customer Success Manager to enable 2-way messaging on that sender`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phone_number_mismatch`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`to`}),` number does not match the inbound message sender`]}),_jsx(_components.td,{children:`Use the phone number from the inbound webhook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`missing_text`})}),_jsxs(_components.td,{children:[`Neither `,_jsx(_components.code,{children:`text`}),` nor `,_jsx(_components.code,{children:`media`}),` is set`]}),_jsx(_components.td,{children:`Provide a reply message body or a file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_media`})}),_jsxs(_components.td,{children:[`The file in `,_jsx(_components.code,{children:`media`}),` cannot be sent; the message says why`]}),_jsx(_components.td,{children:`Fix the file or the request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_phone_number`})}),_jsx(_components.td,{children:`Phone number format is invalid`}),_jsx(_components.td,{children:`Validate phone number format`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_balance`})}),_jsx(_components.td,{children:`Account balance is too low`}),_jsx(_components.td,{children:`Top up your account`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For a complete list of errors, see the `,_jsx(_components.a,{href:`/introduction/errors`,children:`Error documentation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-documentation`,children:`Related Documentation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/whatsapp`,children:`WhatsApp 2-Way Messaging`}),` - Receive inbound WhatsApp messages and send replies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/rcs`,children:`RCS 2-Way Messaging`}),` - Receive inbound RCS messages on your agent and send replies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/api-reference/send-a-message`,children:`Send a message`}),` - Send templated transactional and marketing messages`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/notify/v2/documentation/webhook`,children:`Webhooks`}),` - Receive delivery updates, inbound messages, and subscription events`]}),`\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":{"openapi":"post /v2/notify/reply","title":"Reply to an inbound message","description":"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.","href":"/notify/v2/api-reference/send-a-reply"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request fields","slug":"request-fields","depth":2,"children":[]},{"title":"Error Handling","slug":"error-handling","depth":2,"children":[]},{"title":"Related Documentation","slug":"related-documentation","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Node.js","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=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Prelude\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"@prelude.so/sdk\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">async\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> function\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">notify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">reply\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> to:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"+33612345678\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> text:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Thanks for reaching out! We'll look into your request.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> reply_to:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"im_01k8aq2zggeyssvt53zgvpx63a\"\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">id\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Go","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=\"go\">\u003ccode language=\"go\" numberOfLines=\"24\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">package\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> main\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">context\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">fmt\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">github.com/prelude-so/go-sdk\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">github.com/prelude-so/go-sdk/option\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">func\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tclient\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">NewClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tresponse\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Notify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Reply\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">context\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">TODO\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(), \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">NotifyReplyParams\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\t\tTo\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">F\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+33612345678\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\t\tText\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">F\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Thanks for reaching out! We'll look into your request.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\t\tReplyTo\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">prelude\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">F\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"im_01k8aq2zggeyssvt53zgvpx63a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t})\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">\tif\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> !=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> nil\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">\t\tpanic\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tfmt\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Printf\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#9CDCFE\">%+v\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ID\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\u003c/code>\u003c/pre>"},{"filename":"Python","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=\"python\">\u003ccode language=\"python\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> prelude_python_sdk \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Prelude\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> Prelude()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> client.notify.reply(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> to\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+33612345678\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> text\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Thanks for reaching out! We'll look into your request.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> reply_to\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"im_01k8aq2zggeyssvt53zgvpx63a\"\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.id)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Notify"],"summary":"Reply to an inbound message","description":"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.","operationId":"sendNotifyReply","requestBody":"6b0e9524-0eee-4a91-a4d3-818ac58f98d5","responses":{"200":"a78b36e0-ba65-4e74-8ce9-54a484c071de","400":"fbc3eba2-7cfb-4b03-80a7-fc5724693228"},"callbacks":{"webhook_event":"665a8bfe-8f72-4ea7-a58a-8a1c93ce0068"},"method":"post","type":"path","servers":["ce811586-0c23-4a4d-b893-6f2bec055ac8"],"security":["b760df8e-2030-4f8d-a1ec-58e449ed0607"],"path":"/v2/notify/reply","baseUrlOptions":["https://api.prelude.dev"],"title":"Reply to an inbound message","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"15","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Prelude"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" from"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"@prelude.so/sdk\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" client"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Prelude"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"async"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" function"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" main"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"() {"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"notify"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"reply"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" to:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"+33612345678\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" text:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Thanks for reaching out! We'll look into your request.\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" reply_to:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"im_01k8aq2zggeyssvt53zgvpx63a\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" });"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"id"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"main"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n"]}}}},"filename":"Node.js"},{"dropdown":false,"language":"go","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"go","children":{"type":"code","key":null,"ref":null,"props":{"language":"go","numberOfLines":"24","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"package"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" main"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"context"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"fmt"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"github.com/prelude-so/go-sdk"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"github.com/prelude-so/go-sdk/option"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"func"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" main"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"() {"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tclient"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" prelude"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"NewClient"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tresponse"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"err"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Notify"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Reply"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"context"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"TODO"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(), "}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"prelude"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"16","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"NotifyReplyParams"}},{"type":"span","key":"17","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\t\tTo"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"prelude"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"F"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"+33612345678\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\t\tText"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"prelude"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"F"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Thanks for reaching out! We'll look into your request.\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\t\tReplyTo"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"prelude"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"F"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"im_01k8aq2zggeyssvt53zgvpx63a\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t})"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"\tif"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" err"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" !="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" nil"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"\t\tpanic"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"err"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Error"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"())"}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t}"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tfmt"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Printf"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#9CDCFE"},"children":"%+v"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"response"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"ID"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Go"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" os"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" prelude_python_sdk "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" Prelude"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"client "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" Prelude()"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"response "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" client.notify.reply("}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" to"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"+33612345678\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" text"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Thanks for reaching out! We'll look into your request.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" reply_to"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"im_01k8aq2zggeyssvt53zgvpx63a\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"print"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(response.id)"}}]}},"\n"]}}}},"filename":"Python"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","description":"The recipient's phone number in E.164 format. Must match the phone number that sent the original inbound message.","examples":["+33612345678"],"isRequired":true,"uniqueKey":"to","typeLabel":"string"},"reply_to":{"type":"string","description":"The inbound message ID (prefixed with `im_`) to reply to. This ID is provided in the `inbound.message.received` webhook event.","examples":["im_01k8aq2zggeyssvt53zgvpx63a"],"isRequired":true,"uniqueKey":"reply_to","typeLabel":"string"},"text":{"type":"string","description":"The reply message body. Required without `media`. On WhatsApp, with an image, a video or a document, it is the caption; an audio reply takes no text. On RCS, a reply with `media` takes no text.","examples":["Thanks for reaching out! We'll look into your request."],"uniqueKey":"text","typeLabel":"string"},"media":{"type":"object","description":"A file to send by link. On WhatsApp, with an image, a video or a document, `text` is the caption; an audio reply takes no text. On RCS, a reply with a file takes no text.","properties":{"type":{"type":"string","enum":["image","video","audio","document"],"description":"The kind of file. On WhatsApp:\n\n- `image`: JPEG or PNG, 5 MB at most.\n- `audio`: AAC, AMR, MP3, M4A, or OGG (OPUS codec), 16 MB at most. An OGG file is sent as a voice note.\n- `video`: MP4 or 3GPP, with H.264 video and AAC audio, 16 MB at most. A video in another codec is not delivered, and the reply fails.\n- `document`: PDF, TXT, DOC, DOCX, XLS, XLSX, PPT, or PPTX, 100 MB at most. The file name in the link is the name the user sees.\n\nOn RCS, 100 MB at most:\n\n- `image`: JPEG, GIF, or PNG.\n- `video`: H263, M4V, MP4, MPEG, MPEG-4, or WEBM.\n- `audio`: AAC, MP3, MPEG, M4A, MP4, 3GPP, or OGG (`application/ogg`).\n- `document`: PDF.\n","examples":["audio"],"isRequired":true,"uniqueKey":"media.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"An https link to the file, public or presigned. It must still work when the reply is sent. On WhatsApp, it must answer with the file's `Content-Type`. On RCS, the format comes from the `Content-Type`, or from the link's file extension when the type is generic, such as `application/octet-stream`. Use a new link for each new file.","examples":["https://your-app.com/media/voice-note.ogg"],"isRequired":true,"uniqueKey":"media.url","typeLabel":"string"}},"required":["type","url"],"uniqueKey":"media","typeLabel":"object"},"callback_url":{"type":"string","description":"The URL where webhooks will be sent for delivery events of this reply.","examples":["https://your-app.com/webhooks/notify"],"uniqueKey":"callback_url","typeLabel":"string"},"correlation_id":{"type":"string","description":"A user-defined identifier to correlate this reply with your internal systems. It is returned in the response and any webhook events that refer to this message.","maxLength":80,"examples":["support-ticket-42"],"uniqueKey":"correlation_id","typeLabel":"string"}},"required":["to","reply_to"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"to":"+33612345678","reply_to":"im_01k8aq2zggeyssvt53zgvpx63a","text":"Thanks for reaching out! We'll look into your request.","callback_url":"https://your-app.com/webhooks/notify","correlation_id":"support-ticket-42"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a78b36e0-ba65-4e74-8ce9-54a484c071de":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The reply message identifier.","examples":["tx_01k8ap1btqf5r9fq2c8ax5fhc9"],"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"to":{"type":"string","description":"The recipient's phone number in E.164 format.","examples":["+33612345678"],"isRequired":true,"uniqueKey":"to","typeLabel":"string"},"text":{"type":"string","description":"The reply message body that was sent.","examples":["Thanks for reaching out! We'll look into your request."],"isRequired":true,"uniqueKey":"text","typeLabel":"string"},"reply_to":{"type":"string","description":"The inbound message ID this reply was sent in response to.","examples":["im_01k8aq2zggeyssvt53zgvpx63a"],"isRequired":true,"uniqueKey":"reply_to","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"The reply creation date in RFC3339 format.","examples":["2025-10-24T12:00:00Z"],"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"media":{"type":"object","description":"The file the reply sent.","properties":{"type":{"type":"string","enum":["image","video","audio","document"],"examples":["audio"],"uniqueKey":"media.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","examples":["https://your-app.com/media/voice-note.ogg"],"uniqueKey":"media.url","typeLabel":"string"}},"uniqueKey":"media","typeLabel":"object"},"callback_url":{"type":"string","description":"The callback URL where webhooks will be sent.","examples":["https://your-app.com/webhooks/notify"],"uniqueKey":"callback_url","typeLabel":"string"},"correlation_id":{"type":"string","description":"The user-defined correlation identifier echoed back from the request.","maxLength":80,"examples":["support-ticket-42"],"uniqueKey":"correlation_id","typeLabel":"string"}},"required":["id","to","text","reply_to","created_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"tx_01k8ap1btqf5r9fq2c8ax5fhc9","to":"+33612345678","text":"Thanks for reaching out! We'll look into your request.","reply_to":"im_01k8aq2zggeyssvt53zgvpx63a","created_at":"2025-10-24T12:00:00Z","media":{"type":"audio","url":"https://your-app.com/media/voice-note.ogg"},"callback_url":"https://your-app.com/webhooks/notify","correlation_id":"support-ticket-42"}}},"exampleType":"generated"}},"exampleType":"generated"},"fbc3eba2-7cfb-4b03-80a7-fc5724693228":{"description":"KO","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"The error code.","examples":["invalid_phone_number"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","examples":["The provided phone number is invalid. Provide a valid E.164 phone number."],"description":"A human-readable message describing the error.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"type":{"type":"string","examples":["bad_request"],"description":"The error type.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"request_id":{"type":"string","examples":["3d19215e-2991-4a05-a41a-527314e6ff6a"],"description":"A string that identifies this specific request. Report it back to us to help us diagnose your issues.","uniqueKey":"request_id","typeLabel":"string"},"param":{"type":"string","examples":["phone_number"],"description":"The parameter the error refers to, when it applies to a single one.","uniqueKey":"param","typeLabel":"string"}},"required":["code","message","type"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_phone_number","message":"The provided phone number is invalid. Provide a valid E.164 phone number.","type":"bad_request","request_id":"3d19215e-2991-4a05-a41a-527314e6ff6a","param":"phone_number"}}},"exampleType":"generated"}},"exampleType":"generated"}},"callbacks":[{"callbackName":"webhook_event","expression":"{$request.body#/callback_url}","method":"post","resolved":{"operation":{"requestBody":"a0f5485f-1c7d-466e-81e0-7983b6baef4c","responses":{"200":"8a782ce8-a278-4e89-9678-9c9b464483ca","default":"db47bb40-ffd7-4e90-b04a-3d34119bcfae"},"method":"post","type":"path"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","examples":["evt_01hynf45qvevj844m9az2x2f3c"],"description":"The event identifier.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"created_at":{"type":"string","examples":["2028-01-01T00:00:00Z"],"format":"date-time","description":"The event creation date.","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"type":{"type":"string","examples":["\u003cmessage_type>"],"description":"The event type.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"payload":{"type":"object","description":"The event payload.","additionalProperties":{"type":"string","uniqueKey":"payload.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"payload","typeLabel":"object"}},"required":["id","created_at","type","payload"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"evt_01hynf45qvevj844m9az2x2f3c","created_at":"2028-01-01T00:00:00Z","type":"\u003cmessage_type>","payload":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8a782ce8-a278-4e89-9678-9c9b464483ca":{"description":"Your server accepted the event and will process it.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"db47bb40-ffd7-4e90-b04a-3d34119bcfae":{"description":"Your server did not accept the event and we will retry for 24 hours.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{}}}}],"security":{"b760df8e-2030-4f8d-a1ec-58e449ed0607":{"apiToken":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"apiToken"}}},"servers":{"ce811586-0c23-4a4d-b893-6f2bec055ac8":{"url":"https://api.prelude.dev","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"apiToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiToken","name":"Authorization"}],"title":"apiToken"}]},"originalFileLocation":"api-reference/v2.yml"},"subdomain":"ding","siteName":"Prelude Docs","title":"Reply to an inbound message - Prelude Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/notify/v2/api-reference/send-a-reply","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T10:27:15.675Z","originalFileLocation":"notify/v2/api-reference/send-a-reply.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=\"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user\u0026#x27;s latest message.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prelude Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_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/ding/XcVFWlvRbYgvqL60/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reply to an inbound message - Prelude Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user\u0026#x27;s latest message.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prelude Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ding.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Reply+to+an+inbound+message\u0026amp;description=Send+a+free-form+reply+to+an+inbound+WhatsApp+or+RCS+message%2C+as+text+or+with+a+file+sent+by+link.+On+WhatsApp%2C+within+24+hours+of+the+user%27s+latest+message.\u0026amp;theme=c09b729efb9b72feaf599931\u0026amp;signature=3fc8c070f8e7f9b083716273f0baf2f76fe45d96cff2f9247c9b21920067c7a1\">\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=\"Reply to an inbound message - Prelude Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user\u0026#x27;s latest message.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ding.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Reply+to+an+inbound+message\u0026amp;description=Send+a+free-form+reply+to+an+inbound+WhatsApp+or+RCS+message%2C+as+text+or+with+a+file+sent+by+link.+On+WhatsApp%2C+within+24+hours+of+the+user%27s+latest+message.\u0026amp;theme=c09b729efb9b72feaf599931\u0026amp;signature=3fc8c070f8e7f9b083716273f0baf2f76fe45d96cff2f9247c9b21920067c7a1\">\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/ding/XcVFWlvRbYgvqL60/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prelude Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3D16FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/notify/v2/api-reference/send-a-reply.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.prelude.so/#organization\",\"name\":\"Prelude Docs\",\"url\":\"https://docs.prelude.so\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ding/Oh9xTmLZLfeVDwbL/images/logo/light.svg?fit=max\u0026auto=format\u0026n=Oh9xTmLZLfeVDwbL\u0026q=85\u0026s=592853f53e252f58d8ca969053ecde2c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.prelude.so#website\",\"name\":\"Prelude Docs\",\"url\":\"https://docs.prelude.so\",\"publisher\":{\"@id\":\"https://docs.prelude.so/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply#webpage\",\"url\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply\",\"name\":\"Reply to an inbound message\",\"description\":\"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.\",\"dateModified\":\"2026-11-12T10:27:15.675Z\",\"isPartOf\":{\"@id\":\"https://docs.prelude.so#website\"},\"breadcrumb\":{\"@id\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-message\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reply to an inbound message\",\"item\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply#apireference\",\"headline\":\"Reply to an inbound message\",\"name\":\"Reply to an inbound message\",\"description\":\"Send a free-form reply to an inbound WhatsApp or RCS message, as text or with a file sent by link. On WhatsApp, within 24 hours of the user's latest message.\",\"url\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply\",\"mainEntityOfPage\":{\"@id\":\"https://docs.prelude.so/notify/v2/api-reference/send-a-reply#webpage\"},\"dateModified\":\"2026-11-12T10:27:15.675Z\",\"publisher\":{\"@id\":\"https://docs.prelude.so/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.prelude.so#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prelude Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prelude Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/notify/v2/api-reference/send-a-reply.md","siteName":"Prelude Docs","nav":{"global":null,"anchors":[{"anchor":"Overview","pages":[{"title":"Overview","href":"/introduction/welcome-to-prelude"}]},{"anchor":"Verify","icon":"fingerprint","versions":[{"version":"v2","pages":[{"group":"Documentation","pages":[{"title":"Introduction to Verify","sidebarTitle":"Introduction","icon":"fingerprint","href":"/verify/v2/documentation/introduction"},{"title":"Quickstart","icon":"circle-bolt","href":"/verify/v2/documentation/quickstart"},{"title":"Verification Lifecycle","icon":"arrow-progress","sidebarTitle":"Verification Lifecycle","href":"/verify/v2/documentation/lifecycle"},{"title":"Prevent Fraud","icon":"binoculars","href":"/verify/v2/documentation/prevent-fraud"},{"title":"Fraud Protection Settings","icon":"sliders","href":"/verify/v2/documentation/fraud-protection-settings"},{"title":"Message Content","sidebarTitle":"Message Content","icon":"message-pen","href":"/verify/v2/documentation/content"},{"title":"Custom Sender IDs","sidebarTitle":"Custom Sender IDs","icon":"message-smile","href":"/verify/v2/documentation/sender-id"},{"title":"Connect your WhatsApp Business Account to Prelude","sidebarTitle":"WhatsApp BSP","icon":"whatsapp","href":"/verify/v2/documentation/whatsapp"},{"title":"Webhook for the Verify API","sidebarTitle":"Webhook","icon":"webhook","href":"/verify/v2/documentation/webhook"},{"title":"Test Numbers","sidebarTitle":"Test Numbers","icon":"vial-circle-check","href":"/verify/v2/documentation/testing"},{"title":"Silent Verification","sidebarTitle":"Silent Verification","icon":"message-slash","href":"/verify/v2/documentation/silent-verification"},{"title":"Magic Links","sidebarTitle":"Magic Links","icon":"link","href":"/verify/v2/documentation/magic-link"},{"title":"Email Verification","sidebarTitle":"Email Verification","icon":"envelope","href":"/verify/v2/documentation/email-verification"},{"group":"Integrations","icon":"pipe-circle-check","pages":[{"title":"Prelude API v2 and Firebase Auth integration","sidebarTitle":"Firebase","icon":"dot","href":"/verify/v2/documentation/integrations/firebase"},{"title":"Integrate Prelude with Supabase phone authentication","sidebarTitle":"Supabase","icon":"dot","href":"/verify/v2/documentation/integrations/supabase"},{"title":"Integrate Prelude with Auth0 for phone verification","sidebarTitle":"Auth0","icon":"dot","href":"/verify/v2/documentation/integrations/auth0"}]}]},{"group":"API Reference","pages":[{"openapi":"post /v2/verification","title":"Create or retry a verification","href":"/verify/v2/api-reference/create-or-retry-a-verification"},{"openapi":"post /v2/verification/check","title":"Check a code","href":"/verify/v2/api-reference/check-a-code"},{"group":"History","icon":"table-list","pages":[{"openapi":"get /v2/verification/phone/history","title":"List phone verifications","href":"/verify/v2/api-reference/history/list-phone-verifications"},{"openapi":"get /v2/verification/phone/history/{id}","title":"Get a phone verification","href":"/verify/v2/api-reference/history/get-a-phone-verification"}]},{"group":"Management","icon":"wrench","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"wrench","href":"/verify/v2/api-reference/management/overview"},{"group":"Sender ID","pages":[{"openapi":"get /v2/verification/management/sender-id","title":"List available Sender IDs","href":"/verify/v2/api-reference/management/sender-id/list-sender-ids"},{"openapi":"post /v2/verification/management/sender-id","title":"Submit a sender ID","href":"/verify/v2/api-reference/management/sender-id/submit-sender-id"}]},{"group":"Routing","pages":[{"openapi":"get /v2/verification/management/routing","title":"Get the routing configuration","href":"/verify/v2/api-reference/management/routing/get-routing-config"}]},{"group":"Phone Number","pages":[{"openapi":"get /v2/verification/management/phone-numbers/{action}","title":"Get phone numbers allow or block list","href":"/verify/v2/api-reference/management/phone-numbers/get-phone-numbers"},{"openapi":"post /v2/verification/management/phone-numbers/{action}","title":"Add phone number to allow or block list","href":"/verify/v2/api-reference/management/phone-numbers/add-phone-number"},{"openapi":"delete /v2/verification/management/phone-numbers/{action}","title":"Delete phone number from allow or block list","href":"/verify/v2/api-reference/management/phone-numbers/delete-phone-number"}]},{"group":"Templates","pages":[{"openapi":"get /v2/verification/management/templates","title":"List OTP templates","href":"/verify/v2/api-reference/management/templates/list-templates"},{"openapi":"post /v2/verification/management/templates","title":"Create an OTP template","href":"/verify/v2/api-reference/management/templates/create-template"},{"openapi":"get /v2/verification/management/templates/{template_id}","title":"Retrieve an OTP template","href":"/verify/v2/api-reference/management/templates/get-template"},{"openapi":"patch /v2/verification/management/templates/{template_id}","title":"Update an OTP template","href":"/verify/v2/api-reference/management/templates/update-template"},{"openapi":"delete /v2/verification/management/templates/{template_id}","title":"Delete an OTP template","href":"/verify/v2/api-reference/management/templates/delete-template"}]},{"group":"Sandboxed Numbers","pages":[{"openapi":"get /v2/verification/management/phone-numbers/sandbox","title":"Get sandbox phone numbers","href":"/verify/v2/api-reference/management/phone-numbers/sandbox/get-sandbox-phone-numbers"},{"openapi":"put /v2/verification/management/phone-numbers/sandbox","title":"Add a sandbox phone number","href":"/verify/v2/api-reference/management/phone-numbers/sandbox/add-sandbox-phone-number"},{"openapi":"delete /v2/verification/management/phone-numbers/sandbox/{phone_number}","title":"Delete a sandbox phone number","href":"/verify/v2/api-reference/management/phone-numbers/sandbox/delete-sandbox-phone-number"}]}]}]}]}]},{"anchor":"Auth","icon":"tickets","pages":[{"title":"Auth","href":"/auth/documentation/introduction"}]},{"anchor":"Watch","icon":"radar","versions":[{"version":"v2","pages":[{"group":"Documentation","pages":[{"title":"Introduction to Watch","sidebarTitle":"Introduction","icon":"radar","href":"/watch/v2/documentation/introduction"},{"title":"Rules, recipes, and flows","sidebarTitle":"Rules, recipes \u0026 flows","icon":"sliders","tag":"BETA","href":"/watch/v2/documentation/rules-recipes-flows"}]},{"group":"API Reference","pages":[{"openapi":"post /v2/watch/predict","title":"Predict the outcome of a verification","sidebarTitle":"Predict outcome","href":"/watch/v2/api-reference/predict-outcome"},{"openapi":"post /v2/watch/eval","title":"Evaluate a flow against your rules","sidebarTitle":"Evaluate a flow","tag":"BETA","href":"/watch/v2/api-reference/evaluate-flow"},{"openapi":"post /v2/watch/feedback","title":"Send feedbacks about verifications","sidebarTitle":"Send feedbacks","href":"/watch/v2/api-reference/send-feedbacks"},{"openapi":"post /v2/watch/event","title":"Dispatch real-time events","sidebarTitle":"Dispatch events","href":"/watch/v2/api-reference/dispatch-events"}]},{"group":"Management API","pages":[{"group":"Rules","pages":[{"openapi":"get /v2/watch/management/rules","title":"List the rules you authored","sidebarTitle":"List rules","tag":"BETA","href":"/watch/v2/api-reference/management/rules/list-rules"},{"openapi":"post /v2/watch/management/rules","title":"Author a rule","sidebarTitle":"Create rule","tag":"BETA","href":"/watch/v2/api-reference/management/rules/create-rule"},{"openapi":"get /v2/watch/management/rules/{rule_id}","title":"Get one of your rules","sidebarTitle":"Get rule","tag":"BETA","href":"/watch/v2/api-reference/management/rules/get-rule"},{"openapi":"put /v2/watch/management/rules/{rule_id}","title":"Update a rule","sidebarTitle":"Update rule","tag":"BETA","href":"/watch/v2/api-reference/management/rules/update-rule"},{"openapi":"delete /v2/watch/management/rules/{rule_id}","title":"Delete a rule","sidebarTitle":"Delete rule","tag":"BETA","href":"/watch/v2/api-reference/management/rules/delete-rule"},{"openapi":"get /v2/watch/management/rules/managed","title":"List the rules Prelude maintains","sidebarTitle":"List managed rules","tag":"BETA","href":"/watch/v2/api-reference/management/rules/list-managed-rules"},{"openapi":"get /v2/watch/management/rules/catalog","title":"List the signals a rule can read","sidebarTitle":"List signals","tag":"BETA","href":"/watch/v2/api-reference/management/rules/list-signals"}]},{"group":"Recipes","pages":[{"openapi":"get /v2/watch/management/recipes","title":"List your recipes","sidebarTitle":"List recipes","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/list-recipes"},{"openapi":"get /v2/watch/management/recipes/managed","title":"List the recipes Prelude maintains","sidebarTitle":"List managed recipes","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/list-managed-recipes"},{"openapi":"post /v2/watch/management/recipes","title":"Assemble rules into a scored decision","sidebarTitle":"Create recipe","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/create-recipe"},{"openapi":"get /v2/watch/management/recipes/{recipe_id}","title":"Get a recipe","sidebarTitle":"Get recipe","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/get-recipe"},{"openapi":"put /v2/watch/management/recipes/{recipe_id}","title":"Update a recipe","sidebarTitle":"Update recipe","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/update-recipe"},{"openapi":"delete /v2/watch/management/recipes/{recipe_id}","title":"Delete a recipe","sidebarTitle":"Delete recipe","tag":"BETA","href":"/watch/v2/api-reference/management/recipes/delete-recipe"}]},{"group":"Flows","pages":[{"openapi":"get /v2/watch/management/flows","title":"List your flows","sidebarTitle":"List flows","tag":"BETA","href":"/watch/v2/api-reference/management/flows/list-flows"},{"openapi":"post /v2/watch/management/flows","title":"Define a moment to guard","sidebarTitle":"Create flow","tag":"BETA","href":"/watch/v2/api-reference/management/flows/create-flow"},{"openapi":"get /v2/watch/management/flows/{flow_id}","title":"Get a flow","sidebarTitle":"Get flow","tag":"BETA","href":"/watch/v2/api-reference/management/flows/get-flow"},{"openapi":"put /v2/watch/management/flows/{flow_id}","title":"Update a flow","sidebarTitle":"Update flow","tag":"BETA","href":"/watch/v2/api-reference/management/flows/update-flow"},{"openapi":"delete /v2/watch/management/flows/{flow_id}","title":"Delete a flow","sidebarTitle":"Delete flow","tag":"BETA","href":"/watch/v2/api-reference/management/flows/delete-flow"}]}]}]}]},{"anchor":"Intel","icon":"telescope","versions":[{"version":"v2","pages":[{"group":"Documentation","pages":[{"title":"Introduction to Intel","sidebarTitle":"Introduction","icon":"telescope","href":"/intel/v2/documentation/introduction"}]},{"group":"API Reference","pages":[{"openapi":"get /v2/lookup/{phone_number}","title":"Lookup a phone number","sidebarTitle":"Lookup a number","href":"/intel/v2/api-reference/lookup-a-number"},{"openapi":"post /v2/intel/kyc/match/{phone}","title":"KYC Match","sidebarTitle":"KYC Match","tag":"ALPHA","href":"/intel/v2/api-reference/kyc-match"}]}]}]},{"anchor":"Notify","icon":"comment-dots","versions":[{"version":"v2","pages":[{"group":"Documentation","pages":[{"title":"Introduction to Notify","sidebarTitle":"Introduction","icon":"comment-dots","href":"/notify/v2/documentation/introduction"},{"title":"Rich templates on RCS and WhatsApp","sidebarTitle":"Rich Templates","icon":"image","href":"/notify/v2/documentation/rich-templates"},{"title":"2-Way Messaging with WhatsApp","sidebarTitle":"WhatsApp 2-Way","icon":"whatsapp","href":"/notify/v2/documentation/whatsapp"},{"title":"Send images, videos, and documents on WhatsApp","sidebarTitle":"WhatsApp Media","icon":"whatsapp","href":"/notify/v2/documentation/whatsapp-media"},{"title":"2-Way Messaging with RCS","sidebarTitle":"RCS 2-Way","icon":"comments","href":"/notify/v2/documentation/rcs"},{"title":"Webhook for the Notify API","sidebarTitle":"Webhook","icon":"webhook","href":"/notify/v2/documentation/webhook"},{"title":"Marketing Compliance Rules","sidebarTitle":"Marketing Compliance","icon":"shield-check","href":"/notify/v2/documentation/marketing-compliance"},{"title":"SMS Opt-in for the US and Canada","sidebarTitle":"US \u0026 Canada Opt-in","icon":"square-check","href":"/notify/v2/documentation/us-canada-opt-in"},{"title":"Subscription Management","sidebarTitle":"Subscription Management","icon":"user-group","href":"/notify/v2/documentation/subscription-management"},{"title":"Message Scheduling","sidebarTitle":"Scheduling","icon":"clock","href":"/notify/v2/documentation/scheduling"},{"title":"Supported Locales","sidebarTitle":"Supported Locales","icon":"language","href":"/notify/v2/documentation/supported-locales"}]},{"group":"API Reference","pages":[{"openapi":"post /v2/notify","title":"Send a message","href":"/notify/v2/api-reference/send-a-message"},{"openapi":"post /v2/notify/batch","title":"Send bulk messages","description":"Send a message to multiple recipients in a single request using Prelude Notify API.","href":"/notify/v2/api-reference/send-bulk-messages"},{"openapi":"post /v2/notify/reply","title":"Reply to an inbound message","href":"/notify/v2/api-reference/send-a-reply"},{"openapi":"get /v2/notify/inbound/{message_id}/media","title":"Download an inbound file","description":"Download the file a user sent on WhatsApp or RCS, as bytes.","href":"/notify/v2/api-reference/download-inbound-media"},{"group":"Management","icon":"wrench","pages":[{"group":"Templates","pages":[{"openapi":"get /v2/notify/management/templates","title":"List message templates","href":"/notify/v2/api-reference/management/templates/list-templates"},{"openapi":"post /v2/notify/management/templates","title":"Create a message template","href":"/notify/v2/api-reference/management/templates/create-template"},{"openapi":"get /v2/notify/management/templates/{template_id}","title":"Retrieve a message template","href":"/notify/v2/api-reference/management/templates/get-template"},{"openapi":"patch /v2/notify/management/templates/{template_id}","title":"Update a message template","href":"/notify/v2/api-reference/management/templates/update-template"},{"openapi":"delete /v2/notify/management/templates/{template_id}","title":"Delete a message template","href":"/notify/v2/api-reference/management/templates/delete-template"},{"openapi":"post /v2/notify/management/templates/{template_id}/submit","title":"Submit a message template for review","href":"/notify/v2/api-reference/management/templates/submit-template"}]},{"group":"Subscriptions","pages":[{"openapi":"get /v2/notify/management/subscriptions","title":"List subscription configurations","href":"/notify/v2/api-reference/management/subscriptions/list-subscription-configs"},{"openapi":"get /v2/notify/management/subscriptions/{config_id}/phone_numbers","title":"List subscription phone numbers","href":"/notify/v2/api-reference/management/subscriptions/list-subscription-phone-numbers"},{"openapi":"get /v2/notify/management/subscriptions/{config_id}/phone_numbers/{phone_number}","title":"Get subscription phone number status","href":"/notify/v2/api-reference/management/subscriptions/get-subscription-phone-number"},{"openapi":"get /v2/notify/management/subscriptions/{config_id}/phone_numbers/{phone_number}/events","title":"List subscription phone number events","href":"/notify/v2/api-reference/management/subscriptions/list-subscription-phone-number-events"}]}]}]}]}]}]},"basePath":"","title":"Reply to an inbound message - Prelude Docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","SectionHeading-DyxPTJti.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}