If you install the SDK with <script> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.
If you install the SDK with <script> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.
After you have installed the SDK, you need to initialize it. You need to initialize the SDK with a token and domain which you can find in the game settings page in the Theymes support application.You can also pass an optional options argument, please refer to the API documentation for all the details what you can configure with the options.
Once the SDK has been initialized, you can open it. You can open the SDK in a few different ways but let’s focus on opening the help center here. Call openSupport to open the help center:
import { openSupport } from '@theymes/sdk';...openSupport()
And that’s all you need for the SDK to work with a basic setup!
To integrate the SDK with a React application, you should call initialize inside a component that remains mounted throughout the app’s lifecycle, usually near the top of your component tree. The most common approach is to invoke it within a useEffect hook when the component mounts.
You can also configure the language, player information and metadata of the SDK. Please refer to the Configuring the SDK page for more details.You can also do more with the SDK such as track retention, enable in-game notifications, or subscribe to changes (e.g. unread messages) within Theymes. Please refer to the API Reference for a comprehensive list of methods the SDK supports.
If you use the SDK to serve non-anonymous players, you can send metadata to the SDK to include information about the player such as the player id, tier or custom fields/tags. Please read the Player metadata documentation to learn more about the metadata and what you can include in it.
By setting up metadata, you will have better control over configuring which players can contact support and when. For example, you can prevent anonymous players from contacting support and force unverified players to go through self-help first while still allowing verified players or only your VIP players to contact support directly.
Theymes doesn’t have its own user authentication which would require users to create accounts on our platform. Instead, we let you integrate our support to your existing authentication by using our Player Verification feature.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Theymes","description":"Theymes is an AI-native customer support platform for gaming and consumer applications. Automate support, manage knowledge, deploy AI agents, integrate in-app support, and turn customer conversations into actionable insights.","colors":{"primary":"#FFBC0F","light":"#FFD15C","dark":"#C49200"},"logo":{"light":"https://mintcdn.com/theymes/Pr90uYFAV_z9ooGO/logo/light.svg?fit=max\u0026auto=format\u0026n=Pr90uYFAV_z9ooGO\u0026q=85\u0026s=203e396f920ad30ef636acd04bb01599","dark":"https://mintcdn.com/theymes/Pr90uYFAV_z9ooGO/logo/dark.svg?fit=max\u0026auto=format\u0026n=Pr90uYFAV_z9ooGO\u0026q=85\u0026s=50389a3c26f766a90244f563b785c002"},"favicon":"https://mintcdn.com/theymes/Pr90uYFAV_z9ooGO/favicon.svg?fit=max\u0026auto=format\u0026n=Pr90uYFAV_z9ooGO\u0026q=85\u0026s=a37157dad0d89e4c65480348c7dd58c5","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://theymes.com","label":"theymes.com"}],"primary":{"type":"button","label":"Support app","href":"https://app.theymes.com"}},"footer":{"socials":{"website":"https://theymes.com","linkedin":"https://www.linkedin.com/company/theymes"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Theymes","icon":"globe","href":"https://theymes.com"},{"anchor":"Support app","icon":"comments","href":"https://app.theymes.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"theymes","hasAudioNarration":false,"actualSubdomain":"theymes","customDomains":["docs.theymes.com"],"gitSource":{"type":"github","owner":"theymes","repo":"theymes-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6adf7dd3374824585d6ba55b","collectionId":"5d03163c-ff54-4c4a-aabb-ee7b491db876","liveDeploymentHistoryId":"6adf7dd3374824585d6ba55b","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6adf7dd3374824585d6ba55b","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Developers","count":28},{"language":"default","tag":"SDK","count":22},{"language":"default","tag":"API reference","count":19},{"language":"default","tag":"Authenticated endpoints (API key)","count":17},{"language":"default","tag":"Product","count":12},{"language":"default","tag":"iOS","count":7},{"language":"default","tag":"Unity","count":7},{"language":"default","tag":"Web","count":7},{"language":"default","tag":"Automation","count":5},{"language":"default","tag":"AI Agents","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"developers/sdk/web/using","slug":"/developers/sdk/web/using","pageMetadata":{"title":"Using the SDK","description":"If you install the SDK with \u003cscript> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.","href":"/developers/sdk/web/using"},"description":"If you install the SDK with \u003cscript> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.","pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`If you install the SDK with `,_jsx(_components.code,{children:`\u003cscript>`}),` tag, the SDK is in `,_jsx(_components.code,{children:`window.theymes`}),` namespace, e.g. `,_jsx(_components.code,{children:`theymes.initialize`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`After you have installed the SDK, you need to initialize it. You need to initialize the SDK with a token and domain which you can find in the game settings page in the `,_jsx(_components.a,{href:`https://app.theymes.com`,children:`Theymes support application`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`You can also pass an optional options argument, please refer to `,_jsx(_components.a,{href:`/developers/sdk/web/api#initialize`,children:`the API documentation`}),` for all the details what you can configure with the options.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,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:`initialize`}),_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:` '@theymes/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`domain`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`InitializeOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`opening-the-sdk`,children:`Opening the SDK`}),`\n`,_jsxs(_components.p,{children:[`Once the SDK has been initialized, you can open it. You can open the SDK in `,_jsx(_components.a,{href:`/developers/sdk/web/api#opening-and-closing`,children:`a few different ways`}),` but let’s focus on opening the help center here. Call `,_jsx(_components.code,{children:`openSupport`}),` to open the help center:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,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:`openSupport`}),_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:` '@theymes/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`openSupport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`And that’s all you need for the SDK to work with a basic setup!`}),`\n`,_jsx(Heading,{level:`2`,id:`using-the-sdk-with-react`,children:`Using the SDK with React`}),`\n`,_jsx(_components.p,{children:`To integrate the SDK with a React application, you should call initialize inside a component that remains mounted throughout the app’s lifecycle, usually near the top of your component tree. The most common approach is to invoke it within a useEffect hook when the component mounts.`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-example`,children:`Basic example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`jsx`,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:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`16`,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:`initialize`}),_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:` '@theymes/sdk'`}),_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\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useEffect`}),_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:` 'react'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// App component is always mounted`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` App`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_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:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useEffect`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` domain`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`domain`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Your app's components`})}),`\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`]})})}),`\n`,_jsx(_components.p,{children:`To open the help center, call the openSupport function where you want to open it:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`jsx`,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:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`5`,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:`openSupport`}),_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:` '@theymes/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OpenSupportButton`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_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:` onClick`}),_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\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` openSupport`}),_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\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Open Support`}),_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:`>`}),_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`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`configuring-the-sdk`,children:`Configuring the SDK`}),`\n`,_jsxs(_components.p,{children:[`You can also configure the language, player information and metadata of the SDK. Please refer to the `,_jsx(_components.a,{href:`/developers/sdk/web/configuring`,children:`Configuring the SDK`}),` page for more details.`]}),`\n`,_jsxs(_components.p,{children:[`You can also do more with the SDK such as track retention, enable in-game notifications, or subscribe to changes (e.g. unread messages) within Theymes. Please refer to the `,_jsx(_components.a,{href:`/developers/sdk/web/api`,children:`API Reference`}),` for a comprehensive list of methods the SDK supports.`]}),`\n`,_jsx(Heading,{level:`3`,id:`player-metadata`,children:`Player metadata`}),`\n`,_jsxs(_components.p,{children:[`If you use the SDK to serve non-anonymous players, you can send metadata to the SDK to include information about the player such as the player id, tier or custom fields/tags. Please read the `,_jsx(_components.a,{href:`/developers/player-metadata/player-metadata`,children:`Player metadata documentation`}),` to learn more about the metadata and what you can include in it.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`By setting up metadata, you will have better control over configuring which players can contact support and when. For example, you can prevent anonymous players from contacting support and force unverified players to go through self-help first while still allowing verified players or only your VIP players to contact support directly.`})}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Theymes doesn’t have its own user authentication which would require users to create accounts on our platform. Instead, we let you integrate our support to your existing authentication by using our `,_jsx(_components.a,{href:`/developers/player-metadata/player-verification`,children:`Player Verification`}),` feature.`]})]})}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":"Using the SDK","description":"If you install the SDK with \u003cscript> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.","href":"/developers/sdk/web/using"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Opening the SDK","slug":"opening-the-sdk","depth":2,"children":[]},{"title":"Using the SDK with React","slug":"using-the-sdk-with-react","depth":2,"children":[{"title":"Basic example:","slug":"basic-example","depth":3,"children":[]}]},{"title":"Configuring the SDK","slug":"configuring-the-sdk","depth":2,"children":[{"title":"Player metadata","slug":"player-metadata","depth":3,"children":[]},{"title":"Authentication","slug":"authentication","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"theymes","siteName":"Theymes","title":"Using the SDK - Theymes","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-17T07:48:03.284Z","originalFileLocation":"developers/sdk/web/using.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}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=\"If you install the SDK with tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Theymes\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_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/theymes/Og1LJ4xnCFD9owLk/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Using the SDK - Theymes\">\u003cmeta data-mint-head property=\"og:description\" content=\"If you install the SDK with tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Theymes\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.theymes.com/developers/sdk/web/using\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://theymes.mintlify.app/_mintlify/api/og/v2?division=Web\u0026amp;title=Using+the+SDK\u0026amp;description=If+you+install+the+SDK+with+%3Cscript%3E+tag%2C+the+SDK+is+in+window.theymes+namespace%2C+e.g.+theymes.initialize.\u0026amp;theme=6547f5549ec79a6ec2fd9e1e\u0026amp;signature=bc5b5b23fe0e1a587e90d55c1a8d0e00ac541bd7391b5079f3584882d09a4b88\">\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=\"Using the SDK - Theymes\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"If you install the SDK with tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://theymes.mintlify.app/_mintlify/api/og/v2?division=Web\u0026amp;title=Using+the+SDK\u0026amp;description=If+you+install+the+SDK+with+%3Cscript%3E+tag%2C+the+SDK+is+in+window.theymes+namespace%2C+e.g.+theymes.initialize.\u0026amp;theme=6547f5549ec79a6ec2fd9e1e\u0026amp;signature=bc5b5b23fe0e1a587e90d55c1a8d0e00ac541bd7391b5079f3584882d09a4b88\">\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/theymes/Og1LJ4xnCFD9owLk/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Theymes\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFBC0F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.theymes.com/developers/sdk/web/using\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developers/sdk/web/using.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.theymes.com/#organization\",\"name\":\"Theymes\",\"url\":\"https://docs.theymes.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/theymes/Pr90uYFAV_z9ooGO/logo/light.svg?fit=max\u0026auto=format\u0026n=Pr90uYFAV_z9ooGO\u0026q=85\u0026s=203e396f920ad30ef636acd04bb01599\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.theymes.com#website\",\"name\":\"Theymes\",\"url\":\"https://docs.theymes.com\",\"publisher\":{\"@id\":\"https://docs.theymes.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.theymes.com/developers/sdk/web/using#webpage\",\"url\":\"https://docs.theymes.com/developers/sdk/web/using\",\"name\":\"Using the SDK\",\"description\":\"If you install the SDK with tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.\",\"dateModified\":\"2026-09-17T07:48:03.284Z\",\"isPartOf\":{\"@id\":\"https://docs.theymes.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.theymes.com/developers/sdk/web/using#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.theymes.com/developers/sdk/web/using#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK\",\"item\":\"https://docs.theymes.com/developers/sdk/about\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web\",\"item\":\"https://docs.theymes.com/developers/sdk/web/about\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Using the SDK\",\"item\":\"https://docs.theymes.com/developers/sdk/web/using\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.theymes.com/developers/sdk/web/using#article\",\"headline\":\"Using the SDK\",\"name\":\"Using the SDK\",\"description\":\"If you install the SDK with tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.\",\"url\":\"https://docs.theymes.com/developers/sdk/web/using\",\"mainEntityOfPage\":{\"@id\":\"https://docs.theymes.com/developers/sdk/web/using#webpage\"},\"dateModified\":\"2026-09-17T07:48:03.284Z\",\"publisher\":{\"@id\":\"https://docs.theymes.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.theymes.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Theymes\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Theymes","nav":{"global":{"anchors":[{"anchor":"Theymes","icon":"globe","href":"https://theymes.com"},{"anchor":"Support app","icon":"comments","href":"https://app.theymes.com"}]},"tabs":[{"tab":"Product","pages":[{"title":"Product","href":"/product/overview"}]},{"tab":"Developers","groups":[{"group":"Get started","pages":[{"title":"Developers","href":"/developers"}]},{"group":"Player metadata","pages":[{"title":"Player Metadata","href":"/developers/player-metadata/player-metadata"},{"title":"Player Verification","href":"/developers/player-metadata/player-verification"},{"title":"Player Verification Guide","href":"/developers/player-metadata/player-verification-guide"}]},{"group":"SDK","root":{"title":"About Theymes SDK","href":"/developers/sdk/about"},"directory":"accordion","pages":[{"group":"Unity","pages":[{"title":"About Unity SDK","href":"/developers/sdk/unity/about"},{"title":"Installing the SDK","href":"/developers/sdk/unity/installing"},{"title":"Configuring the SDK","href":"/developers/sdk/unity/configuring"},{"title":"Notifications","href":"/developers/sdk/unity/notifications"},{"title":"Push notifications","href":"/developers/sdk/unity/push-notifications"},{"title":"Privacy and young players","href":"/developers/sdk/unity/privacy-and-young-players"},{"title":"API Reference","href":"/developers/sdk/unity/api"}]},{"group":"iOS","pages":[{"title":"About iOS SDK","href":"/developers/sdk/ios/about"},{"title":"Installing the SDK","href":"/developers/sdk/ios/installing"},{"title":"Configuring the SDK","href":"/developers/sdk/ios/configuring"},{"title":"Notifications","href":"/developers/sdk/ios/notifications"},{"title":"Push notifications","href":"/developers/sdk/ios/push-notifications"},{"title":"Privacy and young players","href":"/developers/sdk/ios/privacy-and-young-players"},{"title":"API Reference","href":"/developers/sdk/ios/api"}]},{"group":"Android","pages":[{"title":"About Android SDK","href":"/developers/sdk/android/about"}]},{"group":"Web","pages":[{"title":"About Web SDK","href":"/developers/sdk/web/about"},{"title":"Installing the SDK","href":"/developers/sdk/web/installing"},{"title":"Configuring the SDK","description":"Configure the Web SDK with per-request options or persistent settings for language, player metadata, and other help-center preferences.","href":"/developers/sdk/web/configuring"},{"title":"Using the SDK","href":"/developers/sdk/web/using"},{"title":"Web Widget","description":"If you install the widget with \u003cscript> tag, the SDK is in window.theymes namespace, e.g. theymes.initialize.","href":"/developers/sdk/web/web-widget"},{"title":"Content Security Policy (CSP)","href":"/developers/sdk/web/content-security-policy"},{"title":"API Reference","href":"/developers/sdk/web/api"}]}]},{"group":"API","pages":[{"title":"Theymes API","href":"/developers/api"},{"title":"Querying stats","href":"/developers/insights/querying-stats"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/authenticated-endpoints-api-key/list-announcements"}]}]},"basePath":"","title":"Using the SDK - Theymes","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}