Add a user message to a chat. The assistant processes the message and returns a reply, which may include follow-up suggestions and product recommendations.
Authentication
This request requires your API key in the x-api-key header.
Request
string
required
ID of the chat to add the message to.
string
Identifier of the store selected in your app. For BAUHAUS, use the numeric Fachcentrum number, for example 856. Send the current selection with every message.
string
required
The user’s message text.
string
required
The URL of the page the user is currently viewing. Used to give the assistant page context.
Response
string
required
ID of the created message.
string
required
ID of the chat the message belongs to.
string
required
The message type, for example whether it originated from the user or the assistant.
string
required
The message text content.
string[]
Optional list of suggested follow-up questions.
object[]
Optional list of recommended products.
Show MessageProductDto
string
required
Global Trade Item Number of the product.
string
required
Brand name.
string
required
Product name or designation.
string
required
URL of the product detail page.
string
required
URL of the product image. Empty when the product has no image.
number
required
Product price.
string
required
Currency code of the price, for example EUR.
string
Additional price information.
string
Text shown instead of the price when the product has no price, for example “auf Anfrage”.
object[]
Key/value pairs describing the product location.
Show MessageProductLocationDto
string
required
Location attribute name.
string
required
Location attribute value.
object
Stock availability of the product.
Show MessageAvailabilityDto
string
required
Availability status.
number
required
Available quantity.
string
Product category.
string
Search query that surfaced the product.
string
Product description.
string
Text explaining why the product is recommended.
object[]
Highlight badges attached to the product.
Show ProductFlags
string
required
Flag type.
string
required
Flag title.
string
required
Flag text.
string
required
ISO 8601 timestamp of when the message was created.
To receive the assistant’s streamed response and tool activity in real time, open the Message Events stream for the same chatId.
Examples
curl -X POST https://api.yourhomie.ai/v1/chats/ab12cd34-ef56-7890-ab12-cd34ef567890/messages \ -H "x-api-key: homie_sk_live_8f3a..." \ -H "Content-Type: application/json" \ -d '{ "message": "Do you have a waterproof jacket in blue?", "currentUrl": "https://shop.example.com/jackets" }'
const chatId = "ab12cd34-ef56-7890-ab12-cd34ef567890";const res = await fetch( `https://api.yourhomie.ai/v1/chats/${chatId}/messages`, { method: "POST", headers: { "x-api-key": "homie_sk_live_8f3a...", "Content-Type": "application/json", }, body: JSON.stringify({ message: "Do you have a waterproof jacket in blue?", currentUrl: "https://shop.example.com/jackets", }), },);const message = await res.json();
Success response
{ "id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f2a3b4c5d", "chatId": "ab12cd34-ef56-7890-ab12-cd34ef567890", "type": "assistant", "content": "Yes, here is a waterproof jacket available in blue.", "suggestions": [ "What sizes are available?", "Is it machine washable?" ], "products": [ { "gtin": "4006381333931", "brand": "Acme", "designation": "All-Weather Jacket", "url": "https://shop.example.com/p/all-weather-jacket", "image": "https://shop.example.com/img/all-weather-jacket.jpg", "price": 129.99, "currency": "EUR", "availability": { "status": "in_stock", "quantity": 12 } } ], "createdAt": "2025-10-16T11:45:02.512Z"}
Error response
{ "message": "Monthly message quota reached"}
BAUHAUS shelf locations
For BAUHAUS web assistants, store identifies the Fachcentrum selected in your app. Send its current store number with every message. Naming another Fachcentrum in the message does not change the app’s selection.For a shelf question, the assistant can look up known BAUHAUS article numbers in the selected Fachcentrum. When store search is enabled, it can also resolve a different Fachcentrum named in the conversation and retrieve its shelf data separately. If the Fachcentrum cannot be resolved, the assistant asks for clarification or for the customer to select it in the app; it must not substitute the selected Fachcentrum’s shelves.Stock and shelf data are independent. A successful BAUHAUS response may supply no shelf for an otherwise available product. The assistant distinguishes this from a failed lookup and does not infer availability from a shelf location.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
chatId
string
required
Query Parameters
store
string
Body
application/json
message
string
required
currentUrl
string
required
Response
201 - application/json
id
string
required
chatId
string
required
type
string
required
content
string
required
createdAt
string
required
suggestions
string[]
products
object[]
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"homie Documentation","colors":{"primary":"#0F23FF","light":"#3F4FFF","dark":"#0C1CCC"},"logo":{"light":"https://mintcdn.com/homieai/Z9ydePzkayqobDsD/logo/light.svg?fit=max\u0026auto=format\u0026n=Z9ydePzkayqobDsD\u0026q=85\u0026s=c928fd0b9257ecb4f90dddbd9afa79fa","dark":"https://mintcdn.com/homieai/Z9ydePzkayqobDsD/logo/dark.svg?fit=max\u0026auto=format\u0026n=Z9ydePzkayqobDsD\u0026q=85\u0026s=217b0a7e44ed379e719f02ea1680140e"},"favicon":"https://mintcdn.com/homieai/Z9ydePzkayqobDsD/favicon.svg?fit=max\u0026auto=format\u0026n=Z9ydePzkayqobDsD\u0026q=85\u0026s=cc40652add2045643c7e0229cd4d209a","navbar":{"links":[{"href":"mailto:support@yourhomie.ai","label":"Support"}],"primary":{"type":"button","label":"Platform","href":"https://app.yourhomie.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/homieai"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/home"},{"language":"de","default":false,"href":"de/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"homieai","hasAudioNarration":false,"actualSubdomain":"homieai","customDomains":["docs.yourhomie.ai"],"gitSource":{"type":"github","owner":"baoo-technologies","repo":"homie-ai","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10b8019ffae5051c40173f"},"entitlements":{},"buildId":"6b118266c2332a331c7bf5c8","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"de","tag":"Benutzerhandbuch","count":61},{"language":"en","tag":"User Guide","count":61},{"language":"de","tag":"Assistenten","count":25},{"language":"en","tag":"Assistants","count":25},{"language":"de","tag":"API-Referenz","count":14},{"language":"en","tag":"API Reference","count":14},{"language":"de","tag":"Wissen","count":13},{"language":"en","tag":"Knowledge","count":13},{"language":"de","tag":"Veröffentlichen","count":9},{"language":"en","tag":"Publish","count":9},{"language":"de","tag":"REST API","count":7},{"language":"de","tag":"Client-API","count":7},{"language":"de","tag":"Wissensspeicher","count":7},{"language":"de","tag":"Einstellungen","count":7},{"language":"en","tag":"REST API","count":7},{"language":"en","tag":"Client API","count":7},{"language":"en","tag":"Knowledge stores","count":7},{"language":"en","tag":"Settings","count":7},{"language":"de","tag":"Erste Schritte","count":5},{"language":"en","tag":"Get Started","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/api-reference/backend/messages/send-message","slug":"/en/api-reference/backend/messages/send-message","pageMetadata":{"title":"Add Message","description":"Send a user message to a chat and receive the assistant's reply.","openapi":"api-reference/openapi.json POST /v1/chats/{chatId}/messages","href":"/en/api-reference/backend/messages/send-message"},"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 user message to a chat and receive the assistant’s reply.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Add a user message to a chat. The assistant processes the message and returns a reply, which may include follow-up suggestions and product recommendations.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`This request requires your API key in the `,_jsx(_components.code,{children:`x-api-key`}),` header.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{path:`chatId`,type:`string`,required:true,id:`param-chat-id`,children:_jsx(_components.p,{children:`ID of the chat to add the message to.`})}),`\n`,_jsx(ParamField,{query:`store`,type:`string`,id:`param-store`,children:_jsxs(_components.p,{children:[`Identifier of the store selected in your app. For BAUHAUS, use the numeric Fachcentrum number, for example `,_jsx(_components.code,{children:`856`}),`. Send the current selection with every message.`]})}),`\n`,_jsx(ParamField,{body:`message`,type:`string`,required:true,id:`param-message`,children:_jsx(_components.p,{children:`The user’s message text.`})}),`\n`,_jsx(ParamField,{body:`currentUrl`,type:`string`,required:true,id:`param-current-url`,children:_jsx(_components.p,{children:`The URL of the page the user is currently viewing. Used to give the assistant page context.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`ID of the created message.`})}),`\n`,_jsx(ResponseField,{name:`chatId`,type:`string`,required:true,id:`param-chat-id-1`,children:_jsx(_components.p,{children:`ID of the chat the message belongs to.`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsx(_components.p,{children:`The message type, for example whether it originated from the user or the assistant.`})}),`\n`,_jsx(ResponseField,{name:`content`,type:`string`,required:true,id:`param-content`,children:_jsx(_components.p,{children:`The message text content.`})}),`\n`,_jsx(ResponseField,{name:`suggestions`,type:`string[]`,id:`param-suggestions`,children:_jsx(_components.p,{children:`Optional list of suggested follow-up questions.`})}),`\n`,_jsxs(ResponseField,{name:`products`,type:`object[]`,id:`param-products`,children:[_jsx(_components.p,{children:`Optional list of recommended products.`}),_jsxs(Expandable,{title:`MessageProductDto`,children:[_jsx(ResponseField,{name:`gtin`,type:`string`,required:true,id:`param-gtin`,children:_jsx(_components.p,{children:`Global Trade Item Number of the product.`})}),_jsx(ResponseField,{name:`brand`,type:`string`,required:true,id:`param-brand`,children:_jsx(_components.p,{children:`Brand name.`})}),_jsx(ResponseField,{name:`designation`,type:`string`,required:true,id:`param-designation`,children:_jsx(_components.p,{children:`Product name or designation.`})}),_jsx(ResponseField,{name:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`URL of the product detail page.`})}),_jsx(ResponseField,{name:`image`,type:`string`,required:true,id:`param-image`,children:_jsx(_components.p,{children:`URL of the product image. Empty when the product has no image.`})}),_jsx(ResponseField,{name:`price`,type:`number`,required:true,id:`param-price`,children:_jsx(_components.p,{children:`Product price.`})}),_jsx(ResponseField,{name:`currency`,type:`string`,required:true,id:`param-currency`,children:_jsxs(_components.p,{children:[`Currency code of the price, for example `,_jsx(_components.code,{children:`EUR`}),`.`]})}),_jsx(ResponseField,{name:`priceInfo`,type:`string`,id:`param-price-info`,children:_jsx(_components.p,{children:`Additional price information.`})}),_jsx(ResponseField,{name:`priceText`,type:`string`,id:`param-price-text`,children:_jsx(_components.p,{children:`Text shown instead of the price when the product has no price, for example “auf Anfrage”.`})}),_jsxs(ResponseField,{name:`location`,type:`object[]`,id:`param-location`,children:[_jsx(_components.p,{children:`Key/value pairs describing the product location.`}),_jsxs(Expandable,{title:`MessageProductLocationDto`,children:[_jsx(ResponseField,{name:`key`,type:`string`,required:true,id:`param-key`,children:_jsx(_components.p,{children:`Location attribute name.`})}),_jsx(ResponseField,{name:`value`,type:`string`,required:true,id:`param-value`,children:_jsx(_components.p,{children:`Location attribute value.`})})]})]}),_jsxs(ResponseField,{name:`availability`,type:`object`,id:`param-availability`,children:[_jsx(_components.p,{children:`Stock availability of the product.`}),_jsxs(Expandable,{title:`MessageAvailabilityDto`,children:[_jsx(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`Availability status.`})}),_jsx(ResponseField,{name:`quantity`,type:`number`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`Available quantity.`})})]})]}),_jsx(ResponseField,{name:`category`,type:`string`,id:`param-category`,children:_jsx(_components.p,{children:`Product category.`})}),_jsx(ResponseField,{name:`query`,type:`string`,id:`param-query`,children:_jsx(_components.p,{children:`Search query that surfaced the product.`})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Product description.`})}),_jsx(ResponseField,{name:`recommendationText`,type:`string`,id:`param-recommendation-text`,children:_jsx(_components.p,{children:`Text explaining why the product is recommended.`})}),_jsxs(ResponseField,{name:`flags`,type:`object[]`,id:`param-flags`,children:[_jsx(_components.p,{children:`Highlight badges attached to the product.`}),_jsxs(Expandable,{title:`ProductFlags`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type-1`,children:_jsx(_components.p,{children:`Flag type.`})}),_jsx(ResponseField,{name:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`Flag title.`})}),_jsx(ResponseField,{name:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`Flag text.`})})]})]})]})]}),`\n`,_jsx(ResponseField,{name:`createdAt`,type:`string`,required:true,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp of when the message was created.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`To receive the assistant’s streamed response and tool activity in real time, open the `,_jsx(_components.a,{href:`/en/api-reference/backend/messages/message-events`,children:`Message Events`}),` stream for the same `,_jsx(_components.code,{children:`chatId`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.yourhomie.ai/v1/chats/ab12cd34-ef56-7890-ab12-cd34ef567890/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: homie_sk_live_8f3a...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"message\": \"Do you have a waterproof jacket in blue?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currentUrl\": \"https://shop.example.com/jackets\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript (fetch)`,numberOfLines:`18`,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:`18`,children:[_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:` chatId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ab12cd34-ef56-7890-ab12-cd34ef567890\"`}),_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:` res`}),_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:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_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:\" `https://api.yourhomie.ai/v1/chats/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chatId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/messages`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_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:` headers:`}),_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:` \"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"homie_sk_live_8f3a...\"`}),_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:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Do you have a waterproof jacket in blue?\"`}),_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:` currentUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://shop.example.com/jackets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\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:` message`}),_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:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`success-response`,children:`Success response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`26`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9b8a7c6d-5e4f-4a3b-9c2d-1e0f2a3b4c5d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chatId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ab12cd34-ef56-7890-ab12-cd34ef567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"assistant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Yes, here is a waterproof jacket available in blue.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"suggestions\"`}),_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:` \"What sizes are available?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Is it machine washable?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"products\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gtin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4006381333931\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Acme\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"designation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"All-Weather Jacket\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://shop.example.com/p/all-weather-jacket\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://shop.example.com/img/all-weather-jacket.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`129.99`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"availability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"in_stock\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-10-16T11:45:02.512Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`error-response`,children:`Error response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Monthly message quota reached\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`bauhaus-shelf-locations`,children:`BAUHAUS shelf locations`}),`\n`,_jsxs(_components.p,{children:[`For BAUHAUS web assistants, `,_jsx(_components.code,{children:`store`}),` identifies the Fachcentrum selected in your app. Send its current store number with every message. Naming another Fachcentrum in the message does not change the app’s selection.`]}),`\n`,_jsx(_components.p,{children:`For a shelf question, the assistant can look up known BAUHAUS article numbers in the selected Fachcentrum. When store search is enabled, it can also resolve a different Fachcentrum named in the conversation and retrieve its shelf data separately. If the Fachcentrum cannot be resolved, the assistant asks for clarification or for the customer to select it in the app; it must not substitute the selected Fachcentrum’s shelves.`}),`\n`,_jsx(_components.p,{children:`Stock and shelf data are independent. A successful BAUHAUS response may supply no shelf for an otherwise available product. The assistant distinguishes this from a failed lookup and does not infer availability from a shelf location.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add Message","description":"Send a user message to a chat and receive the assistant's reply.","openapi":"api-reference/openapi.json POST /v1/chats/{chatId}/messages","href":"/en/api-reference/backend/messages/send-message"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Success response","slug":"success-response","depth":3,"children":[]},{"title":"Error response","slug":"error-response","depth":3,"children":[]}]},{"title":"BAUHAUS shelf locations","slug":"bauhaus-shelf-locations","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"ChatController_addMessageToChat","summary":"Add Message to Chat","parameters":["aa1b3dd2-d721-4414-9b84-2f90f1652d55","34b0772a-6f21-4b59-8269-beb6767c45fe"],"requestBody":"c6ee96b5-156d-4aa8-a153-ee5bb722526f","responses":{"201":"7e39c77a-124c-478a-87b1-75f81692b228"},"tags":["Chat"],"security":["28b6e597-640f-47c4-83e9-da19b7d0fd15"],"method":"post","type":"path","servers":["748ed85b-2895-44da-a8bc-344d3af5eba5"],"path":"/v1/chats/{chatId}/messages","baseUrlOptions":["https://api.yourhomie.ai"],"title":"Add Message to Chat","description":"Send a user message to a chat and receive the assistant's reply.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"aa1b3dd2-d721-4414-9b84-2f90f1652d55":{"name":"chatId","required":true,"in":"path","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"34b0772a-6f21-4b59-8269-beb6767c45fe":{"name":"store","required":false,"in":"query","schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"currentUrl":{"type":"string","isRequired":true,"uniqueKey":"currentUrl","typeLabel":"string"}},"required":["message","currentUrl"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","currentUrl":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7e39c77a-124c-478a-87b1-75f81692b228":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"chatId":{"type":"string","isRequired":true,"uniqueKey":"chatId","typeLabel":"string"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"content":{"type":"string","isRequired":true,"uniqueKey":"content","typeLabel":"string"},"createdAt":{"type":"string","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string"},"suggestions":{"type":"array","items":{"type":"string","uniqueKey":"suggestions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"suggestions","typeLabel":"string[]"},"products":{"type":"array","items":{"type":"object","properties":{"gtin":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].gtin","typeLabel":"string"},"brand":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].brand","typeLabel":"string"},"designation":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].designation","typeLabel":"string"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"products.items.[INDEX].url","typeLabel":"string\u003curi>"},"image":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"products.items.[INDEX].image","typeLabel":"string\u003curi>"},"price":{"type":"number","isRequired":true,"uniqueKey":"products.items.[INDEX].price","typeLabel":"number"},"currency":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].currency","typeLabel":"string"},"priceInfo":{"type":"string","uniqueKey":"products.items.[INDEX].priceInfo","typeLabel":"string"},"priceText":{"type":"string","uniqueKey":"products.items.[INDEX].priceText","typeLabel":"string"},"location":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].location.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].location.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"uniqueKey":"products.items.[INDEX].location.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].location","typeLabel":"object[]"},"availability":{"type":"object","properties":{"status":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].availability.status","typeLabel":"string"},"quantity":{"type":"number","isRequired":true,"uniqueKey":"products.items.[INDEX].availability.quantity","typeLabel":"number"}},"required":["status","quantity"],"uniqueKey":"products.items.[INDEX].availability","typeLabel":"object"},"category":{"type":"string","uniqueKey":"products.items.[INDEX].category","typeLabel":"string"},"query":{"type":"string","uniqueKey":"products.items.[INDEX].query","typeLabel":"string"},"description":{"type":"string","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"recommendationText":{"type":"string","uniqueKey":"products.items.[INDEX].recommendationText","typeLabel":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].flags.items.[INDEX].type","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].flags.items.[INDEX].title","typeLabel":"string"},"text":{"type":"string","isRequired":true,"uniqueKey":"products.items.[INDEX].flags.items.[INDEX].text","typeLabel":"string"}},"required":["type","title","text"],"uniqueKey":"products.items.[INDEX].flags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products.items.[INDEX].flags","typeLabel":"object[]"}},"required":["gtin","brand","designation","url","image","price","currency"],"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"uniqueKey":"products","typeLabel":"object[]"}},"required":["id","chatId","type","content","createdAt"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","chatId":"\u003cstring>","type":"\u003cstring>","content":"\u003cstring>","createdAt":"\u003cstring>","suggestions":["\u003cstring>"],"products":[{"gtin":"\u003cstring>","brand":"\u003cstring>","designation":"\u003cstring>","url":"\u003cstring>","image":"\u003cstring>","price":123,"currency":"\u003cstring>","priceInfo":"\u003cstring>","priceText":"\u003cstring>","location":[{"key":"\u003cstring>","value":"\u003cstring>"}],"availability":{"status":"\u003cstring>","quantity":123},"category":"\u003cstring>","query":"\u003cstring>","description":"\u003cstring>","recommendationText":"\u003cstring>","flags":[{"type":"\u003cstring>","title":"\u003cstring>","text":"\u003cstring>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"28b6e597-640f-47c4-83e9-da19b7d0fd15":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"}}},"servers":{"748ed85b-2895-44da-a8bc-344d3af5eba5":{"url":"https://api.yourhomie.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[],"schemeName":"bearer"},"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":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"homieai","siteName":"homie Documentation","title":"Add Message - homie Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/backend/messages/send-message","matchLevel":0},"de":{"href":"/de/api-reference/backend/messages/send-message","matchLevel":1}}},"lastModified":"2026-12-03T14:53:33.678Z","originalFileLocation":"en/api-reference/backend/messages/send-message.mdx","locale":"en"},"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 user message to a chat and receive the assistant\u0026#x27;s reply.\">\u003cmeta data-mint-head name=\"application-name\" content=\"homie Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_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/homieai/yQhZt8zHStdn19Hr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add Message - homie Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a user message to a chat and receive the assistant\u0026#x27;s reply.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"homie Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://homieai.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Add+Message\u0026amp;description=Send+a+user+message+to+a+chat+and+receive+the+assistant%27s+reply.\u0026amp;theme=5e786ab20e29ea15e6464884\u0026amp;signature=3adba9aefc61f12e5669c51a962d06cbbec75a98be6671918134c44f434e4e81\">\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=\"Add Message - homie Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a user message to a chat and receive the assistant\u0026#x27;s reply.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://homieai.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Add+Message\u0026amp;description=Send+a+user+message+to+a+chat+and+receive+the+assistant%27s+reply.\u0026amp;theme=5e786ab20e29ea15e6464884\u0026amp;signature=3adba9aefc61f12e5669c51a962d06cbbec75a98be6671918134c44f434e4e81\">\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/homieai/yQhZt8zHStdn19Hr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"homie Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F23FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/backend/messages/send-message.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.yourhomie.ai/de/api-reference/backend/messages/send-message\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.yourhomie.ai/#organization\",\"name\":\"homie Documentation\",\"url\":\"https://docs.yourhomie.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/homieai/Z9ydePzkayqobDsD/logo/light.svg?fit=max\u0026auto=format\u0026n=Z9ydePzkayqobDsD\u0026q=85\u0026s=c928fd0b9257ecb4f90dddbd9afa79fa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.yourhomie.ai#website\",\"name\":\"homie Documentation\",\"url\":\"https://docs.yourhomie.ai\",\"publisher\":{\"@id\":\"https://docs.yourhomie.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message#webpage\",\"url\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\",\"name\":\"Add Message\",\"description\":\"Send a user message to a chat and receive the assistant's reply.\",\"dateModified\":\"2026-12-03T14:53:33.678Z\",\"isPartOf\":{\"@id\":\"https://docs.yourhomie.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.yourhomie.ai/en/api-reference/backend/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Message\",\"item\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message#apireference\",\"headline\":\"Add Message\",\"name\":\"Add Message\",\"description\":\"Send a user message to a chat and receive the assistant's reply.\",\"url\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.yourhomie.ai/en/api-reference/backend/messages/send-message#webpage\"},\"dateModified\":\"2026-12-03T14:53:33.678Z\",\"publisher\":{\"@id\":\"https://docs.yourhomie.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.yourhomie.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"homie Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"homie Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/backend/messages/send-message.md","siteName":"homie Documentation","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/en/home"}]},{"tab":"API Reference","groups":[{"group":"REST API","icon":"server","pages":[{"title":"Introduction","href":"/en/api-reference/backend/overview"},{"group":"Chats","pages":[{"title":"Create Chat","openapi":"api-reference/openapi.json POST /v1/chats","href":"/en/api-reference/backend/chats/create-chat"},{"title":"Get Chat","description":"Retrieve a single chat by its ID.","openapi":"api-reference/openapi.json GET /v1/chats/{chatId}","href":"/en/api-reference/backend/chats/get-chat"}]},{"group":"Messages","pages":[{"title":"Add Message","openapi":"api-reference/openapi.json POST /v1/chats/{chatId}/messages","href":"/en/api-reference/backend/messages/send-message"},{"title":"List Messages","description":"Page through the message history of a chat.","openapi":"api-reference/openapi.json GET /v1/chats/{chatId}/messages","href":"/en/api-reference/backend/messages/list-messages"},{"title":"Message Events","openapi":"api-reference/openapi.json GET /v1/chats/{chatId}/messages/events","href":"/en/api-reference/backend/messages/message-events"}]},{"group":"Product Questions","pages":[{"title":"Get PDP Question Set","openapi":"api-reference/openapi.json GET /v1/knowledge/pdp-questions/{organizationId}/public","href":"/en/api-reference/backend/pdp-questions/get-pdp-questions"}]}]},{"group":"Client API","icon":"code","pages":[{"title":"Introduction","href":"/en/api-reference/client/overview"},{"title":"Configuration","href":"/en/api-reference/client/configuration"},{"title":"Methods","href":"/en/api-reference/client/methods"},{"title":"Analytics consent","href":"/en/api-reference/client/consent"},{"title":"Events","href":"/en/api-reference/client/events"},{"title":"Examples","href":"/en/api-reference/client/examples"},{"title":"Troubleshooting","href":"/en/api-reference/client/troubleshooting"}]}]},{"tab":"Help \u0026 Support","pages":[{"title":"Help \u0026 Support","href":"/en/faq/faq"}]}]},{"language":"de","default":false,"pages":[{"title":"de","href":"/de/api-reference/backend/messages/send-message"}]}]},"basePath":"","title":"Add Message - homie Documentation","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}