How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.
SellAuth Bot is built entirely around the SellAuth API — every command in
the Commands tab is a thin layer over one or more SellAuth
endpoints. This page covers the connection itself: how a shop gets linked, and how events flow
from SellAuth back into Discord. For how the bot’s other day-to-day settings — permissions,
notifications — are configured, see Configuration.
Connecting your shop
The API token and shop ID aren’t shared instance-wide — they’re per-operator, set from inside
Discord, and encrypted at rest:
/register <license> — claims a KeyAuth licence to your Discord account. Nothing shop-related
works without a valid licence.
/settoken <token> — connects your SellAuth API token. Generate one from your SellAuth
dashboard’s API settings; the bot only ever needs one token per operator.
/setshopid — calls GET /shops with that token and lets you pick which shop it manages.
This is why the bot is multi-operator: each person’s token and shop ID are resolved fresh on every
command from their own Discord identity, never from a shared instance-wide credential. See
Instances for the full isolation model, and
Licensing for the commands themselves.
Your SellAuth API token grants complete control of your shop. Treat /settoken like handing
over a password — rotate the token on SellAuth’s side and re-run /settoken if you ever suspect
it leaked.
Webhooks vs. polling
Two independent, non-exclusive ways sale, invoice and feedback events reach the bot:Polling (always on, no setup). The bot periodically calls SellAuth’s list endpoints and
compares against an idempotency ledger keyed on event identity, so a restart mid-poll can’t
double-post. This is what powers notifications out of the
box.Webhooks (opt-in). SellAuth can push events instead of waiting to be polled, if your instance
operator has turned on the inbound webhook listener. Once it’s on:
/webhook url show this server's URL (ephemeral, only to you)/webhook status whether SellAuth is actually reaching the bot/webhook regenerate revoke a leaked URL and issue a new one
Paste the URL from /webhook url into your SellAuth dashboard under Notification Settings →
Endpoint URL. Polling keeps running alongside it — both share the same idempotency ledger, so an
event seen by both is announced once, not twice.
SellAuth publishes no signature scheme for these webhooks, so the only thing separating the
internet from your sale notifications is the secret in the URL’s path — 256 bits of randomness,
encrypted at rest, never logged, and revocable with /webhook regenerate.
A webhook URL is scoped to one guild, resolved from the token in the path rather than anything
in the request body — see Instances
for why that matters.
How the bot calls the API
Every SellAuth call goes through one client (clients/sellauth.py), never a fresh HTTP session at
a call site — see Introduction for the retry and
idempotency rules that live there. One additional guarantee worth knowing about: the bot’s test
suite checks every endpoint the client calls against a vendored copy of SellAuth’s own OpenAPI
spec, with the same HTTP verb, so a command can’t call an endpoint that doesn’t exist or has
changed shape upstream.
What SellAuth sends back
SellAuth’s data is not proxied blindly — see Privacy for exactly what’s
stored from a connected shop (token, licence, shop/product/variant IDs, invoice IDs, webhook
secret) versus what’s discarded. One API quirk worth knowing: analytics are USD-denominated by
SellAuth’s own design, which is why every amount in the bot’s responses is formatted as
"24.99 USD" rather than guessing a currency symbol.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bot documentation","description":"Documentation for the Discord bots.","colors":{"primary":"#8b7cf6","light":"#b3a7ff","dark":"#0a0a0c"},"appearance":{"default":"dark"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chairz","hasAudioNarration":false,"actualSubdomain":"chairz","customDomains":["docs.oauth.fyi"],"gitSource":{"type":"github","owner":"imnotxerz","repo":"bot-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad1c948027d20167e6fa2ab","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Commands","count":70},{"language":"default","tag":"Categories","count":64},{"language":"default","tag":"Getting started","count":42},{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"SellAuth Bot","count":35},{"language":"default","tag":"Vouch Bot","count":20},{"language":"default","tag":"Ticket Bot","count":18},{"language":"default","tag":"Features","count":17},{"language":"default","tag":"Manager","count":16},{"language":"default","tag":"Deep dives","count":15}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sellauth/integrations/sellauth-api","slug":"/sellauth/integrations/sellauth-api","pageMetadata":{"title":"Connecting to SellAuth","description":"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.","href":"/sellauth/integrations/sellauth-api"},"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: \"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\"\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`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`SellAuth Bot is built entirely around the `,_jsx(_components.a,{href:`https://sellauth.com`,children:`SellAuth API`}),` — every command in\nthe `,_jsx(_components.a,{href:`/sellauth/commands/overview`,children:`Commands tab`}),` is a thin layer over one or more SellAuth\nendpoints. This page covers the connection itself: how a shop gets linked, and how events flow\nfrom SellAuth back into Discord. For how the bot’s other day-to-day settings — permissions,\nnotifications — are configured, see `,_jsx(_components.a,{href:`/sellauth/configuration`,children:`Configuration`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`connecting-your-shop`,children:`Connecting your shop`}),`\n`,_jsx(_components.p,{children:`The API token and shop ID aren’t shared instance-wide — they’re per-operator, set from inside\nDiscord, and encrypted at rest:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/register \u003clicense>`}),` — claims a KeyAuth licence to your Discord account. Nothing shop-related\nworks without a valid licence.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/settoken \u003ctoken>`}),` — connects your SellAuth API token. Generate one from your SellAuth\ndashboard’s API settings; the bot only ever needs one token per operator.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/setshopid`}),` — calls `,_jsx(_components.code,{children:`GET /shops`}),` with that token and lets you pick which shop it manages.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/webhook url`}),` (optional) — see `,_jsx(_components.a,{href:`#webhooks-vs-polling`,children:`Webhooks`}),` below.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`This is why the bot is multi-operator: each person’s token and shop ID are resolved fresh on every\ncommand from their own Discord identity, never from a shared instance-wide credential. See\n`,_jsx(_components.a,{href:`/sellauth/features/instances`,children:`Instances`}),` for the full isolation model, and\n`,_jsx(_components.a,{href:`/sellauth/commands/licensing`,children:`Licensing`}),` for the commands themselves.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Your SellAuth API token grants complete control of your shop. Treat `,_jsx(_components.code,{children:`/settoken`}),` like handing\nover a password — rotate the token on SellAuth’s side and re-run `,_jsx(_components.code,{children:`/settoken`}),` if you ever suspect\nit leaked.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`webhooks-vs-polling`,children:`Webhooks vs. polling`}),`\n`,_jsx(_components.p,{children:`Two independent, non-exclusive ways sale, invoice and feedback events reach the bot:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Polling (always on, no setup).`}),` The bot periodically calls SellAuth’s list endpoints and\ncompares against an idempotency ledger keyed on event identity, so a restart mid-poll can’t\ndouble-post. This is what powers `,_jsx(_components.a,{href:`/sellauth/commands/notifications`,children:`notifications`}),` out of the\nbox.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Webhooks (opt-in).`}),` SellAuth can push events instead of waiting to be polled, if your instance\noperator has turned on the inbound webhook listener. Once it’s on:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/webhook url show this server's URL (ephemeral, only to you)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/webhook status whether SellAuth is actually reaching the bot`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/webhook regenerate revoke a leaked URL and issue a new one`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Paste the URL from `,_jsx(_components.code,{children:`/webhook url`}),` into your SellAuth dashboard under `,_jsx(_components.strong,{children:`Notification Settings →\nEndpoint URL`}),`. Polling keeps running alongside it — both share the same idempotency ledger, so an\nevent seen by both is announced once, not twice.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`SellAuth publishes no signature scheme for these webhooks, so the only thing separating the\ninternet from your sale notifications is the secret in the URL’s path — 256 bits of randomness,\nencrypted at rest, never logged, and revocable with `,_jsx(_components.code,{children:`/webhook regenerate`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`A webhook URL is scoped to `,_jsx(_components.strong,{children:`one guild`}),`, resolved from the token in the path rather than anything\nin the request body — see `,_jsx(_components.a,{href:`/sellauth/features/instances#do-only-you-control-webhook-urls`,children:`Instances`}),`\nfor why that matters.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-the-bot-calls-the-api`,children:`How the bot calls the API`}),`\n`,_jsxs(_components.p,{children:[`Every SellAuth call goes through one client (`,_jsx(_components.code,{children:`clients/sellauth.py`}),`), never a fresh HTTP session at\na call site — see `,_jsx(_components.a,{href:`/sellauth/introduction#how-it-is-built`,children:`Introduction`}),` for the retry and\nidempotency rules that live there. One additional guarantee worth knowing about: the bot’s test\nsuite checks every endpoint the client calls against a vendored copy of SellAuth’s own OpenAPI\nspec, with the same HTTP verb, so a command can’t call an endpoint that doesn’t exist or has\nchanged shape upstream.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-sellauth-sends-back`,children:`What SellAuth sends back`}),`\n`,_jsxs(_components.p,{children:[`SellAuth’s data is not proxied blindly — see `,_jsx(_components.a,{href:`/sellauth/privacy`,children:`Privacy`}),` for exactly what’s\nstored from a connected shop (token, licence, shop/product/variant IDs, invoice IDs, webhook\nsecret) versus what’s discarded. One API quirk worth knowing: analytics are USD-denominated by\nSellAuth’s own design, which is why every amount in the bot’s responses is formatted as\n`,_jsx(_components.code,{children:`\"24.99 USD\"`}),` rather than guessing a currency symbol.`]})]})}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":"Connecting to SellAuth","description":"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.","href":"/sellauth/integrations/sellauth-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Connecting your shop","slug":"connecting-your-shop","depth":2,"children":[]},{"title":"Webhooks vs. polling","slug":"webhooks-vs-polling","depth":2,"children":[]},{"title":"How the bot calls the API","slug":"how-the-bot-calls-the-api","depth":2,"children":[]},{"title":"What SellAuth sends back","slug":"what-sellauth-sends-back","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"chairz","siteName":"Bot documentation","title":"Connecting to SellAuth - Bot documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-11T06:09:28.514Z","originalFileLocation":"sellauth/integrations/sellauth-api.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=\"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bot documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chairz/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chairz/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chairz/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chairz/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connecting to SellAuth - Bot documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bot documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chairz.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Connecting+to+SellAuth\u0026amp;description=How+the+bot+authenticates+against+your+SellAuth+shop%2C+and+the+two+ways+sale+events+reach+it.\u0026amp;theme=cb169dfe95bf666db407f414\u0026amp;signature=9150a0ee83b9ec15ac9b2e6ee08da3e561e9bb24961ffaa22c0ee7bfcca0e76c\">\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=\"Connecting to SellAuth - Bot documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chairz.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Connecting+to+SellAuth\u0026amp;description=How+the+bot+authenticates+against+your+SellAuth+shop%2C+and+the+two+ways+sale+events+reach+it.\u0026amp;theme=cb169dfe95bf666db407f414\u0026amp;signature=9150a0ee83b9ec15ac9b2e6ee08da3e561e9bb24961ffaa22c0ee7bfcca0e76c\">\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/chairz/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bot documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8b7cf6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sellauth/integrations/sellauth-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oauth.fyi/#organization\",\"name\":\"Bot documentation\",\"url\":\"https://docs.oauth.fyi\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oauth.fyi#website\",\"name\":\"Bot documentation\",\"url\":\"https://docs.oauth.fyi\",\"publisher\":{\"@id\":\"https://docs.oauth.fyi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api#webpage\",\"url\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api\",\"name\":\"Connecting to SellAuth\",\"description\":\"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\",\"dateModified\":\"2026-08-11T06:09:28.514Z\",\"isPartOf\":{\"@id\":\"https://docs.oauth.fyi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Bot documentation\",\"item\":\"https://docs.oauth.fyi\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting to SellAuth\",\"item\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api#article\",\"headline\":\"Connecting to SellAuth\",\"name\":\"Connecting to SellAuth\",\"description\":\"How the bot authenticates against your SellAuth shop, and the two ways sale events reach it.\",\"url\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oauth.fyi/sellauth/integrations/sellauth-api#webpage\"},\"dateModified\":\"2026-08-11T06:09:28.514Z\",\"publisher\":{\"@id\":\"https://docs.oauth.fyi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oauth.fyi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bot documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bot documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sellauth/integrations/sellauth-api.md","siteName":"Bot documentation","nav":{"global":null,"products":[{"product":"Overview","icon":"house","description":"All bots, and which documentation you want","pages":[{"title":"Overview","href":""}]},{"product":"Manager","icon":"circle-dot","description":"Discord bot for storefront communities","pages":[{"title":"Manager","href":"/manager/introduction"}]},{"product":"AEGIS","icon":"shield-halved","description":"Discord security platform — detection, raid/anti-nuke protection, case management, and incident response.","pages":[{"title":"AEGIS","href":"/aegis/introduction"}]},{"product":"SellAuth Bot","icon":"cart-shopping","description":"Self-hosted Discord bot for running a SellAuth shop — orders, inventory, tickets and purchase panels.","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/sellauth/introduction"}]},{"tab":"Commands","pages":[{"title":"Commands","href":"/sellauth/commands/overview"}]},{"tab":"Features","pages":[{"title":"Features","href":"/sellauth/features/instances"}]},{"tab":"Integrations","groups":[{"group":"API","pages":[{"title":"Connecting to SellAuth","href":"/sellauth/integrations/sellauth-api"}]}]},{"tab":"Support","pages":[{"title":"Support","href":"/sellauth/support"}]}]},{"product":"Vouch Bot","icon":"handshake","description":"Discord reputation, vouching, marketplace, and trust platform.","pages":[{"title":"Vouch Bot","href":"/vouch/introduction"}]},{"product":"Updater Bot","icon":"arrows-rotate","description":"Discord game-update intelligence — one correlated, deduplicated notification per release across Steam, Epic, EA, Activision, Ubisoft, Riot, Bungie, Roblox, and more.","pages":[{"title":"Updater Bot","href":"/updater/introduction"}]},{"product":"Ticket Bot","icon":"ticket","description":"Enterprise dual-mode Discord ticket platform — standard support desks and a guided AIO sales funnel.","pages":[{"title":"Ticket Bot","href":"/ticket/introduction"}]},{"product":"KeyAuth Bot","icon":"key","description":"Discord bot fronting KeyAuth licensing — key redemption, subscription self-service, and a staff License Operations control plane.","pages":[{"title":"KeyAuth Bot","href":"/keyauth/introduction"}]},{"product":"Invoice Bot","icon":"file-invoice-dollar","description":"Discord invoicing and payment-management bot — persistent invoices, a full status lifecycle, and multi-method payment support.","pages":[{"title":"Invoice Bot","href":"/invoice/introduction"}]},{"product":"News Bot","icon":"bullhorn","description":"Discord announcement-publishing bot — drafts, opt-in mentions, and fault-tolerant multi-channel publishing.","pages":[{"title":"News Bot","href":"/news/introduction"}]},{"product":"Download Bot","icon":"download","description":"Discord bot for running a private, categorized download center with per-role access control and pluggable storage.","pages":[{"title":"Download Bot","href":"/download/introduction"}]},{"product":"Sources","icon":"code","description":"Setting up a bot from purchased source code, self-hosted.","pages":[{"title":"Sources","href":"/sources/introduction"}]}]},"basePath":"","title":"Connecting to SellAuth - Bot documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}