Le point de terminaison assistant message v1 est compatible avec AI SDK v4. Si vous utilisez AI SDK v5 ou une version ultérieure, utilisez plutôt le point de terminaison assistant message v2.
streamProtocol: 'data' - Requis pour les réponses en streaming.
sendExtraMessageFields: true - Requis pour envoyer les métadonnées des messages.
body.fp - Identifiant d’empreinte (utilisez ‘anonymous’ ou un identifiant utilisateur).
body.retrievalPageSize - Nombre de résultats de recherche à utiliser (recommandé : 5).
Configuration optionnelle :
body.context - Tableau d’informations contextuelles à fournir à l’Assistant. Chaque objet de contexte contient :
type - Soit 'code' soit 'textSelection'.
value - L’extrait de code ou le texte sélectionné.
elementId (optionnel) - Identifiant de l’élément d’interface contenant le contexte.
body.currentPath - Le chemin de la page actuellement consultée par l’utilisateur. Lorsqu’il est fourni, l’Assistant utilise ce contexte pour donner des réponses plus pertinentes. Longueur maximale : 200 caractères.
Consultez useChat dans la documentation du SDK AI pour en savoir plus.
L'en-tête Authorization attend un jeton Bearer. Utilisez une clé d'API assistant. Générez-en une depuis la page des clés d'API de votre Dashboard. En production, faites transiter les requêtes par votre backend plutôt que d'intégrer la clé dans du code côté client.
L’identifiant de domain à partir de votre URL domain.mintlify.site. Il se trouve à la fin de l’URL de votre Dashboard. Par exemple, dashboard.mintlify.com/organization/domain a un identifiant de domain de domain.
Identifiant de fingerprint pour le suivi des sessions de conversation. Utilisez « anonymous » pour les utilisateurs anonymes ou fournissez un identifiant utilisateur unique.
Tableau de messages représentant la conversation. Côté frontend, vous utiliserez probablement la fonction handleSubmit du hook useChat du package @ai-sdk pour ajouter les messages utilisateur et gérer les réponses en streaming, plutôt que de définir manuellement les objets de ce tableau, car ils comportent de très nombreux paramètres.
Identifiant facultatif utilisé pour maintenir la continuité d’une conversation sur plusieurs messages. Lorsqu’il est fourni, il permet au système de rattacher les messages suivants au même fil de discussion. Le threadId est renvoyé dans la réponse sous la forme event.threadId lorsque event.type === 'finish'.
Nombre de résultats de recherche dans la documentation à utiliser pour générer la réponse. Des valeurs plus élevées fournissent davantage de contexte mais peuvent augmenter le temps de réponse. Valeur recommandée : 5.
Chemin de la page que l’utilisateur consulte actuellement. Lorsqu’il est fourni, l’Assistant utilise ce contexte pour donner des réponses plus pertinentes. Longueur maximale : 200 caractères.
Response
Message généré avec succès.
Objet de réponse dont les parties du flux de données sont formatées avec le status, les en-têtes et le champ content spécifiés. Pour plus d’informations, consultez la documentation de l’AI SDK sur ai-sdk.dev/docs/ai-sdk-ui/streaming-data. Utilisez le hook useChat de ai-sdk pour gérer le flux de réponse.
⌘I
Créer un message de l’Assistant (v1)
curl --request POST \ --url https://api.mintlify.com/discovery/v1/assistant/{domain}/message \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fp": "<string>", "messages": [ { "id": "foobar", "role": "user", "content": "how do i get started", "parts": [ { "type": "text", "text": "How do I get started" } ] } ], "threadId": null, "retrievalPageSize": 5, "filter": null, "context": [ { "value": "<string>", "path": "<string>", "elementId": "<string>" } ], "currentPath": "<string>"}'
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Mintlify","description":"Mintlify is a platform for building and hosting documentation websites. It provides a set of tools and services for maintaining documentation and making it accessible to AI agents.","colors":{"primary":"#166E3F","light":"#26BD6C","dark":"#166E3F"},"logo":{"light":"https://mintcdn.com/mintlify/ZmWpbGQa5yv5AElR/logo/light.svg?fit=max\u0026auto=format\u0026n=ZmWpbGQa5yv5AElR\u0026q=85\u0026s=094e41f7b58b2cab0a6faa2bab2828e0","dark":"https://mintcdn.com/mintlify/ZmWpbGQa5yv5AElR/logo/dark.svg?fit=max\u0026auto=format\u0026n=ZmWpbGQa5yv5AElR\u0026q=85\u0026s=a7088b08f6fc6783eb007b3de67d4c39","href":"https://mintlify.com/docs"},"favicon":{"light":"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026auto=format\u0026n=HKyBg3pjnkyq1if1\u0026q=85\u0026s=6f16cb0842f8e4b4ba8a05671aa661f9","dark":"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026auto=format\u0026n=HKyBg3pjnkyq1if1\u0026q=85\u0026s=6f16cb0842f8e4b4ba8a05671aa661f9"},"api":{"mdx":{"auth":{"method":"bearer"}}},"navbar":{"links":[{"href":"https://mintlify.com/contact/sales","label":"Talk to us"}],"primary":{"type":"button","label":"Get started","href":"https://mintlify.com/start"}},"footer":{"socials":{"x":"https://x.com/mintlify","linkedin":"https://www.linkedin.com/company/mintlify","github":"https://github.com/mintlify"},"links":[{"header":"Explore","items":[{"label":"Startups","href":"https://www.mintlify.com/startups"},{"label":"Enterprise","href":"https://www.mintlify.com/enterprise"},{"label":"OSS program","href":"https://www.mintlify.com/oss-program"},{"label":"Switch","href":"https://www.mintlify.com/switch"}]},{"header":"Resources","items":[{"label":"Customers","href":"https://mintlify.com/customers"},{"label":"Blog","href":"https://mintlify.com/blog"},{"label":"Pricing","href":"https://www.mintlify.com/pricing"},{"label":"Roadmap","href":"https://mintlify.com/roadmap"},{"label":"Contact support","href":"https://www.mintlify.com/docs/contact-support"},{"label":"Feature requests","href":"https://github.com/orgs/mintlify/discussions/categories/feature-requests"},{"label":"Status","href":"https://www.mintlify.com/docs/status"}]},{"header":"Company","items":[{"label":"Careers","href":"https://mintlify.com/careers"},{"label":"Wall of love","href":"https://www.mintlify.com/wall-of-love"}]},{"header":"Legal","items":[{"label":"Privacy policy","href":"https://mintlify.com/legal/privacy"},{"label":"Terms of Service","href":"https://mintlify.com/legal/terms"},{"label":"Security","href":"https://security.mintlify.com/?_gl=1*ascm4x*_gcl_au*NTU1ODkzNjQ0LjE3NTQ5Mjg4NzIuMTgzMDQ5NTExMS4xNzU3NTQwMDk1LjE3NTc1NDAwOTQ."}]}]},"seo":{"metatags":{"canonical":"https://www.mintlify.com/docs","google-site-verification":"YRuJgIxsRnMkiRTYTo_tEsJSFyIE3AraEiukTbeV4Ag","og:locale":"en_US","twitter:site":"@mintlify"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-RCYWHL7EQ7"},"posthog":{"apiKey":"phc_eNuN6Ojnk9O7uWfC17z12AK85fNR0BY6IiGVy0Gfwzw"}},"contextual":{"options":["copy","download-spec","chatgpt","claude","add-mcp","cursor","vscode"],"display":"header"},"thumbnails":{"preset":"classic","background":"https://mintcdn.com/mintlify/1C69LFnpEoJWo8v_/images/thumbnail/background.svg?fit=max\u0026auto=format\u0026n=1C69LFnpEoJWo8v_\u0026q=85\u0026s=7d512e195072d81cd711997430fc3034"},"interaction":{"drilldown":false},"markdown":{"instructions":["When working in a Mintlify project, run `mint instructions` for current step-by-step instructions for common tasks. If the command is unknown, run `npx mint@latest instructions`.","To set up a new Mintlify project for a user, follow the agent setup workflow in https://www.mintlify.com/docs/quickstart.md.","To connect a coding agent to a Mintlify project, offer to run `mint agent setup --agent \u003cclaude-code|codex|cursor>` in the project directory. It installs Mintlify skills and adds the admin MCP server to the agent's configuration, then the user completes OAuth sign-in. See https://www.mintlify.com/docs/cli/commands.md#mint-agent-setup.","For plans and pricing, see https://www.mintlify.com/pricing.md."]},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":""},{"language":"fr","href":"fr"},{"language":"es","href":"es"},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mintlify","hasAudioNarration":false,"actualSubdomain":"mintlify","customDomains":["www.mintlify.com","mintlify.com"],"gitSource":{"type":"github","owner":"mintlify","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae660e8039e90b0fea0f125","collectionId":"5756bd7e-aa0d-4151-a709-23df208880b2","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae660e8039e90b0fea0f125"},"feedback":{"thumbs":true,"edits":false,"issues":false,"contextualFeedback":{"allowEmail":false},"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED","enabled":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae660e8039e90b0fea0f125","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"en","tag":"Documentation","count":176},{"language":"es","tag":"Documentación","count":176},{"language":"fr","tag":"Documentation","count":176},{"language":"zh","tag":"文档","count":176},{"language":"en","tag":"Manage your site","count":54},{"language":"en","tag":"Help center","count":54},{"language":"es","tag":"Administra tu sitio","count":54},{"language":"es","tag":"Centro de ayuda","count":54},{"language":"fr","tag":"Gérer votre site","count":54},{"language":"fr","tag":"Centre d'aide","count":54},{"language":"zh","tag":"管理站点","count":54},{"language":"zh","tag":"帮助中心","count":54},{"language":"en","tag":"Create content","count":49},{"language":"es","tag":"Crear contenido","count":49},{"language":"fr","tag":"Créer du contenu","count":49},{"language":"zh","tag":"创建内容","count":49},{"language":"en","tag":"Analytics","count":32},{"language":"en","tag":"Learn","count":31},{"language":"en","tag":"Guides","count":31},{"language":"es","tag":"Aprender","count":31},{"language":"es","tag":"Guías","count":31},{"language":"fr","tag":"Apprendre","count":31},{"language":"fr","tag":"Guides","count":31},{"language":"zh","tag":"学习","count":31},{"language":"zh","tag":"指南","count":31},{"language":"en","tag":"Components","count":29},{"language":"es","tag":"Componentes","count":29},{"language":"fr","tag":"Composants","count":29},{"language":"zh","tag":"组件","count":29},{"language":"es","tag":"Analytics","count":24},{"language":"fr","tag":"Analytics","count":24},{"language":"en","tag":"API reference","count":22},{"language":"es","tag":"Referencia de la API","count":22},{"language":"fr","tag":"Référence de l’API","count":22},{"language":"zh","tag":"API 参考文档","count":21},{"language":"en","tag":"Integrations","count":20},{"language":"es","tag":"Integraciones","count":20},{"language":"fr","tag":"Intégrations","count":20},{"language":"zh","tag":"集成","count":20},{"language":"zh","tag":"Analytics","count":16}],"searchSettings":{"maxResults":11,"isFiltersEnabled":false,"showContentSnippets":false}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"type":"email","email":"support@mintlify.com"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"assistant-autopilot-suggestions","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"LinearAgent","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-bash","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-captcha-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"related-pages","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-captcha-client","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"use-workflow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"selectively-prewarm","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":"mcp-feedback-tool","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":"composio-triggers","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"github-push-net-diff","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":"slash-docs-auth","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":"dashboard-agent-page","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stream-large-assets","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":"instinct-self-updating-docs","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-vite-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"68e7dee07dc8f0c555b3c34b","deploymentId":"62de06d6290794c75c20155e","questionText":"What is the contextual menu?","status":"active","generatedBy":"manual","createdAt":"2025-10-09T16:12:16.120Z","updatedAt":"2025-10-09T16:12:16.120Z","__v":0}],"privacy":{"consentBanner":{"categories":["necessary","measurement","marketing"],"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"fonts.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwoT9nA2.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inter';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCm3FwrK3iLTcvnUwQT9g.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--font-inter:\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\",\n \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif}body{font-feature-settings:normal;font-variant-numeric:normal;font-variant-ligatures:normal}.font-inter,body{font-family:var(--font-inter)}.italic,em,i{font-style:italic;font-synthesis:none}div,h1,h2,h3,h4,h5,h6,p,span{font-feature-settings:\"ss01\" 0,\"ss02\" 0,\"ss03\" 0;font-variant-alternates:normal}"},{"filePath":"playground.css","content":"@keyframes assistant-playground-spin{to{transform:rotate(360deg)}}html[data-current-path$=\"/assistant/widget\"] [data-assistant-playground-layout]{--assistant-playground-frame:#f8f8f8;--assistant-playground-surface:#fcfcfc;--assistant-playground-text-strong:#171717;--assistant-playground-text-default:#6f6f6f;--assistant-playground-text-weak:#8f8f8f;--assistant-playground-stroke:rgba(0, 0, 0, 0.07);--assistant-playground-switch:#147d6f;width:min(100%,720px);margin:1.5rem auto;font-family:var(--font-inter),Inter,ui-sans-serif,system-ui,sans-serif}html.dark[data-current-path$=\"/assistant/widget\"] [data-assistant-playground-layout]{--assistant-playground-frame:#1c1c1c;--assistant-playground-surface:#242424;--assistant-playground-text-strong:#f5f5f5;--assistant-playground-text-default:#b8b8b8;--assistant-playground-text-weak:#8f8f8f;--assistant-playground-stroke:rgba(255, 255, 255, 0.12)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-frame{position:relative;height:720px;overflow:hidden;border-radius:8px;background:var(--assistant-playground-frame);box-shadow:0 0 0 1px var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar{position:absolute;z-index:4;top:10px;left:10px;display:flex;align-items:center;gap:8px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button{display:inline-flex;height:28px;align-items:center;justify-content:center;overflow:hidden;border:0;border-radius:6px;background:var(--assistant-playground-surface);color:var(--assistant-playground-text-strong);box-shadow:0 4px 2px rgba(0,0,0,.04),0 1px 1px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.04),0 0 0 1px var(--assistant-playground-stroke);cursor:pointer}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button:hover{background:color-mix(in srgb,var(--assistant-playground-surface),var(--assistant-playground-text-strong) 4%)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent[data-keyboard-focus=true],html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__tabs button:focus-visible,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-field__control:focus-visible,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-switch:has(.assistant-playground-switch__input:focus-visible),html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button:focus-visible{outline:2px solid #006adc;outline-offset:2px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button--labeled{gap:2px;padding:4px 8px;font-size:13px;font-weight:500;line-height:20px;letter-spacing:-.013px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button--labeled>span{padding-inline:4px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button--icon{width:28px;padding:6px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-toolbar__button svg{width:16px;height:16px;color:var(--assistant-playground-text-default);opacity:1}html[data-current-path$=\"/assistant/widget\"] .theme-icon__fill-wrap,html[data-current-path$=\"/assistant/widget\"] .theme-icon__ring-wrap{transform-origin:0 0;transition-property:transform;transition-duration:.5s;transition-timing-function:cubic-bezier(.45,.05,.25,1)}html[data-current-path$=\"/assistant/widget\"] .theme-icon--dark .theme-icon__ring-wrap{transform:rotate(180deg)}html[data-current-path$=\"/assistant/widget\"] .theme-icon--dark .theme-icon__fill-wrap{transform:scaleX(-1)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview{position:absolute;inset:0;width:100%;height:100%}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview>div:has(>iframe[title=\"Live Assistant Widget preview\"]){width:100%;height:100%}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview iframe[title=\"Live Assistant Widget preview\"]{display:block;width:100%;height:100%!important;aspect-ratio:auto!important;border:0;background:var(--assistant-playground-frame);color-scheme:light dark}html.dark[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview iframe[title=\"Live Assistant Widget preview\"]{color-scheme:dark}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview__status{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:8px;padding:20px;color:var(--assistant-playground-text-default);font-size:12px;line-height:18px;text-align:center;pointer-events:none}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview__spinner{width:16px;height:16px;flex:0 0 auto;border:1.5px solid #d4d4d4;border-top-color:var(--assistant-playground-text-default);border-radius:50%;animation:assistant-playground-spin 700ms linear infinite}@media (prefers-reduced-motion:reduce){html[data-current-path$=\"/assistant/widget\"] .assistant-playground-frame{transition:none}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-preview__spinner{animation:none}html[data-current-path$=\"/assistant/widget\"] .theme-icon__fill-wrap,html[data-current-path$=\"/assistant/widget\"] .theme-icon__ring-wrap{transition:none}}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer{position:absolute;z-index:3;top:50px;left:10px;width:min(307px,calc(100% - 20px));overflow:visible;padding:6px;border-radius:6px;background:var(--assistant-playground-surface);color:var(--assistant-playground-text-strong);box-shadow:0 4px 2px rgba(0,0,0,.04),0 1px 1px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.04),0 0 0 1px var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer[hidden]{display:none}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer__section{display:flex;flex-direction:column;gap:1px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer__heading{display:flex;min-height:28px;align-items:center;padding:4px 8px;color:var(--assistant-playground-text-weak);font-size:13px;font-weight:400;line-height:20px;letter-spacing:-.013px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-field{display:flex;min-height:40px;align-items:center;gap:20px;padding:6px 8px;font-size:14px;font-weight:400;line-height:20px;letter-spacing:-.014px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-field__label{width:91px;flex:0 0 91px;color:var(--assistant-playground-text-strong)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select{width:168px;min-width:0;flex:1 1 auto}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-field__control{height:28px;border:0;border-radius:6px;background:var(--assistant-playground-surface);color:var(--assistant-playground-text-default);box-shadow:0 1px 1px rgba(0,0,0,.1),0 0 0 1px var(--assistant-playground-stroke);font:inherit}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select{position:relative}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select[data-open=true]{z-index:6}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-field__control,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__options button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:4px 9px;text-align:left;cursor:pointer}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__chevron{display:block;width:16px;height:16px;flex:0 0 16px;color:var(--assistant-playground-text-default);opacity:1}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__end{display:flex;align-items:center;gap:6px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__detail{color:var(--assistant-playground-text-weak);font-size:12px;font-variant-numeric:tabular-nums;line-height:16px;white-space:nowrap}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__options{position:absolute;z-index:7;top:calc(100% + 4px);left:0;display:flex;width:100%;flex-direction:column;gap:1px;padding:3px;border-radius:6px;background:var(--assistant-playground-surface);box-shadow:0 8px 24px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__options button{min-height:28px;gap:12px;padding:4px 7px;border:0;border-radius:4px;background:0 0;color:var(--assistant-playground-text-default);font:inherit}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__options button:hover,html[data-current-path$=\"/assistant/widget\"] .assistant-playground-select__options button[data-active=true]{background:color-mix(in srgb,var(--assistant-playground-surface),var(--assistant-playground-text-strong) 6%);color:var(--assistant-playground-text-strong)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent{position:relative;display:flex;align-items:center;gap:6px;padding:4px 8px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent__input{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;opacity:0}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-accent__swatch{width:14px;height:14px;flex:0 0 14px;border-radius:2px;box-shadow:0 0 0 1px var(--assistant-playground-surface),0 0 0 2px rgba(0,0,0,.1)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer__divider{display:flex;height:12px;align-items:center;margin-inline:-6px;color:var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer__divider svg{display:block;width:100%;height:1px;flex:0 0 auto;overflow:visible}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-hook{display:flex;min-height:74px;align-items:flex-start;gap:28px;padding:6px 8px;cursor:pointer}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-hook__copy{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;gap:2px;font-size:14px;font-weight:400;line-height:20px;letter-spacing:-.014px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-hook__label{color:var(--assistant-playground-text-strong)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-hook__description{color:var(--assistant-playground-text-default)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-switch{position:relative;display:flex;width:26px;height:18px;flex:0 0 26px;justify-content:flex-start;overflow:hidden;padding:1px;border-radius:3px;background:#d7d7d7;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),inset 0 2px 4px rgba(0,0,0,.08),inset 0 .2px 0 .5px rgba(0,0,0,.08);transition:background 120ms ease}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-switch[data-checked=true]{justify-content:flex-end;background:var(--assistant-playground-switch)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-switch__input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-switch__knob{width:12px;height:16px;border-radius:2px;background:#fcfcfc;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 2px 2px rgba(0,0,0,.04),0 1px 1px rgba(0,0,0,.12)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code{margin-top:24px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__title{color:var(--assistant-playground-text-strong);font-size:14px;font-weight:500;line-height:20px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__description{margin-top:2px;color:var(--assistant-playground-text-default);font-size:14px;line-height:20px}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__tabs{display:inline-flex;gap:2px;padding:3px;border-radius:8px;background:var(--assistant-playground-frame);box-shadow:0 0 0 1px var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__tabs button{min-height:28px;padding:4px 10px;border:0;border-radius:6px;background:0 0;color:var(--assistant-playground-text-default);font-size:13px;font-weight:500;line-height:20px;cursor:pointer}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__tabs button[data-active=true]{background:var(--assistant-playground-surface);color:var(--assistant-playground-text-strong);box-shadow:0 1px 1px rgba(0,0,0,.08),0 0 0 1px var(--assistant-playground-stroke)}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-children{margin-top:32px}@media (max-width:540px){html[data-current-path$=\"/assistant/widget\"] .assistant-playground-frame[data-customize-open=true] .assistant-playground-preview{visibility:hidden}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-customizer{max-height:475px;overflow-y:auto}html[data-current-path$=\"/assistant/widget\"] .assistant-playground-code__header{align-items:flex-start;flex-direction:column}}html[data-current-path$=\"/assistant/widget-preview\"] #assistant-entry,html[data-current-path$=\"/assistant/widget-preview\"] #assistant-entry-mobile,html[data-current-path$=\"/assistant/widget-preview\"] #banner,html[data-current-path$=\"/assistant/widget-preview\"] #footer,html[data-current-path$=\"/assistant/widget-preview\"] #mobile-nav,html[data-current-path$=\"/assistant/widget-preview\"] #navbar,html[data-current-path$=\"/assistant/widget-preview\"] #navbar-transition,html[data-current-path$=\"/assistant/widget-preview\"] #sidebar,html[data-current-path$=\"/assistant/widget-preview\"] [aria-label=\"Preview Widget Menu\"],html[data-current-path$=\"/assistant/widget-preview\"] [aria-label=\"Preview Widget\"]{display:none!important}html[data-current-path$=\"/assistant/widget-preview\"],html[data-current-path$=\"/assistant/widget-preview\"] body{width:100%;height:100%;margin:0;overflow:hidden!important;background:#f8f8f8!important}html.dark[data-current-path$=\"/assistant/widget-preview\"],html.dark[data-current-path$=\"/assistant/widget-preview\"] body{background:#1c1c1c!important}"}],"page":{"pagePath":"fr/api/assistant/create-assistant-message","slug":"/fr/api/assistant/create-assistant-message","pageMetadata":{"title":"Créer un message de l’Assistant (v1)","openapi":"fr/discovery-openapi.json POST /v1/assistant/{domain}/message","tag":"Obsolète","keywords":["message de l’Assistant","intégration","chat","intégrer","ai sdk v4"],"description":"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4.\n\nAuthentifiez-vous avec une clé d'API assistant.","href":"/fr/api/assistant/create-assistant-message"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Authentifiez-vous avec une clé d’API assistant.\"\n })]\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`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Badge,CodeBlock,Heading,Info,Step,Steps}=_components;if(!Badge)_missingMdxReference(`Badge`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsx(Badge,{color:`orange`,children:`Obsolète`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Le point de terminaison assistant message v1 est compatible avec `,_jsx(_components.strong,{children:`AI SDK v4`}),`. Si vous utilisez AI SDK v5 ou une version ultérieure, utilisez plutôt le `,_jsx(_components.a,{href:`/fr/api/assistant/create-assistant-message-v2`,children:`point de terminaison assistant message v2`}),`.`]})}),`\n`,_jsx(`div`,{id:`integration-with-usechat`,children:_jsxs(Heading,{level:`2`,id:`intégration-avec-usechat`,children:[`Intégration avec `,_jsx(_components.code,{children:`useChat`})]})}),`\n`,_jsxs(_components.p,{children:[`Le hook `,_jsx(_components.code,{children:`useChat`}),` du SDK AI de Vercel est la méthode recommandée pour intégrer l’API de l’Assistant à votre application.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Installer le SDK AI v4`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ai@^4.1.15`})]}),`\n`]})})})}),_jsxs(Step,{title:`Utiliser le hook`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`38`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`38`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ai/react'`}),_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:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MyComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`domain`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`handleInputChange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`handleSubmit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`isLoading`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useChat`}),_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:` api:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://api.mintlify.com/discovery/v1/assistant/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`domain`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/message`\"}),_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:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PUBLIC_MINTLIFY_ASSISTANT_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_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:` fp:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'anonymous'`}),_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:` retrievalPageSize:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_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:` context:`}),_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:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'code'`}),_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:` value:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'const example = \"code snippet\";'`}),_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:` elementId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'code-block-1'`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` streamProtocol:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'data'`}),_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:` sendExtraMessageFields:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#C586C0`},children:` return`}),_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\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},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\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Utilisateur : '`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Assistant : '`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ))`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onSubmit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handleSubmit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onChange`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`handleInputChange`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Envoyer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},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.p,{children:_jsx(_components.strong,{children:`Configuration requise pour Mintlify :`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`streamProtocol: 'data'`}),` - Requis pour les réponses en streaming.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sendExtraMessageFields: true`}),` - Requis pour envoyer les métadonnées des messages.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`body.fp`}),` - Identifiant d’empreinte (utilisez ‘anonymous’ ou un identifiant utilisateur).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`body.retrievalPageSize`}),` - Nombre de résultats de recherche à utiliser (recommandé : 5).`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Configuration optionnelle :`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`body.context`}),` - Tableau d’informations contextuelles à fournir à l’Assistant. Chaque objet de contexte contient :`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`type`}),` - Soit `,_jsx(_components.code,{children:`'code'`}),` soit `,_jsx(_components.code,{children:`'textSelection'`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value`}),` - L’extrait de code ou le texte sélectionné.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`elementId`}),` (optionnel) - Identifiant de l’élément d’interface contenant le contexte.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`body.currentPath`}),` - Le chemin de la page actuellement consultée par l’utilisateur. Lorsqu’il est fourni, l’Assistant utilise ce contexte pour donner des réponses plus pertinentes. Longueur maximale : 200 caractères.`]}),`\n`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Consultez `,_jsx(_components.a,{href:`https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat`,children:`useChat`}),` dans la documentation du SDK AI pour en savoir plus.`]}),`\n`,_jsx(`div`,{id:`rate-limits`,children:_jsx(Heading,{level:`2`,id:`limites-de-débit`,children:`Limites de débit`})}),`\n`,_jsx(_components.p,{children:`L’API de l’Assistant applique la limite suivante\\xA0:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`10 000 requêtes par organisation Mintlify et par heure`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Créer un message de l’Assistant (v1)","openapi":"fr/discovery-openapi.json POST /v1/assistant/{domain}/message","tag":"Obsolète","keywords":["message de l’Assistant","intégration","chat","intégrer","ai sdk v4"],"description":"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4.\n\nAuthentifiez-vous avec une clé d'API assistant.","href":"/fr/api/assistant/create-assistant-message"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Intégration avec useChat","slug":"intégration-avec-usechat","depth":2,"children":[]},{"title":"Limites de débit","slug":"limites-de-débit","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/mintlify/e06454053253c379/common-room-analytics.js","/docs/_mintlify/custom/mintlify/f7e8fc99c1f5798c/reb2b-analytics.js"],"openApiReferenceData":{"operation":{"summary":"Créer un message de l’Assistant (v1)","description":"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4.\n\nAuthentifiez-vous avec une clé d'API assistant.","parameters":["ac63e7e7-b200-4906-8b78-83a239151a35"],"requestBody":"cfccd46e-416e-475f-9712-b859b48e5a05","responses":{"200":"da41ec28-15d5-4b73-846a-38a5751d817f","400":"f1b05f0b-6a6c-4a1f-8fb9-a9cfa147ea53","401":"830d1b22-458d-4665-a425-ae293ff21a79","402":"efeacc27-4b03-43db-9384-20e17a8bd551","403":"858e1ca6-e389-41de-89a6-2550866bf935","404":"4a0526c6-8315-4bd3-a0af-ca18daa77085","413":"31e0d6b9-d626-418a-8525-8c26887e4833","429":"eba66e4e-3d19-4254-bcc2-a3de88132d11","500":"bf072782-e1ab-42aa-a5c7-2c84603329ee"},"method":"post","type":"path","servers":["e4305018-8ada-4133-aad0-65c52de78f9d"],"security":["1a638b52-a720-4046-862d-40882eab5973"],"path":"/v1/assistant/{domain}/message","baseUrlOptions":["https://api.mintlify.com/discovery"],"title":"Créer un message de l’Assistant (v1)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ac63e7e7-b200-4906-8b78-83a239151a35":{"name":"domain","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"L’identifiant de domain à partir de votre URL `domain.mintlify.site`. Il se trouve à la fin de l’URL de votre Dashboard. Par exemple, `dashboard.mintlify.com/organization/domain` a un identifiant de domain de `domain`.","uniqueKey":"","typeLabel":"string"},"description":"L’identifiant de domain à partir de votre URL `domain.mintlify.site`. Il se trouve à la fin de l’URL de votre Dashboard. Par exemple, `dashboard.mintlify.com/organization/domain` a un identifiant de domain de `domain`."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fp","messages"],"properties":{"fp":{"type":"string","description":"Identifiant de fingerprint pour le suivi des sessions de conversation. Utilisez « anonymous » pour les utilisateurs anonymes ou fournissez un identifiant utilisateur unique.","isRequired":true,"uniqueKey":"fp","typeLabel":"string"},"messages":{"type":"array","default":[{"id":"foobar","role":"user","content":"how do i get started","parts":[{"type":"text","text":"How do I get started"}]}],"items":{"type":"object","properties":{"id":{"type":"string","description":"Identifiant unique du message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].id","typeLabel":"string"},"role":{"type":"string","enum":["system","assistant","data","user"],"description":"Rôle de l’émetteur du message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"Contenu du message.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string"},"parts":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","reasoning","details"],"properties":{"type":{"type":"string","enum":["reasoning"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"reasoning":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.reasoning","typeLabel":"string"},"details":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.0.text","typeLabel":"string"},"signature":{"type":"string","uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.0.signature","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","data"],"properties":{"type":{"type":"string","enum":["redacted"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.1.data","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1.details","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["step-start"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","source"],"properties":{"type":{"type":"string","enum":["source"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"source":{"type":"object","properties":{"sourceType":{"type":"string","enum":["url"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.source.sourceType","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.source.id","typeLabel":"string"},"url":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.source.url","typeLabel":"string"},"title":{"type":"string","uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.source.title","typeLabel":"string"}},"required":["sourceType","id","url"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3.source","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","toolInvocation"],"properties":{"type":{"type":"string","enum":["tool-invocation"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"toolInvocation":{"oneOf":[{"type":"object","required":["state","toolCallId","toolName","args"],"properties":{"state":{"type":"string","enum":["partial-call"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0.state","typeLabel":"enum\u003cstring>"},"toolCallId":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0.toolCallId","typeLabel":"string"},"toolName":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0.toolName","typeLabel":"string"},"args":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0.args","typeLabel":"any"},"step":{"type":"number","uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0.step","typeLabel":"number"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.0","typeLabel":"object"},{"type":"object","required":["state","toolCallId","toolName","args"],"properties":{"state":{"type":"string","enum":["call"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1.state","typeLabel":"enum\u003cstring>"},"toolCallId":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1.toolCallId","typeLabel":"string"},"toolName":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1.toolName","typeLabel":"string"},"args":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1.args","typeLabel":"any"},"step":{"type":"number","uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1.step","typeLabel":"number"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.1","typeLabel":"object"},{"type":"object","required":["state","toolCallId","toolName","args","result"],"properties":{"state":{"type":"string","enum":["result"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.state","typeLabel":"enum\u003cstring>"},"toolCallId":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.toolCallId","typeLabel":"string"},"toolName":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.toolName","typeLabel":"string"},"args":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.args","typeLabel":"any"},"result":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.result","typeLabel":"any"},"step":{"type":"number","uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2.step","typeLabel":"number"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4.toolInvocation","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.items.[INDEX].parts.items.[INDEX]","typeLabel":"object"},"description":"Tableau de segments de message avec différents types, dont le texte, le raisonnement, les sources et les appels d’outils.","isRequired":true,"uniqueKey":"messages.items.[INDEX].parts","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","description":"Horodatage de la création du message.","uniqueKey":"messages.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"annotations":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"messages.items.[INDEX].annotations.items.[INDEX]","typeLabel":"any"},"description":"Tableau optionnel d’annotations pour ce message.","uniqueKey":"messages.items.[INDEX].annotations","typeLabel":"any[]"},"experimental_attachments":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].experimental_attachments.items.[INDEX].url","typeLabel":"string"},"name":{"type":"string","uniqueKey":"messages.items.[INDEX].experimental_attachments.items.[INDEX].name","typeLabel":"string"},"contentType":{"type":"string","uniqueKey":"messages.items.[INDEX].experimental_attachments.items.[INDEX].contentType","typeLabel":"string"}},"required":["url"],"uniqueKey":"messages.items.[INDEX].experimental_attachments.items.[INDEX]","typeLabel":"object"},"description":"Tableau facultatif de pièces jointes expérimentales associées au message.","uniqueKey":"messages.items.[INDEX].experimental_attachments","typeLabel":"object[]"}},"required":["id","role","content","parts"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"description":"Tableau de messages représentant la conversation. Côté frontend, vous utiliserez probablement la fonction handleSubmit du hook useChat du package @ai-sdk pour ajouter les messages utilisateur et gérer les réponses en streaming, plutôt que de définir manuellement les objets de ce tableau, car ils comportent de très nombreux paramètres.","isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"threadId":{"default":null,"type":"string","description":"Identifiant facultatif utilisé pour maintenir la continuité d’une conversation sur plusieurs messages. Lorsqu’il est fourni, il permet au système de rattacher les messages suivants au même fil de discussion. Le threadId est renvoyé dans la réponse sous la forme event.threadId lorsque event.type === 'finish'.","uniqueKey":"threadId","typeLabel":"string"},"retrievalPageSize":{"type":"number","default":5,"description":"Nombre de résultats de recherche dans la documentation à utiliser pour générer la réponse. Des valeurs plus élevées fournissent davantage de contexte mais peuvent augmenter le temps de réponse. Valeur recommandée : 5.","uniqueKey":"retrievalPageSize","typeLabel":"number"},"filter":{"type":"object","default":null,"properties":{"version":{"type":"string","description":"Filtre de version facultatif.","uniqueKey":"filter.version","typeLabel":"string"},"language":{"type":"string","description":"Filtre de langue facultatif.","uniqueKey":"filter.language","typeLabel":"string"}},"description":"Critères de filtrage facultatifs pour la recherche.","uniqueKey":"filter","typeLabel":"object"},"context":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["code","textSelection"],"description":"Type de contexte fourni.","isRequired":true,"uniqueKey":"context.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"Extrait de code ou texte sélectionné.","isRequired":true,"uniqueKey":"context.items.[INDEX].value","typeLabel":"string"},"path":{"type":"string","description":"Chemin facultatif vers le fichier ou la page source.","uniqueKey":"context.items.[INDEX].path","typeLabel":"string"},"elementId":{"type":"string","description":"Identifiant facultatif de l’élément d’interface qui contient le contexte.","uniqueKey":"context.items.[INDEX].elementId","typeLabel":"string"}},"required":["type","value"],"uniqueKey":"context.items.[INDEX]","typeLabel":"object"},"description":"Tableau facultatif d’informations de contexte à transmettre à l’Assistant.","uniqueKey":"context","typeLabel":"object[]"},"currentPath":{"type":"string","description":"Chemin de la page que l’utilisateur consulte actuellement. Lorsqu’il est fourni, l’Assistant utilise ce contexte pour donner des réponses plus pertinentes. Longueur maximale : 200 caractères.","uniqueKey":"currentPath","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"fp":"\u003cstring>","messages":[{"id":"foobar","role":"user","content":"how do i get started","parts":[{"type":"text","text":"How do I get started"}]}],"threadId":null,"retrievalPageSize":5,"filter":null,"context":[{"value":"\u003cstring>","path":"\u003cstring>","elementId":"\u003cstring>"}],"currentPath":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"da41ec28-15d5-4b73-846a-38a5751d817f":{"description":"Message généré avec succès.","content":{"application/json":{"schema":{"type":"object","description":"Objet de réponse dont les parties du flux de données sont formatées avec le status, les en-têtes et le champ content spécifiés. Pour plus d’informations, consultez la documentation de l’AI SDK sur [ai-sdk.dev/docs/ai-sdk-ui/streaming-data](https://ai-sdk.dev/docs/ai-sdk-ui/streaming-data). Utilisez le [hook useChat de ai-sdk](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#usechat) pour gérer le flux de réponse.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"f1b05f0b-6a6c-4a1f-8fb9-a9cfa147ea53":{"description":"Le corps de la requête n'est pas valide, par exemple s'il manque le champ `fp` ou `messages`. Le corps de la réponse décrit l'erreur.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"830d1b22-458d-4665-a425-ae293ff21a79":{"description":"La clé d'API est manquante ou non valide, ou l'Assistant n'est pas activé pour votre organisation.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"efeacc27-4b03-43db-9384-20e17a8bd551":{"description":"Votre organisation a atteint sa limite de crédits pour ce cycle de facturation.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"858e1ca6-e389-41de-89a6-2550866bf935":{"description":"Les fonctionnalités d'IA ne sont pas disponibles dans votre région, votre clé d'API n'a pas accès à ce domaine, votre forfait n'inclut pas l'accès à l'API de l'Assistant, ou votre requête provient d'une adresse IP qui ne figure pas dans la liste d'autorisation de votre clé d'API.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"4a0526c6-8315-4bd3-a0af-ca18daa77085":{"description":"Aucun site de documentation n'existe pour ce domaine, ou le `threadId` ou le `threadKey` n'est pas valide.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"31e0d6b9-d626-418a-8525-8c26887e4833":{"description":"La conversation a atteint son nombre maximal de messages, ou l'entrée est trop longue.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"eba66e4e-3d19-4254-bcc2-a3de88132d11":{"description":"Vous avez dépassé la limite de débit de 10 000 requêtes par heure et par organisation.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"bf072782-e1ab-42aa-a5c7-2c84603329ee":{"description":"Une erreur serveur inattendue s'est produite. Réessayez la requête. Si l'erreur persiste, contactez le support.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"1a638b52-a720-4046-862d-40882eab5973":{"bearerAuth":{"type":"http","scheme":"bearer","description":"L'en-tête Authorization attend un jeton Bearer. Utilisez une clé d'API assistant. Générez-en une depuis la [page des clés d'API](https://dashboard.mintlify.com/settings/organization/api-keys) de votre Dashboard. En production, faites transiter les requêtes par votre backend plutôt que d'intégrer la clé dans du code côté client.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"e4305018-8ada-4133-aad0-65c52de78f9d":{"url":"https://api.mintlify.com/discovery"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"L'en-tête Authorization attend un jeton Bearer. Utilisez une clé d'API assistant. Générez-en une depuis la [page des clés d'API](https://dashboard.mintlify.com/settings/organization/api-keys) de votre Dashboard. En production, faites transiter les requêtes par votre backend plutôt que d'intégrer la clé dans du code côté client.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"L'en-tête Authorization attend un jeton Bearer. Utilisez une clé d'API assistant. Générez-en une depuis la [page des clés d'API](https://dashboard.mintlify.com/settings/organization/api-keys) de votre Dashboard. En production, faites transiter les requêtes par votre backend plutôt que d'intégrer la clé dans du code côté client.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"fr/discovery-openapi.json"},"subdomain":"mintlify","siteName":"Mintlify","title":"Créer un message de l’Assistant (v1) - Mintlify","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/fr/api/assistant/create-assistant-message","matchLevel":0},"fr":{"href":"/fr","matchLevel":4},"es":{"href":"/es","matchLevel":4},"zh":{"href":"/zh","matchLevel":4}}},"lastModified":"2026-10-22T21:38:20.780Z","originalFileLocation":"fr/api/assistant/create-assistant-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=\"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4. Authentifiez-vous avec une clé d\u0026#x27;API assistant.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintcdn.com/mintlify/HKyBg3pjnkyq1if1/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=HKyBg3pjnkyq1if1\u0026amp;q=85\u0026amp;s=6f16cb0842f8e4b4ba8a05671aa661f9\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Créer un message de l’Assistant (v1) - Mintlify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4. Authentifiez-vous avec une clé d\u0026#x27;API assistant.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mintlify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.mintlify.com/docs/fr/api/assistant/create-assistant-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mintlify.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cr%C3%A9er+un+message+de+l%E2%80%99Assistant+%28v1%29\u0026amp;description=G%C3%A9n%C3%A8re+un+message+de+r%C3%A9ponse+de+l%E2%80%99Assistant+pour+le+domain+sp%C3%A9cifi%C3%A9.+Compatible+avec+l%E2%80%99AI+SDK+v4.%0A%0AAuthentifiez-vous+avec+une+cl%C3%A9+d%27API+assistant.\u0026amp;theme=e50af954c8f29bef74c5cce5\u0026amp;signature=f615e616e171e7195525d64356008740a8d22162c586f7157ef1d887e7ee9670\">\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=\"Créer un message de l’Assistant (v1) - Mintlify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Génère un message de réponse de l’Assistant pour le domain spécifié. Compatible avec l’AI SDK v4. Authentifiez-vous avec une clé d\u0026#x27;API assistant.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mintlify.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cr%C3%A9er+un+message+de+l%E2%80%99Assistant+%28v1%29\u0026amp;description=G%C3%A9n%C3%A8re+un+message+de+r%C3%A9ponse+de+l%E2%80%99Assistant+pour+le+domain+sp%C3%A9cifi%C3%A9.+Compatible+avec+l%E2%80%99AI+SDK+v4.%0A%0AAuthentifiez-vous+avec+une+cl%C3%A9+d%27API+assistant.\u0026amp;theme=e50af954c8f29bef74c5cce5\u0026amp;signature=f615e616e171e7195525d64356008740a8d22162c586f7157ef1d887e7ee9670\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/mintlify/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#166E3F\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"YRuJgIxsRnMkiRTYTo_tEsJSFyIE3AraEiukTbeV4Ag\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.mintlify.com/docs/fr/api/assistant/create-assistant-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/fr/api/assistant/create-assistant-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mintlify\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mintlify","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","groups":[{"group":"Get started","boost":2,"pages":[{"title":"Introduction","mode":"frame","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"AI-native documentation","sidebarTitle":"AI-native","href":"/ai-native"},{"group":"CLI","root":{"title":"Mintlify CLI","href":"/cli/index"},"pages":[{"title":"Install the CLI","href":"/cli/install"},{"title":"Mintlify MDX extension","href":"/cli/mdx-extension"},{"title":"Preview locally","href":"/cli/preview"},{"title":"Agent signup","href":"/cli/agent-signup"},{"title":"Mintlify CLI command reference","sidebarTitle":"Commands","href":"/cli/commands"}]},{"title":"Desktop app","href":"/desktop"},{"group":"Migration guide","root":{"title":"Migration overview","sidebarTitle":"Overview","href":"/migration/index"},"pages":[{"title":"Migrate from Docusaurus","href":"/migration/docusaurus"},{"title":"Migrate from ReadMe","href":"/migration/readme"},{"title":"Migrate from GitBook","href":"/migration/gitbook"},{"title":"Migrate from Fern","href":"/migration/fern"},{"title":"Migrate from Document360","href":"/migration/document360"},{"title":"Migrate from another platform","href":"/migration/manual"}]}]},{"group":"Create content","pages":[{"group":"Projects","root":{"title":"Projects","href":"/organize/projects"},"pages":[{"group":"Base","root":{"title":"About bases","tag":"Beta","href":"/base/index"},"pages":[{"title":"Set up a base","tag":"Beta","href":"/base/setup"}]}]},{"group":"Pages","pages":[{"title":"Pages","href":"/organize/pages"},{"title":"Hidden pages","href":"/organize/hidden-pages"},{"title":"Related topics","href":"/organize/related-pages"}]},{"group":"Formatting","pages":[{"title":"Format text","href":"/create/text"},{"title":"Format code","href":"/create/code"},{"title":"Lists and tables","href":"/create/list-table"}]},{"group":"Components","root":{"title":"Components overview","href":"/components/index"},"pages":[{"title":"Accordions","href":"/components/accordions"},{"title":"Badge","href":"/components/badge"},{"title":"Banner","href":"/components/banner"},{"title":"Callouts","href":"/components/callouts"},{"title":"Cards","href":"/components/cards"},{"title":"Code groups","href":"/components/code-groups"},{"title":"Color","href":"/components/color"},{"title":"Columns","href":"/components/columns"},{"title":"Examples","href":"/components/examples"},{"title":"Expandables","href":"/components/expandables"},{"title":"Fields","href":"/components/fields"},{"title":"Frames","href":"/components/frames"},{"title":"GitHub","tag":"New","href":"/components/github"},{"title":"Icons","href":"/components/icons"},{"title":"MDX","href":"/components/mdx"},{"title":"Mermaid","href":"/components/mermaid-diagrams"},{"title":"Panel","href":"/components/panel"},{"title":"Prompt","href":"/components/prompt"},{"title":"Response fields","href":"/components/responses"},{"title":"Steps","href":"/components/steps"},{"title":"Tabs","href":"/components/tabs"},{"title":"Tiles","href":"/components/tiles"},{"title":"Tooltips","href":"/components/tooltips"},{"title":"Tree","href":"/components/tree"},{"title":"Update","href":"/components/update"},{"title":"View","href":"/components/view"},{"title":"Visibility","href":"/components/visibility"},{"title":"React components","href":"/customize/react-components"},{"title":"Third-party libraries","href":"/customize/third-party-libraries"}]},{"group":"Media","pages":[{"title":"Images and embeds","href":"/create/image-embeds"},{"title":"Files","href":"/create/files"}]},{"title":"Reusable snippets","href":"/create/reusable-snippets"},{"title":"Personalized content","href":"/create/personalization"},{"group":"Editor","root":{"title":"Editor overview","sidebarTitle":"Overview","href":"/editor/index"},"pages":[{"title":"How to use the editor","href":"/editor/tutorial"},{"title":"Create and edit pages","sidebarTitle":"Edit content","href":"/editor/pages"},{"title":"Publish changes","sidebarTitle":"Publish","href":"/editor/publish"},{"title":"Review changes","sidebarTitle":"Review","href":"/editor/review"},{"title":"Collaborate in the editor","sidebarTitle":"Collaborate","href":"/editor/collaborate"},{"title":"Write and edit with the agent","sidebarTitle":"Agent","href":"/editor/agent"},{"title":"Editor settings for AI and publishing","sidebarTitle":"Settings","href":"/editor/settings"},{"title":"Keyboard shortcuts","href":"/editor/keyboard-shortcuts"}]},{"title":"CI checks","href":"/deploy/ci"}]},{"group":"Manage your site","pages":[{"group":"Global settings","root":{"title":"Global settings","href":"/organize/settings"},"pages":[{"title":"Appearance and branding","href":"/organize/settings-appearance"},{"title":"Site structure","href":"/organize/settings-structure"},{"title":"API settings","href":"/organize/settings-api"},{"title":"Integrations","href":"/organize/settings-integrations"},{"title":"SEO and search","href":"/organize/settings-seo"},{"title":"docs.json schema reference","href":"/organize/settings-reference"}]},{"title":"Navigation","href":"/organize/navigation"},{"title":"Contextual menu","href":"/ai/contextual-menu"},{"title":"Bring your own model","href":"/ai/bring-your-own-model"},{"title":"Redirects","href":"/create/redirects"},{"title":"Exclude files from publishing","sidebarTitle":"Exclude files","href":"/organize/mintignore"},{"group":"Repository setup","pages":[{"title":"Monorepo setup","href":"/deploy/monorepo"},{"title":"Multi-repository projects","href":"/deploy/multi-repo"},{"title":"Combine repositories with GitHub Actions","sidebarTitle":"Multi-repo GitHub Action","href":"/deploy/multirepo-action"}]},{"group":"Visual customization","pages":[{"title":"Themes","mode":"frame","href":"/customize/themes"},{"title":"Fonts","href":"/customize/fonts"},{"title":"Custom scripts","href":"/customize/custom-scripts"},{"title":"Customize with a coding agent","sidebarTitle":"Agent skill","href":"/customize/agent-skill"},{"title":"Custom 404 page","href":"/customize/custom-404-page"}]},{"group":"Analytics","root":{"title":"Analytics overview","href":"/analytics/index"},"pages":[{"title":"Analyze documentation traffic","sidebarTitle":"Traffic","href":"/analytics/traffic"},{"title":"Analyze assistant conversations","sidebarTitle":"Assistant","href":"/analytics/assistant"},{"title":"Analyze documentation searches","sidebarTitle":"Search","href":"/analytics/search"},{"title":"Analyze user engagements","sidebarTitle":"User engagements","href":"/analytics/user-engagements"},{"title":"Measure time and money saved with Mintlify","sidebarTitle":"Savings","href":"/analytics/savings"},{"title":"Collect page feedback from users and AI agents","sidebarTitle":"Feedback","href":"/optimize/feedback"},{"title":"Export analytics to CSV","sidebarTitle":"Export analytics","href":"/analytics/export"},{"title":"Stream analytics events to Amazon S3","sidebarTitle":"Stream events","href":"/analytics/streaming"}]},{"group":"Deployments","root":{"title":"Deployments","href":"/deploy/deployments"},"pages":[{"title":"GitHub","href":"/deploy/github"},{"title":"GitHub Enterprise Server","href":"/deploy/ghes"},{"title":"GitLab","href":"/deploy/gitlab"},{"title":"Bitbucket Cloud","href":"/deploy/bitbucket"},{"title":"Azure Repos","href":"/deploy/azure-repos"},{"title":"Preview deployments","href":"/deploy/preview-deployments"},{"title":"Rollbacks","href":"/deploy/rollbacks"}]},{"group":"Hosting","root":{"title":"Custom domain","href":"/customize/custom-domain"},"pages":[{"group":"Subpath hosting","root":{"title":"Host docs at a subpath","href":"/deploy/docs-subpath"},"pages":[{"title":"Deploy at a subpath with Cloudflare Workers","sidebarTitle":"Cloudflare","href":"/deploy/cloudflare"},{"title":"Deploy at a subpath with AWS Route 53 and CloudFront","sidebarTitle":"AWS","href":"/deploy/route53-cloudfront"},{"title":"Deploy at a subpath with Vercel","sidebarTitle":"Vercel","href":"/deploy/vercel"},{"title":"Reverse proxy","href":"/deploy/reverse-proxy"}]},{"title":"Content Security Policy (CSP) configuration","sidebarTitle":"CSP configuration","href":"/deploy/csp-configuration"},{"title":"Self-host","href":"/deploy/self-host"},{"title":"Custom developer portals","href":"/deploy/custom-portal"}]},{"group":"Export your site","pages":[{"title":"Offline export","href":"/deploy/export"},{"title":"PDF exports","href":"/optimize/pdf-exports"}]},{"group":"Authentication","root":{"title":"Authentication setup","href":"/deploy/authentication-setup"},"pages":[{"title":"Emails authentication","href":"/deploy/emails-authentication"},{"title":"Single sign-on (SSO)","href":"/dashboard/sso"},{"title":"SCIM user provisioning","href":"/dashboard/scim"},{"title":"Session security","href":"/dashboard/session-security"}]},{"group":"Security","pages":[{"title":"Dashboard access policies","sidebarTitle":"Access policies","href":"/dashboard/network-access"},{"title":"Roles","href":"/dashboard/roles"},{"title":"Audit logs","href":"/dashboard/audit-logs"},{"title":"Security contact","href":"/dashboard/security-contact"}]},{"group":"Personal settings","pages":[{"title":"Profile","href":"/dashboard/profile"},{"title":"Notifications","href":"/dashboard/notifications"},{"title":"Inbox","href":"/dashboard/inbox"}]}]},{"group":"Agent","pages":[{"title":"What is the agent?","href":"/agent/index"},{"title":"Add the agent to Slack","href":"/agent/slack"},{"group":"Automations","root":{"title":"Automations overview","sidebarTitle":"Overview","href":"/automations/index"},"pages":[{"title":"Create a custom automation","href":"/automations/create"},{"title":"Manage automations","href":"/automations/manage"},{"title":"Integrations for the agent and automations","sidebarTitle":"Integrations","href":"/automations/integrations"},{"title":"Predefined automations","href":"/automations/reference"},{"title":"Self-hosted GitLab OAuth","href":"/deploy/gitlab-self-hosted"}]},{"title":"Keep documentation up-to-date with Autopilot","sidebarTitle":"Autopilot","tag":"New","href":"/autopilot"},{"title":"Customize agent behavior","href":"/agent/customize"},{"title":"Write effective prompts","href":"/agent/effective-prompts"},{"title":"Mintlify agent use cases and examples","sidebarTitle":"Use cases","href":"/agent/use-cases"}]},{"group":"Assistant","pages":[{"title":"Assistant","href":"/assistant/index"},{"title":"Configure the assistant","href":"/assistant/configure"},{"title":"Customize assistant behavior","href":"/assistant/customize"},{"title":"Embed the AI assistant widget","sidebarTitle":"Widget","href":"/assistant/widget"},{"title":"Add assistant skills","href":"/assistant/skills"},{"title":"Narration","tag":"New","href":"/assistant/narration"},{"title":"Use the assistant","href":"/assistant/use"}]},{"group":"Agent-ready content","pages":[{"title":"Admin Model Context Protocol (MCP) server","sidebarTitle":"Admin MCP","href":"/ai/mintlify-mcp"},{"title":"Search Model Context Protocol (MCP) server","sidebarTitle":"Search MCP","href":"/ai/model-context-protocol"},{"title":"llms.txt","href":"/ai/llmstxt"},{"title":"skill.md","href":"/ai/skillmd"},{"title":"Markdown export","href":"/ai/markdown-export"}]},{"group":"Search and SEO","pages":[{"title":"Configure in-product search ranking, results, and filters","sidebarTitle":"Search","href":"/optimize/search"},{"title":"SEO","href":"/optimize/seo"}]},{"group":"Document APIs","pages":[{"title":"API playground overview","href":"/api-playground/overview"},{"group":"API specifications","pages":[{"title":"OpenAPI setup","href":"/api-playground/openapi-setup"},{"title":"AsyncAPI setup","href":"/api-playground/asyncapi-setup"},{"title":"GraphQL setup","href":"/api-playground/graphql-setup"},{"group":"SDK reference setup","root":{"title":"Generate SDK reference pages from doc-tool output","sidebarTitle":"SDK reference setup","href":"/api-playground/sdk-reference-setup"},"pages":[{"title":"Add SDK examples","href":"/api-playground/adding-sdk-examples"}]}]},{"group":"Endpoint pages","pages":[{"title":"Complex data types","href":"/api-playground/complex-data-types"},{"title":"Multiple responses","href":"/api-playground/multiple-responses"},{"title":"Manage page visibility","href":"/api-playground/managing-page-visibility"},{"title":"Create manual API pages","href":"/api-playground/mdx-setup"}]},{"title":"Troubleshooting","href":"/api-playground/troubleshooting"}]},{"group":"Integrations","pages":[{"group":"Analytics","root":{"title":"Analytics integrations","href":"/integrations/analytics/overview"},"pages":[{"title":"Adobe Analytics","href":"/integrations/analytics/adobe"},{"title":"Amplitude","href":"/integrations/analytics/amplitude"},{"title":"Clarity","href":"/integrations/analytics/clarity"},{"title":"Clearbit","href":"/integrations/analytics/clearbit"},{"title":"Fathom","href":"/integrations/analytics/fathom"},{"title":"Google Analytics 4","href":"/integrations/analytics/google-analytics"},{"title":"Google Tag Manager","href":"/integrations/analytics/google-tag-manager"},{"title":"Heap","href":"/integrations/analytics/heap"},{"title":"Hightouch","href":"/integrations/analytics/hightouch"},{"title":"Hotjar","href":"/integrations/analytics/hotjar"},{"title":"LogRocket","href":"/integrations/analytics/logrocket"},{"title":"Mixpanel","href":"/integrations/analytics/mixpanel"},{"title":"Pirsch","href":"/integrations/analytics/pirsch"},{"title":"Plausible","href":"/integrations/analytics/plausible"},{"title":"PostHog","href":"/integrations/analytics/posthog"},{"title":"Segment","href":"/integrations/analytics/segment"}]},{"group":"Support","root":{"title":"Support integrations","href":"/integrations/support/overview"},"pages":[{"title":"Intercom","href":"/integrations/support/intercom"},{"title":"Front","href":"/integrations/support/front"}]},{"group":"Privacy","root":{"title":"Privacy integrations","href":"/integrations/privacy/overview"},"pages":[{"title":"Osano","href":"/integrations/privacy/osano"},{"title":"Transcend","href":"/integrations/privacy/transcend"}]}]},{"group":"Reference","pages":[{"title":"Concepts","href":"/reference/concepts"},{"title":"Glossary","href":"/reference/glossary"},{"title":"Credit pricing","href":"/credits"}]}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"Mintlify REST API introduction","href":"/api/introduction"}]},{"group":"Admin","pages":[{"title":"Trigger deployment","openapi":"openapi.json POST /project/update/{projectId}","href":"/api/update/trigger"},{"title":"Get deployment status","openapi":"openapi.json GET /project/update-status/{statusId}","href":"/api/update/status"},{"title":"Trigger preview deployment","openapi":"openapi.json POST /project/preview/{projectId}","href":"/api/preview/trigger"},{"title":"Trigger automation","openapi":"openapi.json POST /workflow/{projectId}/{workflowSchemaId}/trigger","href":"/api/automations/trigger"},{"title":"Trigger automation webhook","openapi":"admin-openapi.json POST /v2/workflow/{projectId}/{workflowSchemaId}/webhook","href":"/api/automations/webhook"}]},{"group":"Agent","pages":[{"title":"Get agent job","openapi":"admin-openapi.json GET /v2/agent/{projectId}/job/{id}","href":"/api/agent/v2/get-agent-job"},{"title":"Send follow-up message","openapi":"admin-openapi.json POST /v2/agent/{projectId}/job/{id}/message","href":"/api/agent/v2/send-message"}]},{"group":"Assistant","pages":[{"title":"Create assistant message","openapi":"discovery-openapi.json POST /v2/assistant/{domain}/message","href":"/api/assistant/create-assistant-message-v2"}]},{"group":"Search","pages":[{"title":"Search documentation","openapi":"discovery-openapi.json POST /v1/search/{domain}","href":"/api/assistant/search"},{"title":"Get page content","openapi":"discovery-openapi.json POST /v1/page/{domain}","href":"/api/assistant/get-page-content"}]},{"group":"Analytics","pages":[{"title":"List feedback","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/feedback","href":"/api/analytics/feedback"},{"title":"Get feedback by page","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/feedback/by-page","href":"/api/analytics/feedback-by-page"},{"title":"List assistant conversations","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/assistant","href":"/api/analytics/assistant-conversations"},{"title":"Get assistant conversation thread","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/assistant/threads/{threadId}","href":"/api/analytics/assistant-thread"},{"title":"Get assistant caller stats","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/assistant/caller-stats","href":"/api/analytics/assistant-caller-stats"},{"title":"List search queries","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/searches","href":"/api/analytics/searches"},{"title":"Get page views","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/views","href":"/api/analytics/views"},{"title":"Get unique visitors","openapi":"analytics.openapi.json GET /v1/analytics/{projectId}/visitors","href":"/api/analytics/visitors"}]},{"group":"Static export","pages":[{"title":"Start static export job","openapi":"static-export-openapi.json POST /static-export/{projectId}/jobs","tag":"Enterprise","href":"/api/static-export/start-job"},{"title":"Get static export job status","openapi":"static-export-openapi.json GET /static-export/{projectId}/jobs/{jobId}","tag":"Enterprise","href":"/api/static-export/get-job-status"}]}]},{"tab":"Changelog","groups":[{"group":"Changelog","boost":0.5,"pages":[{"title":"Product updates","href":"/changelog"}]}]},{"tab":"Help center","hidden":true,"searchable":true,"groups":[{"group":"Help center","pages":[{"title":"Can I rename my project or organization?","href":"/help-center/can-i-rename-my-deployment-or-organization"},{"title":"Change your organization icon","href":"/help-center/change-your-workspace-icon"},{"title":"Default mintlify.app subdomain indexed with custom domain","href":"/help-center/default-subdomain-indexed-alongside-custom-domain"},{"title":"Fix \"Domain already claimed by another organization\" error","href":"/help-center/domain-already-claimed-by-another-organization"},{"title":"Private repo missing when creating a second project","href":"/help-center/private-repo-missing-when-creating-second-deployment"},{"title":"Preview deployment not created for a fork branch","href":"/help-center/preview-deployment-not-created-for-fork-branch"},{"title":"Mintlify static IP for Git provider allowlists","href":"/help-center/ip-addresses-for-git-provider-allowlists"},{"title":"Fix agent runs blocked by a git provider IP allow list","href":"/help-center/agent-blocked-by-git-provider-ip-allow-list"},{"title":"Configure OAuth 2.0 authentication with Auth0","href":"/help-center/configure-oauth-with-auth0"},{"title":"Fix \"Failed to fetch OpenAPI file for anchor or tab\" error","href":"/help-center/openapi-url-fetch-fails-during-build"},{"title":"Fix a static file that returns 404 on your docs site","href":"/help-center/static-file-not-served"},{"title":"Branch missing from the web editor branch list","href":"/help-center/branch-missing-from-editor-branch-list"},{"title":"Web editor shows \"Repository unavailable\"","href":"/help-center/editor-shows-repository-unavailable"},{"title":"Tailwind classes not applying in the editor's live preview","href":"/help-center/tailwind-classes-not-applying-in-editor-preview"},{"title":"Style the icon inside a Card component","href":"/help-center/style-card-icons-with-custom-css"},{"title":"Fix site search returning no results","href":"/help-center/site-search-returns-no-results"},{"title":"Fix llms.txt returning 404 while llms-full.txt works","href":"/help-center/llms-txt-returns-404-but-llms-full-txt-works"},{"title":"Advertise an externally hosted MCP server","href":"/help-center/register-external-mcp-server-in-discovery"},{"title":"Why your visitor count dropped after crawler filtering","href":"/help-center/visitor-count-dropped-after-crawler-filtering"},{"title":"Migrate from Confluence to Mintlify","href":"/help-center/migrate-from-confluence"},{"title":"Migrate docs into Mintlify from a ZIP export","href":"/help-center/migrate-docs-from-a-zip-export"},{"title":"Agent PRs open against your deploy branch","href":"/help-center/agent-opens-pull-requests-against-deploy-branch"},{"title":"Publish button disabled because of invalid MDX","href":"/help-center/publish-button-disabled-invalid-mdx"},{"title":"Fix \"Must be a valid url\" error for logo.href or navbar.primary.href","href":"/help-center/docs-json-href-must-be-a-valid-url"},{"title":"Fix \"frontmatter must be a single endpoint string\" deploy errors","href":"/help-center/endpoint-frontmatter-must-be-a-single-string"},{"title":"Docs site refuses to load in an iframe","href":"/help-center/embed-docs-site-in-iframe"},{"title":"Custom components flash or are missing from page source","href":"/help-center/custom-components-flash-or-missing-from-page-source"}]}]},{"tab":"Learn","menu":[{"item":"Learn","description":"Self-paced lessons to get the most from Mintlify.","href":"https://learn.mintlify.com/"},{"item":"Guides","description":"How to guides for common tasks and best practices.","groups":[{"group":"Overview","icon":"book-open","pages":[{"title":"Guides","href":"/guides"}]},{"group":"AI","icon":"bot","pages":[{"title":"Tutorial: Build an in-app documentation assistant","sidebarTitle":"Build an in-app assistant","href":"/guides/assistant-embed"},{"title":"Configure automerge for GitHub Apps","sidebarTitle":"Configure automerge","href":"/guides/configure-automerge"},{"title":"Use automations","href":"/guides/use-automations"},{"title":"Write documentation with Claude Code","sidebarTitle":"Claude Code","href":"/guides/claude-code"},{"title":"Write documentation with Codex","sidebarTitle":"Codex","href":"/guides/codex"},{"title":"Write documentation with Cursor","sidebarTitle":"Cursor","href":"/guides/cursor"},{"title":"Write documentation with Devin Desktop","sidebarTitle":"Devin Desktop","href":"/guides/devin-desktop"},{"title":"GEO guide: Optimize docs for AI search and answer engines","sidebarTitle":"GEO","href":"/guides/geo"}]},{"group":"API docs","icon":"file-braces","pages":[{"title":"Migrating MDX API pages to OpenAPI navigation","sidebarTitle":"Migrate from MDX to OAS","href":"/guides/migrating-from-mdx"}]},{"group":"Best practices","icon":"trophy","pages":[{"title":"How to create accessible documentation","sidebarTitle":"Accessibility","href":"/guides/accessibility"},{"title":"Changelogs","href":"/create/changelogs"},{"title":"Documentation content types","sidebarTitle":"Content types","href":"/guides/content-types"},{"title":"Documentation content templates","sidebarTitle":"Content templates","href":"/guides/content-templates"},{"title":"Build custom page layouts","sidebarTitle":"Custom page layouts","href":"/guides/custom-layouts"},{"title":"How to measure and improve documentation quality","sidebarTitle":"Improve your docs","href":"/guides/improving-docs"},{"title":"How to set up multi-language documentation","sidebarTitle":"Internationalization","href":"/guides/internationalization"},{"title":"How to link documentation pages effectively","sidebarTitle":"Linking","href":"/guides/linking"},{"title":"How to maintain documentation over time","sidebarTitle":"Maintenance","href":"/guides/maintenance"},{"title":"How to use images, screenshots, and videos in documentation","sidebarTitle":"Media","href":"/guides/media"},{"title":"How to structure documentation navigation","sidebarTitle":"Navigation","href":"/guides/navigation"},{"title":"How to improve documentation SEO","sidebarTitle":"SEO","href":"/guides/seo"},{"title":"How to write technical documentation","sidebarTitle":"Style and tone","href":"/guides/style-and-tone"},{"title":"How to understand your documentation audience","sidebarTitle":"Understand your audience","href":"/guides/understand-your-audience"}]},{"group":"Git","icon":"git-merge","pages":[{"title":"Git concepts for documentation","href":"/guides/git-concepts"},{"title":"Work with branches","href":"/guides/branches"}]},{"group":"Use cases","icon":"blocks","pages":[{"title":"Create developer documentation","sidebarTitle":"Developer documentation","href":"/guides/developer-documentation"},{"title":"Create a knowledge base","sidebarTitle":"Knowledge base","href":"/guides/knowledge-base"},{"title":"Create a help center","sidebarTitle":"Help center","href":"/guides/help-center"},{"title":"Headless docs with a custom frontend","sidebarTitle":"Headless / Custom frontend","href":"/guides/custom-frontend"},{"title":"Static export","tag":"Enterprise","href":"/api/static-export/overview"}]}]}]}]},{"language":"fr","pages":[{"title":"fr","href":"/fr"}]},{"language":"es","pages":[{"title":"es","href":"/es"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh"}]}]},"basePath":"","title":"Créer un message de l’Assistant (v1) - Mintlify","buildId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","deploymentId":"dpl_6cCEiK8XNNvaLBBkWzcBhdE9QfLC","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CLz2_Z5D.js","utils-7A5jZhOT.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BVWmkKuv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-4SOfrh0F.js","snippetPresets-CMc8KicP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-DeQN5MDd.js","ApiExamples-Ba9tX7z3.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Be8krXvv.js","shallow-CBC3K1uB.js","getApiPlaygroundDisplay-4tKcUAYo.js","CodeSnippet-C1Xa06ft.js","CodeSnippets-vqiz27A_.js","getPastedJson-NUwRfM32.js","icon-DkIVqWh9.js","MethodPill-qmhT7_wz.js","DuplicateIcon-_gWp1vhn.js","createIcon-NA1p_TVA.js","DynamicMarkdown-Bas9A7wq.js","SectionHeading-a1cS-24U.js","axios-vUo_bRtp.js","Markdown-D3ZTwq_a.js","clsx-BcghKhHb.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-B66mVNPp.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DmooSyTN.js"]}