USER is someone in your app. AGENT is your team speaking from the dashboard or the API.
In Chat, user and agent are not product roles. They are who is speaking in the conversation. That changes webhooks, metrics, and which JWT you put in the app.
Who can create a conversation, create a group, and add members with a user JWT applies to anyone with a user token. An agent via API Key ignores those flags: the backend can always create.See Quick Start and Send messages.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Notifique","description":"API multicanal para WhatsApp, SMS, e-mail, push e mais. Integre, teste no sandbox e use IA com llms.txt e MCP.","colors":{"primary":"#fbbf24","light":"#fbbf24","dark":"#fbbf24"},"logo":{"light":"https://mintcdn.com/tribus/bZe-7RiENjmeF_O7/logo/light.png?fit=max\u0026auto=format\u0026n=bZe-7RiENjmeF_O7\u0026q=85\u0026s=64d67c9a1c52ec357777b5632f714882","dark":"https://mintcdn.com/tribus/bZe-7RiENjmeF_O7/logo/dark.png?fit=max\u0026auto=format\u0026n=bZe-7RiENjmeF_O7\u0026q=85\u0026s=2df6ca04be3fb36c080492c1c205975f"},"favicon":"https://mintcdn.com/tribus/bZe-7RiENjmeF_O7/favicon.svg?fit=max\u0026auto=format\u0026n=bZe-7RiENjmeF_O7\u0026q=85\u0026s=3ea7b1631da416de0c1a7ee57d439c56","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python","go"],"prefill":true,"autogenerate":true}},"navbar":{"links":[{"href":"https://status.notifique.dev","label":"Status"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.notifique.dev"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"pt-BR","default":true,"navbar":{"links":[{"href":"https://status.notifique.dev","label":"Status"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.notifique.dev"}},"href":"welcome/welcome"},{"language":"en","href":"en/welcome/welcome"},{"language":"es","href":"es/welcome/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tribus","hasAudioNarration":false,"actualSubdomain":"tribus","customDomains":["docs.notifique.dev"],"gitSource":{"type":"github","owner":"notifique-dev","repo":"notifique-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad52bcc29f358e945e24eef","collectionId":"53455186-1186-4cb7-b9b1-ff28dfb2c0ce","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad52bcc29f358e945e24eef"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ad52bcc29f358e945e24eef","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"Guias","count":56},{"language":"default","tag":"Automações","count":53},{"language":"en","tag":"WhatsApp","count":50},{"language":"default","tag":"Contatos","count":49},{"language":"pt-BR","tag":"WhatsApp","count":46},{"language":"es","tag":"WhatsApp","count":46},{"language":"pt-BR","tag":"Guias","count":40},{"language":"en","tag":"Guides","count":40},{"language":"es","tag":"Guías","count":40},{"language":"pt-BR","tag":"Automações","count":38},{"language":"en","tag":"Add-ons","count":37},{"language":"en","tag":"Automations","count":35},{"language":"es","tag":"Add-ons","count":35},{"language":"pt-BR","tag":"Add-ons","count":34},{"language":"en","tag":"Instagram","count":33},{"language":"pt-BR","tag":"Instagram","count":32},{"language":"es","tag":"Automatizaciones","count":32},{"language":"es","tag":"Instagram","count":32},{"language":"en","tag":"Contacts","count":29},{"language":"pt-BR","tag":"Contatos","count":28},{"language":"en","tag":"Telegram","count":28},{"language":"es","tag":"Contactos","count":28},{"language":"es","tag":"Telegram","count":27},{"language":"pt-BR","tag":"Telegram","count":25},{"language":"pt-BR","tag":"Instâncias","count":25},{"language":"default","tag":"Voz","count":23},{"language":"en","tag":"Instâncias","count":22},{"language":"es","tag":"Instâncias","count":21},{"language":"default","tag":"Chat","count":21},{"language":"default","tag":"WhatsApp","count":19},{"language":"en","tag":"Mensagens","count":18},{"language":"en","tag":"Voice","count":17},{"language":"es","tag":"Mensagens","count":17},{"language":"pt-BR","tag":"Voz","count":15},{"language":"pt-BR","tag":"Mensagens","count":15},{"language":"es","tag":"Voz","count":15},{"language":"default","tag":"Assistentes","count":14},{"language":"default","tag":"Add-ons","count":14},{"language":"default","tag":"Mensagens","count":13},{"language":"default","tag":"Push","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"welcome-hero.css","content":"@keyframes welcome-line-flow{0%{stroke-dashoffset:0}to{stroke-dashoffset:-240}}@keyframes welcome-node-pulse{0%,to{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.35)}}@keyframes welcome-ring-expand{0%{opacity:.5;transform:scale(.6)}70%,to{opacity:0;transform:scale(2.2)}}@keyframes welcome-glow-drift{0%,to{transform:translate(0,0) scale(1)}33%{transform:translate(24px,-16px) scale(1.05)}66%{transform:translate(-18px,12px) scale(.95)}}@keyframes welcome-grid-pulse{0%,to{opacity:.35}50%{opacity:.9}}.welcome-hero{position:relative;overflow:hidden;text-align:center;padding:96px 24px;margin-bottom:-16px;background:#09090b;-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 56px),rgba(0,0,0,.98) calc(100% - 49px),rgba(0,0,0,.96) calc(100% - 44px),rgba(0,0,0,.93) calc(100% - 39px),rgba(0,0,0,.89) calc(100% - 34px),rgba(0,0,0,.84) calc(100% - 29px),rgba(0,0,0,.78) calc(100% - 25px),rgba(0,0,0,.71) calc(100% - 21px),rgba(0,0,0,.63) calc(100% - 17px),rgba(0,0,0,.54) calc(100% - 13px),rgba(0,0,0,.44) calc(100% - 10px),rgba(0,0,0,.34) calc(100% - 7px),rgba(0,0,0,.24) calc(100% - 5px),rgba(0,0,0,.15) calc(100% - 3px),rgba(0,0,0,.08) calc(100% - 1px),transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 56px),rgba(0,0,0,.98) calc(100% - 49px),rgba(0,0,0,.96) calc(100% - 44px),rgba(0,0,0,.93) calc(100% - 39px),rgba(0,0,0,.89) calc(100% - 34px),rgba(0,0,0,.84) calc(100% - 29px),rgba(0,0,0,.78) calc(100% - 25px),rgba(0,0,0,.71) calc(100% - 21px),rgba(0,0,0,.63) calc(100% - 17px),rgba(0,0,0,.54) calc(100% - 13px),rgba(0,0,0,.44) calc(100% - 10px),rgba(0,0,0,.34) calc(100% - 7px),rgba(0,0,0,.24) calc(100% - 5px),rgba(0,0,0,.15) calc(100% - 3px),rgba(0,0,0,.08) calc(100% - 1px),transparent 100%);-webkit-mask-size:100% 100%;mask-size:100% 100%}.welcome-hero-bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}.welcome-hero-glow{position:absolute;border-radius:50%;filter:blur(72px);opacity:.45;animation:welcome-glow-drift 18s ease-in-out infinite}.welcome-hero-glow-1{width:420px;height:420px;top:-120px;left:8%;background:rgba(251,191,36,.22);animation-delay:0s}.welcome-hero-glow-2{width:360px;height:360px;top:10%;right:5%;background:rgba(245,158,11,.14);animation-delay:-6s}.welcome-hero-glow-3{width:280px;height:280px;bottom:-40px;left:42%;background:rgba(251,191,36,.1);animation-delay:-12s}.welcome-hero-svg{position:absolute;inset:0;width:100%;height:100%;opacity:.9}.welcome-hero-grid line{stroke:rgba(251,191,36,.06);stroke-width:1}.welcome-hero-grid line:nth-child(odd){animation:welcome-grid-pulse 8s ease-in-out infinite}.welcome-hero-grid line:nth-child(even){animation:welcome-grid-pulse 8s ease-in-out infinite reverse;animation-delay:-4s}.welcome-hero-path{fill:none;stroke:url(#welcome-line-gradient);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:6 14;animation:welcome-line-flow 22s linear infinite}.welcome-hero-path-2{animation-duration:28s;animation-direction:reverse;stroke-dasharray:4 18;opacity:.7}.welcome-hero-path-3{animation-duration:18s;stroke-dasharray:8 10;opacity:.55}.welcome-hero-node{fill:#fbbf24;filter:drop-shadow(0 0 8px rgba(251,191,36,.65));animation:welcome-node-pulse 4s ease-in-out infinite}.welcome-hero-node-2{animation-delay:-1.2s}.welcome-hero-node-3{animation-delay:-2.4s}.welcome-hero-node-4{animation-delay:-.6s}.welcome-hero-node-5{animation-delay:-1.8s}.welcome-hero-node-6{animation-delay:-3s}.welcome-hero-ring{fill:none;stroke:rgba(251,191,36,.2);stroke-width:1;transform-origin:center;animation:welcome-ring-expand 5s ease-out infinite}.welcome-hero-ring-2{animation-delay:-2.5s}.welcome-hero-content{position:relative;z-index:2}@media (prefers-reduced-motion:reduce){.welcome-hero-glow,.welcome-hero-grid line,.welcome-hero-node,.welcome-hero-path,.welcome-hero-ring{animation:none!important}}"}],"page":{"pagePath":"en/chat-api/como-funciona/usuario-e-agente","slug":"/en/chat-api/como-funciona/usuario-e-agente","pageMetadata":{"title":"User and agent","description":"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.","icon":"user-helmet-safety","href":"/en/chat-api/como-funciona/usuario-e-agente"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.p,{children:[`In Chat, `,_jsx(_components.strong,{children:`user`}),` and `,_jsx(_components.strong,{children:`agent`}),` are not product roles. They are `,_jsx(_components.strong,{children:`who is speaking in the conversation`}),`. That changes webhooks, metrics, and which JWT you put in the app.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`in-short`,children:`In short`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsxs(_components.th,{children:[`User (`,_jsx(_components.code,{children:`USER`}),`)`]}),_jsxs(_components.th,{children:[`Agent (`,_jsx(_components.code,{children:`AGENT`}),`)`]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Who`}),_jsxs(_components.td,{children:[`Person signed in `,_jsx(_components.strong,{children:`in your app`})]}),_jsx(_components.td,{children:`Workspace member (support, ops, company bot)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`How to create`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`PUT /v1/chat/users`}),` (default)`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /v1/chat/agents`}),` (links `,_jsx(_components.code,{children:`workspaceUserId`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`JWT in the client app`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No. The client app must not get an agent JWT`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Send from the dashboard`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Yes — the dashboard speaks as an agent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Send with API Key`}),_jsxs(_components.td,{children:[`Pass `,_jsx(_components.code,{children:`senderExternalUserId`}),` of a USER or AGENT`]}),_jsxs(_components.td,{children:[`Same: `,_jsx(_components.code,{children:`senderExternalUserId`}),` is who shows up`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Webhook`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`chat.received`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`chat.sent`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-user`,children:`When to use USER`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`USER`}),` for `,_jsx(_components.strong,{children:`everyone who joins chat from your application`}),`. Each person has a stable `,_jsx(_components.code,{children:`externalUserId`}),` in `,_jsx(_components.strong,{children:`your`}),` database.`]}),`\n`,_jsx(_components.p,{children:`Typical flow:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The person signs in to your app`}),`\n`,_jsxs(_components.li,{children:[`Your backend upserts them (`,_jsx(_components.code,{children:`PUT /v1/chat/users`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Your backend mints the JWT (`,_jsx(_components.code,{children:`POST /v1/chat/users/token`}),`)`]}),`\n`,_jsx(_components.li,{children:`The app opens the WebSocket with that JWT and sends as that person`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The JWT carries `,_jsx(_components.code,{children:`kind: USER`}),`. Whoever holds that token `,_jsx(_components.strong,{children:`is`}),` that person in the conversation.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-agent`,children:`When to use AGENT`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`AGENT`}),` when the message should appear as `,_jsx(_components.strong,{children:`your company`}),`, not an end user.`]}),`\n`,_jsx(_components.p,{children:`Typical cases:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Someone on the team replies in the `,_jsx(_components.strong,{children:`dashboard`}),` (Chat or Inbox) — Notifique already creates the agent `,_jsx(_components.code,{children:`agent:{workspaceUserId}`})]}),`\n`,_jsxs(_components.li,{children:[`Your backend posts a notice in the thread `,_jsx(_components.strong,{children:`as support`})]}),`\n`,_jsxs(_components.li,{children:[`You want `,_jsx(_components.strong,{children:`sent`}),` (agent) vs `,_jsx(_components.strong,{children:`received`}),` (user) metrics on the Chat App detail`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v1/chat/agents`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer sk_live_xxxxx`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chatAppId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"clxxapp...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"workspaceUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"clxxuser...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"externalUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"agent:clxxuser...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ana (support)\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`workspaceUserId`}),` must be a workspace member. The default `,_jsx(_components.code,{children:`externalUserId`}),` is `,_jsx(_components.code,{children:`agent:{workspaceUserId}`}),`.`]}),`\n`,_jsx(_components.p,{children:`Then send as that agent:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"clxxapp...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cnv_xxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hi, how can I help?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"senderExternalUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"agent:clxxuser...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`what-not-to-mix`,children:`What not to mix`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not`}),` put an `,_jsx(_components.code,{children:`AGENT`}),` JWT in the customer app. The customer speaks with a `,_jsx(_components.code,{children:`USER`}),` JWT.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not`}),` register staff as `,_jsx(_components.code,{children:`USER`}),` if they answer from the dashboard — the webhook would fire as `,_jsx(_components.code,{children:`chat.received`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Two `,_jsx(_components.code,{children:`USER`}),`s in a 1:1 is people in your product talking. A `,_jsx(_components.code,{children:`USER`}),` and an `,_jsx(_components.code,{children:`AGENT`}),` is support.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`chat-app-flags`,children:`Chat App flags`}),`\n`,_jsxs(_components.p,{children:[`Who can `,_jsx(_components.strong,{children:`create a conversation`}),`, `,_jsx(_components.strong,{children:`create a group`}),`, and `,_jsx(_components.strong,{children:`add members`}),` with a user JWT applies to anyone with a user token. An agent via API Key ignores those flags: the backend can always create.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/en/chat-api/como-funciona/quick-start`,children:`Quick Start`}),` and `,_jsx(_components.a,{href:`/en/chat-api/como-funciona/enviar-mensagens`,children:`Send messages`}),`.`]})]})}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":"User and agent","description":"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.","icon":"user-helmet-safety","href":"/en/chat-api/como-funciona/usuario-e-agente"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"In short","slug":"in-short","depth":2,"children":[]},{"title":"When to use USER","slug":"when-to-use-user","depth":2,"children":[]},{"title":"When to use AGENT","slug":"when-to-use-agent","depth":2,"children":[]},{"title":"What not to mix","slug":"what-not-to-mix","depth":2,"children":[]},{"title":"Chat App flags","slug":"chat-app-flags","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"tribus","siteName":"Notifique","title":"User and agent - Notifique","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/chat-api/como-funciona/usuario-e-agente","matchLevel":1},"en":{"href":"/en/chat-api/como-funciona/usuario-e-agente","matchLevel":0},"es":{"href":"/es/chat-api/como-funciona/usuario-e-agente","matchLevel":1}}},"lastModified":"2026-09-06T20:33:03.231Z","originalFileLocation":"en/chat-api/como-funciona/usuario-e-agente.md","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=\"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Notifique\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"User and agent - Notifique\">\u003cmeta data-mint-head property=\"og:description\" content=\"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Notifique\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tribus.mintlify.app/_mintlify/api/og/v2?division=Chat+API\u0026amp;title=User+and+agent\u0026amp;description=USER+is+someone+in+your+app.+AGENT+is+your+team+speaking+from+the+dashboard+or+the+API.\u0026amp;theme=8c9a8f58518c7b0a360dbb49\u0026amp;signature=29e4090b7a121cba7557a1864754c29e024125cfe5b69b4d4a4b389fa726f545\">\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=\"User and agent - Notifique\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tribus.mintlify.app/_mintlify/api/og/v2?division=Chat+API\u0026amp;title=User+and+agent\u0026amp;description=USER+is+someone+in+your+app.+AGENT+is+your+team+speaking+from+the+dashboard+or+the+API.\u0026amp;theme=8c9a8f58518c7b0a360dbb49\u0026amp;signature=29e4090b7a121cba7557a1864754c29e024125cfe5b69b4d4a4b389fa726f545\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tribus/lrSzNckWGT07xfjB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Notifique\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#fbbf24\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/chat-api/como-funciona/usuario-e-agente.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.notifique.dev/chat-api/como-funciona/usuario-e-agente\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.notifique.dev/es/chat-api/como-funciona/usuario-e-agente\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.notifique.dev/chat-api/como-funciona/usuario-e-agente\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.notifique.dev/#organization\",\"name\":\"Notifique\",\"url\":\"https://docs.notifique.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tribus/bZe-7RiENjmeF_O7/logo/light.png?fit=max\u0026auto=format\u0026n=bZe-7RiENjmeF_O7\u0026q=85\u0026s=64d67c9a1c52ec357777b5632f714882\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.notifique.dev#website\",\"name\":\"Notifique\",\"url\":\"https://docs.notifique.dev\",\"publisher\":{\"@id\":\"https://docs.notifique.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente#webpage\",\"url\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\",\"name\":\"User and agent\",\"description\":\"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\",\"dateModified\":\"2026-09-06T20:33:03.231Z\",\"isPartOf\":{\"@id\":\"https://docs.notifique.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Chat API\",\"item\":\"https://docs.notifique.dev/en/chat-api/como-funciona/introducao\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User and agent\",\"item\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente#article\",\"headline\":\"User and agent\",\"name\":\"User and agent\",\"description\":\"USER is someone in your app. AGENT is your team speaking from the dashboard or the API.\",\"url\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente\",\"mainEntityOfPage\":{\"@id\":\"https://docs.notifique.dev/en/chat-api/como-funciona/usuario-e-agente#webpage\"},\"dateModified\":\"2026-09-06T20:33:03.231Z\",\"publisher\":{\"@id\":\"https://docs.notifique.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.notifique.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Notifique\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Notifique","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"navbar":{"links":[{"href":"https://status.notifique.dev","label":"Status"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.notifique.dev"}},"pages":[{"title":"pt-BR","href":"/chat-api/como-funciona/usuario-e-agente"}]},{"language":"en","tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":"/en/welcome/welcome"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/en/guides/introducao/comece-aqui"}]},{"tab":"WhatsApp","pages":[{"title":"WhatsApp","href":"/en/whatsapp-api/como-funciona/introducao"}]},{"tab":"SMS","pages":[{"title":"SMS","href":"/en/sms-api/como-funciona/introducao"}]},{"tab":"Telegram","pages":[{"title":"Telegram","href":"/en/telegram-api/como-funciona/introducao"}]},{"tab":"Instagram","pages":[{"title":"Instagram","href":"/en/instagram-api/como-funciona/introducao"}]},{"tab":"Email","pages":[{"title":"Email","href":"/en/emails-api/como-funciona/introducao"}]},{"tab":"Push","pages":[{"title":"Push","href":"/en/push-api/como-funciona/introducao"}]},{"tab":"Chat","groups":[{"group":"Chat API","pages":[{"title":"Introduction","icon":"message","href":"/en/chat-api/como-funciona/introducao"},{"title":"Quick Start","icon":"bolt","description":"First in-app conversation: Chat App, two users, JWT, and one message.","href":"/en/chat-api/como-funciona/quick-start"},{"title":"User and agent","icon":"user-helmet-safety","href":"/en/chat-api/como-funciona/usuario-e-agente"},{"title":"Send messages","description":"Chat PIV1 contract: from, to, type, and payload. Text, image, audio, and file.","icon":"paper-plane","href":"/en/chat-api/como-funciona/enviar-mensagens"},{"title":"Capabilities and blocking","icon":"shield","href":"/en/chat-api/como-funciona/capacidades-e-bloqueio"},{"title":"API Key scopes","icon":"key","href":"/en/chat-api/como-funciona/escopos-da-api-key"},{"title":"Webhook events","icon":"code-merge","href":"/en/chat-api/como-funciona/eventos-do-webhooks"}]},{"group":"Chat Apps","pages":[{"title":"Listar Chat Apps","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json get /v1/chat/apps","href":"/api-reference/chat-apps/listar-chat-apps"},{"title":"Criar Chat App","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/apps","href":"/api-reference/chat-apps/criar-chat-app"},{"title":"Obter Chat App","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json get /v1/chat/apps/{id}","href":"/api-reference/chat-apps/obter-chat-app"},{"title":"Atualizar Chat App","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json patch /v1/chat/apps/{id}","href":"/api-reference/chat-apps/atualizar-chat-app"},{"title":"Rotacionar signing secret","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/apps/{id}/rotate-secret","href":"/api-reference/chat-apps/rotacionar-signing-secret"},{"title":"Excluir Chat App","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json delete /v1/chat/apps/{id}","href":"/api-reference/chat-apps/excluir-chat-app"}]},{"group":"Chat Users","pages":[{"title":"Criar ou atualizar usuário","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json put /v1/chat/users","href":"/api-reference/chat-users/criar-ou-atualizar-usuário"},{"title":"Emitir JWT do usuário","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/users/token","href":"/api-reference/chat-users/emitir-jwt-do-usuário"},{"title":"Vincular agente da equipe","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/agents","href":"/api-reference/chat-users/vincular-agente-da-equipe"}]},{"group":"Conversations","pages":[{"title":"Listar conversas","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json get /v1/chat/conversations","href":"/api-reference/chat-conversations/listar-conversas"},{"title":"Criar conversa","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations","href":"/api-reference/chat-conversations/criar-conversa"},{"title":"Obter conversa","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json get /v1/chat/conversations/{id}","href":"/api-reference/chat-conversations/obter-conversa"},{"title":"Update conversation capabilities","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json patch /v1/chat/conversations/{id}","href":"/api-reference/chat-conversations/update-conversation-capabilities"},{"title":"Excluir conversa","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json delete /v1/chat/conversations/{id}","href":"/api-reference/chat-conversations/excluir-conversa"},{"title":"Entrar na conversa","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/join","href":"/api-reference/chat-conversations/entrar-na-conversa"},{"title":"Mute conversation","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/mute","href":"/api-reference/chat-conversations/mute-conversation"},{"title":"Adicionar membros","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/members","href":"/api-reference/chat-conversations/adicionar-membros"},{"title":"Remover membro","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json delete /v1/chat/conversations/{id}/members/{userId}","href":"/api-reference/chat-conversations/remover-membro"},{"title":"Alterar papel do membro","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/members/{userId}/role","href":"/api-reference/chat-conversations/alterar-papel-do-membro"}]},{"group":"Blocks","pages":[{"title":"List blocks","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json get /v1/chat/blocks","href":"/api-reference/chat-blocks/list-blocks"},{"title":"Block user","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json put /v1/chat/blocks/{externalUserId}","href":"/api-reference/chat-blocks/block-user"},{"title":"Unblock user","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json delete /v1/chat/blocks/{externalUserId}","href":"/api-reference/chat-blocks/unblock-user"}]},{"group":"Messages","pages":[{"title":"Send message","deprecated":null,"version":null,"openapi":"/en/chat-api/api-reference/openapi-chat.json post /v1/chat/messages","href":"/api-reference/chat-messages/send-message"},{"title":"Listar mensagens","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json get /v1/chat/conversations/{id}/messages","href":"/api-reference/chat-messages/listar-mensagens"},{"title":"Enviar mensagem","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/messages","href":"/api-reference/chat-messages/enviar-mensagem"},{"title":"Excluir mensagem","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json delete /v1/chat/conversations/{id}/messages/{messageId}","href":"/api-reference/chat-messages/excluir-mensagem"},{"title":"Marcar conversa como lida","deprecated":null,"version":null,"openapi":"/es/chat-api/api-reference/openapi-chat.json post /v1/chat/conversations/{id}/read","href":"/api-reference/chat-messages/marcar-conversa-como-lida"}]}]},{"tab":"RCS","pages":[{"title":"RCS","href":"/en/rcs-api/como-funciona/introducao"}]},{"tab":"Voice","pages":[{"title":"Voice","href":"/en/voice-api/como-funciona/introducao"}]},{"tab":"Web chat","pages":[{"title":"Web chat","href":"/en/ai-web-widget"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/en/template-api/como-funciona/introducao"}]},{"tab":"Contacts","pages":[{"title":"Contacts","href":"/en/contacts-api/como-funciona/introducao"}]},{"tab":"Automations","pages":[{"title":"Automations","href":"/en/automations-api/como-funciona/introducao"}]},{"tab":"Add-ons","pages":[{"title":"Add-ons","href":"/en/addons"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/chat-api/como-funciona/usuario-e-agente"}]}]},"basePath":"","title":"User and agent - Notifique","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":[],"chunks":[]}