The @atxp/common package provides shared utilities, types, and interfaces that are used across all ATXP SDK packages. This package contains the foundational building blocks for authentication, payment processing, and MCP integration.
This package is typically installed automatically as a dependency when you install other ATXP packages like @atxp/client or @atxp/express. You only need to install it directly if you’re building custom integrations or extending the ATXP SDK.
The ATXP connection string in the format: https://accounts.atxp.ai?connection_token=<token>
Example usage
import { Account } from '@atxp/common'// Get connection string from environment variablesconst connectionString = process.env.ATXP_CONNECTION_STRINGconst account = new Account(connectionString)
Human-readable name for the payee, displayed during payment.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"ATXP Docs","colors":{"primary":"#000000","light":"#FFFFFF","dark":"#FFFFFF"},"logo":{"light":"https://mintcdn.com/atxp/ZU8_z3YklIKBoP7v/logo/ATXP_logo_light_w-tagline.svg?fit=max\u0026auto=format\u0026n=ZU8_z3YklIKBoP7v\u0026q=85\u0026s=c392105d32ace0d22679f37b11234f17","dark":"https://mintcdn.com/atxp/ZU8_z3YklIKBoP7v/logo/ATXP_logo_dark_w-tagline.svg?fit=max\u0026auto=format\u0026n=ZU8_z3YklIKBoP7v\u0026q=85\u0026s=122b36077d7c9d1911fbc9336d194a5a","href":"https://atxp.ai"},"favicon":"https://mintcdn.com/atxp/h4YKkjv58t45yUT7/logo/ATXP_favicon.svg?fit=max\u0026auto=format\u0026n=h4YKkjv58t45yUT7\u0026q=85\u0026s=4988979e874ade319e91a6800fb13098","navbar":{},"footer":{"socials":{"x":"https://x.com/atxp_ai","github":"https://github.com/atxp-dev","linkedin":"https://linkedin.com/company/atxp"}},"seo":{"metatags":{"google-adsense-account":"ca-pub-7602870631624536"}},"fonts":{"family":"Readex Pro"},"integrations":{"ga4":{"measurementId":"G-7YVBRV9XVR"},"gtm":{"tagId":"GTM-PBDGRQK8"},"posthog":{"apiKey":"phc_lcPjjHwHzWygn19kSMMgqVzNQRS76Hw3XTyaIyAEAtN","apiHost":"https://app.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Account","icon":"user","href":"https://accounts.atxp.ai"},{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.atxp.ai"},{"anchor":"Blog","icon":"pen-to-square","href":"https://atxp.ai/blog/"},{"anchor":"Contact","icon":"envelope","href":"mailto:support@atxp.ai?subject=ATXP%20Contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"atxp","hasAudioNarration":false,"actualSubdomain":"atxp","customDomains":["docs.atxp.ai"],"gitSource":{"type":"github","owner":"circuitandchisel","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e76f8d1fcd719df05553","collectionId":"6ee22cda-2a9f-4976-9f83-cebf178b3f5e","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a32eb7087dc5d9668931ec7:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"For Developers","count":22},{"language":"default","tag":"Tools","count":12},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"For Agents","count":7},{"language":"default","tag":"Build Agents","count":5},{"language":"default","tag":"Monetize MCP Tools","count":5},{"language":"default","tag":"LLM Gateway","count":4},{"language":"default","tag":"Web and Data","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Creative","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"developers/api-reference/common","slug":"/developers/api-reference/common","pageMetadata":{"title":"@atxp/common","description":"Documentation for the @atxp/common package","href":"/developers/api-reference/common"},"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: \"Documentation for the @atxp/common package\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@atxp/common`,children:`@atxp/common`}),` package provides shared utilities, types, and interfaces that are used across all ATXP SDK packages. This package contains the foundational building blocks for authentication, payment processing, and MCP integration.`]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This package is typically installed automatically as a dependency when you install other ATXP packages like `,_jsx(_components.code,{children:`@atxp/client`}),` or `,_jsx(_components.code,{children:`@atxp/express`}),`. You only need to install it directly if you’re building custom integrations or extending the ATXP SDK.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @atxp/common`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`client-types`,children:`Client Types`}),`\n`,_jsx(Heading,{level:`3`,id:`account`,children:`Account`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`Account`}),` class represents an ATXP account and handles authentication with the ATXP service.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:`Account`}),_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:` '@atxp/common'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` account`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connectionString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(ParamField,{body:`connectionString`,type:`string`,required:true,id:`param-connection-string`,children:_jsxs(_components.p,{children:[`The ATXP connection string in the format: `,_jsx(_components.code,{children:`https://accounts.atxp.ai?connection_token=\u003ctoken>`})]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example usage`})}),`\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:`Account`}),_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:` '@atxp/common'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Get connection string from environment variables`})}),`\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:` connectionString`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ATXP_CONNECTION_STRING`})]}),`\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:` account`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connectionString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`clientargs`,children:`ClientArgs`}),`\n`,_jsx(_components.p,{children:`Configuration interface for creating ATXP clients.`}),`\n`,_jsxs(Expandable,{title:`ClientArgs properties`,children:[_jsx(ResponseField,{name:`mcpServer`,type:`string`,required:true,id:`param-mcp-server`,children:_jsx(_components.p,{children:`The URL of the MCP server to connect to.`})}),_jsx(ResponseField,{name:`account`,type:`Account`,required:true,id:`param-account`,children:_jsx(_components.p,{children:`The ATXP account instance for authentication.`})}),_jsxs(ResponseField,{name:`onAuthorize`,type:`function`,optional:true,id:`param-on-authorize`,children:[_jsx(_components.p,{children:`Callback function called when authorization succeeds.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`onAuthorize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AuthorizationData`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`onAuthorizeFailure`,type:`function`,optional:true,id:`param-on-authorize-failure`,children:[_jsx(_components.p,{children:`Callback function called when authorization fails.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`onAuthorizeFailure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AuthorizationError`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`onPayment`,type:`function`,optional:true,id:`param-on-payment`,children:[_jsx(_components.p,{children:`Callback function called when payment succeeds.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`onPayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentData`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`onPaymentFailure`,type:`function`,optional:true,id:`param-on-payment-failure`,children:[_jsx(_components.p,{children:`Callback function called when payment fails.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`onPaymentFailure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentError`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})})]}),_jsxs(ResponseField,{name:`approvePayment`,type:`function`,optional:true,id:`param-approve-payment`,children:[_jsx(_components.p,{children:`Custom payment approval logic.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`approvePayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`request`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentRequest`}),_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:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boolean`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`authorizationdata`,children:`AuthorizationData`}),`\n`,_jsx(_components.p,{children:`Data structure returned when authorization succeeds.`}),`\n`,_jsxs(Expandable,{title:`AuthorizationData properties`,children:[_jsx(ResponseField,{name:`userId`,type:`string`,required:true,id:`param-user-id`,children:_jsx(_components.p,{children:`Unique identifier for the authorized user.`})}),_jsx(ResponseField,{name:`accessToken`,type:`string`,required:true,id:`param-access-token`,children:_jsx(_components.p,{children:`OAuth access token for API authentication.`})}),_jsx(ResponseField,{name:`refreshToken`,type:`string`,optional:true,id:`param-refresh-token`,children:_jsx(_components.p,{children:`Token used to refresh the access token when it expires.`})}),_jsx(ResponseField,{name:`expiresAt`,type:`Date`,optional:true,id:`param-expires-at`,children:_jsx(_components.p,{children:`Timestamp when the access token expires.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`paymentdata`,children:`PaymentData`}),`\n`,_jsx(_components.p,{children:`Data structure returned when payment succeeds.`}),`\n`,_jsxs(Expandable,{title:`PaymentData properties`,children:[_jsx(ResponseField,{name:`amount`,type:`BigNumber`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`The payment amount in USDC.`})}),_jsx(ResponseField,{name:`currency`,type:`string`,required:true,id:`param-currency`,children:_jsx(_components.p,{children:`The payment currency (typically “USDC”).`})}),_jsx(ResponseField,{name:`transactionId`,type:`string`,required:true,id:`param-transaction-id`,children:_jsx(_components.p,{children:`Unique identifier for the payment transaction.`})}),_jsx(ResponseField,{name:`timestamp`,type:`Date`,required:true,id:`param-timestamp`,children:_jsx(_components.p,{children:`When the payment was processed.`})}),_jsx(ResponseField,{name:`toolName`,type:`string`,optional:true,id:`param-tool-name`,children:_jsx(_components.p,{children:`Name of the tool that triggered the payment.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`paymentrequest`,children:`PaymentRequest`}),`\n`,_jsx(_components.p,{children:`Data structure representing a payment request.`}),`\n`,_jsxs(Expandable,{title:`PaymentRequest properties`,children:[_jsx(ResponseField,{name:`amount`,type:`BigNumber`,required:true,id:`param-amount-1`,children:_jsx(_components.p,{children:`The requested payment amount in USDC.`})}),_jsx(ResponseField,{name:`currency`,type:`string`,required:true,id:`param-currency-1`,children:_jsx(_components.p,{children:`The payment currency (typically “USDC”).`})}),_jsx(ResponseField,{name:`toolName`,type:`string`,optional:true,id:`param-tool-name-1`,children:_jsx(_components.p,{children:`Name of the tool requesting payment.`})}),_jsx(ResponseField,{name:`description`,type:`string`,optional:true,id:`param-description`,children:_jsx(_components.p,{children:`Human-readable description of what the payment is for.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-types`,children:`Error Types`}),`\n`,_jsx(Heading,{level:`3`,id:`authorizationerror`,children:`AuthorizationError`}),`\n`,_jsx(_components.p,{children:`Error thrown when authorization fails.`}),`\n`,_jsxs(Expandable,{title:`AuthorizationError properties`,children:[_jsx(ResponseField,{name:`message`,type:`string`,required:true,id:`param-message`,children:_jsx(_components.p,{children:`Human-readable error message describing the authorization failure.`})}),_jsx(ResponseField,{name:`code`,type:`string`,optional:true,id:`param-code`,children:_jsx(_components.p,{children:`Error code for programmatic error handling.`})}),_jsx(ResponseField,{name:`details`,type:`object`,optional:true,id:`param-details`,children:_jsx(_components.p,{children:`Additional error details and context.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`paymenterror`,children:`PaymentError`}),`\n`,_jsx(_components.p,{children:`Error thrown when payment processing fails.`}),`\n`,_jsxs(Expandable,{title:`PaymentError properties`,children:[_jsx(ResponseField,{name:`message`,type:`string`,required:true,id:`param-message-1`,children:_jsx(_components.p,{children:`Human-readable error message describing the payment failure.`})}),_jsx(ResponseField,{name:`code`,type:`string`,optional:true,id:`param-code-1`,children:_jsx(_components.p,{children:`Error code for programmatic error handling.`})}),_jsx(ResponseField,{name:`transactionId`,type:`string`,optional:true,id:`param-transaction-id-1`,children:_jsx(_components.p,{children:`ID of the failed transaction, if available.`})}),_jsx(ResponseField,{name:`details`,type:`object`,optional:true,id:`param-details-1`,children:_jsx(_components.p,{children:`Additional error details and context.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`server-types`,children:`Server Types`}),`\n`,_jsx(Heading,{level:`3`,id:`atxpargs`,children:`ATXPArgs`}),`\n`,_jsx(_components.p,{children:`Configuration interface for ATXP server middleware.`}),`\n`,_jsxs(Expandable,{title:`ATXPArgs properties`,children:[_jsx(ResponseField,{name:`destination`,type:`string`,required:true,id:`param-destination`,children:_jsx(_components.p,{children:`The wallet address where payments will be sent.`})}),_jsx(ResponseField,{name:`payeeName`,type:`string`,optional:true,id:`param-payee-name`,children:_jsx(_components.p,{children:`Human-readable name for the payee, displayed during payment.`})})]})]})}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":"@atxp/common","description":"Documentation for the @atxp/common package","href":"/developers/api-reference/common"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Client Types","slug":"client-types","depth":2,"children":[{"title":"Account","slug":"account","depth":3,"children":[]},{"title":"ClientArgs","slug":"clientargs","depth":3,"children":[]},{"title":"AuthorizationData","slug":"authorizationdata","depth":3,"children":[]},{"title":"PaymentData","slug":"paymentdata","depth":3,"children":[]},{"title":"PaymentRequest","slug":"paymentrequest","depth":3,"children":[]}]},{"title":"Error Types","slug":"error-types","depth":2,"children":[{"title":"AuthorizationError","slug":"authorizationerror","depth":3,"children":[]},{"title":"PaymentError","slug":"paymenterror","depth":3,"children":[]}]},{"title":"Server Types","slug":"server-types","depth":2,"children":[{"title":"ATXPArgs","slug":"atxpargs","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"atxp","siteName":"ATXP Docs","title":"@atxp/common - ATXP Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-29T06:14:47.553Z","originalFileLocation":"developers/api-reference/common.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=\"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=\"Documentation for the @atxp/common package\">\u003cmeta data-mint-head name=\"application-name\" content=\"ATXP Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_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/atxp/Y6ySgvzED_pQvuHL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"@atxp/common - ATXP Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Documentation for the @atxp/common package\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ATXP Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.atxp.ai/developers/api-reference/common\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://atxp.mintlify.app/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=%40atxp%2Fcommon\u0026amp;description=Documentation+for+the+%40atxp%2Fcommon+package\u0026amp;theme=edadc2fdc429b6c3246b3a03\u0026amp;signature=73e8a7183db34c03d1a5cc68ae655d562e6ff6c875e6633681e45fd78ebbda32\">\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=\"@atxp/common - ATXP Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Documentation for the @atxp/common package\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atxp.mintlify.app/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=%40atxp%2Fcommon\u0026amp;description=Documentation+for+the+%40atxp%2Fcommon+package\u0026amp;theme=edadc2fdc429b6c3246b3a03\u0026amp;signature=73e8a7183db34c03d1a5cc68ae655d562e6ff6c875e6633681e45fd78ebbda32\">\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/atxp/Y6ySgvzED_pQvuHL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ATXP Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003cmeta data-mint-head name=\"google-adsense-account\" content=\"ca-pub-7602870631624536\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.atxp.ai/developers/api-reference/common\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developers/api-reference/common.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.atxp.ai/#organization\",\"name\":\"ATXP Docs\",\"url\":\"https://docs.atxp.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/atxp/ZU8_z3YklIKBoP7v/logo/ATXP_logo_light_w-tagline.svg?fit=max\u0026auto=format\u0026n=ZU8_z3YklIKBoP7v\u0026q=85\u0026s=c392105d32ace0d22679f37b11234f17\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.atxp.ai#website\",\"name\":\"ATXP Docs\",\"url\":\"https://docs.atxp.ai\",\"publisher\":{\"@id\":\"https://docs.atxp.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.atxp.ai/developers/api-reference/common#webpage\",\"url\":\"https://docs.atxp.ai/developers/api-reference/common\",\"name\":\"@atxp/common\",\"description\":\"Documentation for the @atxp/common package\",\"dateModified\":\"2026-01-29T06:14:47.553Z\",\"isPartOf\":{\"@id\":\"https://docs.atxp.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.atxp.ai/developers/api-reference/common#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.atxp.ai/developers/api-reference/common#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.atxp.ai/developers/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"@atxp/common\",\"item\":\"https://docs.atxp.ai/developers/api-reference/common\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.atxp.ai/developers/api-reference/common#article\",\"headline\":\"@atxp/common\",\"name\":\"@atxp/common\",\"description\":\"Documentation for the @atxp/common package\",\"url\":\"https://docs.atxp.ai/developers/api-reference/common\",\"mainEntityOfPage\":{\"@id\":\"https://docs.atxp.ai/developers/api-reference/common#webpage\"},\"dateModified\":\"2026-01-29T06:14:47.553Z\",\"publisher\":{\"@id\":\"https://docs.atxp.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.atxp.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ATXP Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ATXP Docs","nav":{"global":{"anchors":[{"anchor":"Account","icon":"user","href":"https://accounts.atxp.ai"},{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.atxp.ai"},{"anchor":"Blog","icon":"pen-to-square","href":"https://atxp.ai/blog/"},{"anchor":"Contact","icon":"envelope","href":"mailto:support@atxp.ai?subject=ATXP%20Contact"}]},"tabs":[{"tab":"For Agents","pages":[{"title":"For Agents","href":"/agents"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools"}]},{"tab":"For Developers","groups":[{"group":"Overview","pages":[{"title":"For Developers","href":"/developers"}]},{"group":"Build Agents","pages":[{"title":"Agent quickstart","href":"/developers/build-agents/index"},{"title":"Create an ATXP account","href":"/developers/build-agents/create-account"},{"title":"Build a simple CLI client","href":"/developers/build-agents/tutorial"},{"title":"Build an agent with Vercel AI","href":"/developers/build-agents/integrations/vercel-ai"},{"title":"Build an agent with Cloudflare Agents","href":"/developers/build-agents/integrations/cloudflare"}]},{"group":"Monetize MCP Tools","pages":[{"title":"MCP server quickstart","href":"/developers/monetize/index"},{"title":"Create an ATXP account","href":"/developers/monetize/create-account"},{"title":"Build a paid MCP server","href":"/developers/monetize/tutorial"},{"title":"Batch Payments","href":"/developers/monetize/batch-payments"},{"title":"Build a paid MCP server on Cloudflare","href":"/developers/monetize/cloudflare-deploy"}]},{"group":"Developer Tools","pages":[{"title":"ATXP CLI","href":"/developers/cli"},{"title":"MCP Proxy","href":"/developers/proxy"}]},{"group":"API Reference","pages":[{"title":"ATXP SDK Overview","href":"/developers/api-reference/introduction"},{"title":"@atxp/client","href":"/developers/api-reference/client"},{"title":"@atxp/express","href":"/developers/api-reference/express"},{"title":"@atxp/base","description":"API reference for the @atxp/base package","href":"/developers/api-reference/base"},{"title":"@atxp/common","href":"/developers/api-reference/common"},{"title":"@atxp/redis","description":"Redis OAuth database implementation for scalable authentication and session management in ATXP applications","href":"/developers/api-reference/redis"},{"title":"@atxp/sqlite","href":"/developers/api-reference/sqlite"},{"title":"@atxp/server","href":"/developers/api-reference/server"},{"title":"@atxp/solana","href":"/developers/api-reference/solana"}]}]}]},"title":"@atxp/common - ATXP Docs","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}