Generate an API key from the developer settings page.Name the key and select the permissions your integration needs.Click “Create Key” and store the key securely. Use it wherever an API example asks for <api_key>.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AlphaInsider","colors":{"primary":"#576ddb","light":"#f8f9fa"},"logo":{"light":"https://mintcdn.com/alphainsiderinc/4SI0mET53LNrlNHJ/img/logo.svg?fit=max\u0026auto=format\u0026n=4SI0mET53LNrlNHJ\u0026q=85\u0026s=5e38dde8a33d7beabcb1b1c523a654ec","dark":"https://mintcdn.com/alphainsiderinc/4SI0mET53LNrlNHJ/img/logo.svg?fit=max\u0026auto=format\u0026n=4SI0mET53LNrlNHJ\u0026q=85\u0026s=5e38dde8a33d7beabcb1b1c523a654ec","href":"https://alphainsider.com"},"favicon":{"light":"https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/favicon.ico?fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=3c16e6188d32c07b7ff425ac409b68ef","dark":"https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/favicon.ico?fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=3c16e6188d32c07b7ff425ac409b68ef"},"api":{"openapi":"openapi.yaml","asyncapi":"asyncapi.yaml","examples":{"defaults":"required","languages":["curl","javascript","python","php","go"]}},"seo":{"metatags":{"title":"AlphaInsider API Documentation","description":"The official API and websocket documentation for AlphaInsider.com.","keywords":"alphainsider,api,documentation","og:type":"website","og:title":"AlphaInsider API Documentation","og:description":"The official API and websocket documentation for AlphaInsider.com.","og:image":"https://api.alphainsider.com/img/seo_banner.png","og:url":"https://api.alphainsider.com","twitter:card":"summary","twitter:site":"@alpha_insider","twitter:title":"AlphaInsider API Documentation","twitter:description":"The official API and websocket documentation for AlphaInsider.com.","twitter:image":"https://api.alphainsider.com/img/seo_banner.png","twitter:url":"https://api.alphainsider.com"}},"contextual":{"options":["chatgpt","mcp","copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alphainsiderinc","hasAudioNarration":false,"actualSubdomain":"alphainsiderinc","customDomains":["api.alphainsider.com"],"gitSource":{"type":"github","owner":"alphainsider","repo":"alphainsider_mintlify","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b046528d48387065b2500bc","clientVersion":"0.0.4389","searchFilterCounts":[{"language":"default","tag":"API Reference","count":77},{"language":"default","tag":"Endpoints","count":70},{"language":"default","tag":"Bots","count":15},{"language":"default","tag":"Strategies","count":10},{"language":"default","tag":"Subscriptions","count":10},{"language":"default","tag":"Payments","count":7},{"language":"default","tag":"Timelines","count":7},{"language":"default","tag":"Trades","count":6},{"language":"default","tag":"Stocks","count":5},{"language":"default","tag":"Users","count":4}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"turbopuffer-dual-write","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":"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles/style.css","content":".nav-logo{width:210px;height:auto}"}]}
{"page":{"pagePath":"resources/introduction","slug":"/resources/introduction","pageMetadata":{"title":"Introduction","description":"Set up API access to AlphaInsider.","href":"/resources/introduction"},"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: \"Set up API access to AlphaInsider.\"\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`,h5:`h5`,h6:`h6`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Visibility}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Visibility)_missingMdxReference(`Visibility`,true);return _jsxs(_Fragment,{children:[_jsxs(Visibility,{for:`humans`,children:[_jsx(Heading,{level:`2`,id:`api-keys`,children:`API keys`}),_jsxs(_components.p,{children:[`Generate an API key from the `,_jsx(_components.a,{href:`https://alphainsider.com/settings/developers`,children:`developer settings page`}),`.`]}),_jsx(_components.p,{children:`Name the key and select the permissions your integration needs.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=10401a1c24aca409d0597f5b64d5359f`,alt:`Generate API Key`,\"data-og-width\":`1150`,width:`1150`,\"data-og-height\":`465`,height:`465`,\"data-path\":`img/genApiKey.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=280\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=fa27152f01fe91fd863a4ffae4272d18 280w, https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=560\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=692f14613c6e400c6a39726e3bb50910 560w, https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=840\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=8ca0cdbcbe9bfb04df17b71ea05b5119 840w, https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=1100\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=5632f283b9522839149d789202a73da6 1100w, https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=1650\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=c5e70a1b4bea55b878e443093a2b4d30 1650w, https://mintcdn.com/alphainsiderinc/sHNbeV10UwfZAnL3/img/genApiKey.png?w=2500\u0026fit=max\u0026auto=format\u0026n=sHNbeV10UwfZAnL3\u0026q=85\u0026s=a539c4c9b0db0564f5a20188e0de781d 2500w`}),_jsxs(_components.p,{children:[`Click “Create Key” and store the key securely. Use it wherever an API example asks for `,_jsx(_components.code,{children:`\u003capi_key>`}),`.`]})]}),`\n`,_jsxs(Visibility,{for:`agents`,children:[_jsx(_components.h5,{children:`API keys`}),_jsxs(_components.p,{children:[`Use the project’s configured API key privately. If a new key is needed, direct the user to `,_jsx(_components.a,{href:`https://alphainsider.com/settings/developers`,children:`developer settings`}),` or follow a separately authorized credential-entry workflow.`]}),_jsx(_components.h5,{children:`Authentication and requests`}),_jsxs(_components.p,{children:[`Start with the `,_jsx(_components.a,{href:`https://api.alphainsider.com/skill.md`,children:`API skill`}),` and `,_jsx(_components.a,{href:`https://api.alphainsider.com/resources/agent-skill.md#api-navigation`,children:`operation index`}),`. Construct the exact method, path, query, JSON body, and accepted fields from the selected endpoint’s current schema. Optional fields and example-only response fields are not required merely because an example shows them.`]}),_jsxs(_components.p,{children:[`Protected REST operations use `,_jsx(_components.code,{children:`Authorization: \u003capi-token>`}),` with no `,_jsx(_components.code,{children:`Bearer`}),` prefix. `,_jsx(_components.code,{children:`GET /verifyToken`}),` has header authentication and no token body. `,_jsx(_components.code,{children:`/newOrderWebhook`}),` is the body-token exception: supply `,_jsx(_components.code,{children:`api_token`}),` in its JSON body and do not duplicate it in an Authorization header. Public operations may omit authentication according to their endpoint contract. When authenticated, REST scope names normally match the operation name without its leading slash, such as `,_jsx(_components.code,{children:`getUserStrategies`}),` or `,_jsx(_components.code,{children:`newStrategy`}),`. The webhook exception requires `,_jsx(_components.code,{children:`newOrder`}),` permission. `,_jsx(_components.code,{children:`verifyToken`}),` validates the token and returns its granted scopes; it does not require a separate `,_jsx(_components.code,{children:`verifyToken`}),` scope. WebSocket authentication uses `,_jsx(_components.code,{children:`payload.token`}),` in the `,_jsx(_components.code,{children:`subscribe`}),` message.`]}),_jsx(_components.h6,{children:`Private configuration`}),_jsxs(_components.p,{children:[`Agents must not inspect, print, request in chat, echo, or inline an existing API key. Do not open `,_jsx(_components.code,{children:`.env`}),` or dump the process environment to discover it. Request code can read the selected project’s `,_jsx(_components.code,{children:`ALPHAINSIDER_API_KEY`}),` privately from injected environment variables, an existing project environment loader, or the chosen secret store. When both are available, an explicitly injected nonempty environment value takes precedence over that project’s `,_jsx(_components.code,{children:`.env`}),`. Do not read another project’s or an installed skill’s configuration.`]}),_jsxs(_components.p,{children:[`Limit configuration lookup to names the workflow needs: `,_jsx(_components.code,{children:`ALPHAINSIDER_API_KEY`}),`, optional `,_jsx(_components.code,{children:`ALPHAINSIDER_STRATEGY_ID`}),`, and optional `,_jsx(_components.code,{children:`ALPHAINSIDER_BOT_ID`}),`. Use the project’s established loader to parse quoted `,_jsx(_components.code,{children:`.env`}),` values inside the process; do not expose the file to the agent. Reuse working access. For missing or invalid secrets, use a separately authorized entry workflow with secure, persistent storage and project `,_jsx(_components.code,{children:`.env`}),` as fallback; never inspect existing values.`]}),_jsx(_components.p,{children:`Keep all credential values out of shell command arguments, URLs, source, plans, logs, errors, notifications, and dry-run output. Broker fields, password/token/secret fields, and webhook tokens are secrets too. Prefer selected safe response fields; when a diagnostic needs a structured response, redact nested credential fields case-insensitively and all occurrences of known secrets inside strings or bytes. Never return an API key or arbitrary environment contents. Public strategy/bot IDs may be displayed.`}),_jsx(_components.p,{children:`Send credentials only to the canonical AlphaInsider API/stream origin. Disable automatic authenticated redirects or explicitly verify the destination before resending credentials. Authentication and redaction belong inside the request process, not in model-visible shell interpolation.`}),_jsx(_components.h6,{children:`IDs and encoding`}),_jsx(_components.p,{children:`Explicit request IDs always take precedence over configured defaults. If a required ID is absent, runtime code may resolve its matching non-secret configured default. Apply it only to an endpoint that accepts that field, in the location and scalar/array form defined by the schema. Do not invent a default for unrelated user, order, subscription, or stock IDs. Ask when a required ID remains unresolved.`}),_jsxs(_components.p,{children:[`For list queries, preserve repeated parameters and the schema’s exact name, for example `,_jsx(_components.code,{children:`strategy_id[]=A\u0026strategy_id[]=B`}),`; use the language’s URL encoder. Do not silently replace an explicit empty list or an explicit scalar with a configured default. Encode POST bodies as JSON, set `,_jsx(_components.code,{children:`Content-Type: application/json`}),`, and preserve numbers/strings as their field types require. Send no body for a GET unless its contract explicitly defines one.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`stock_id`}),` accepts an internal ID or `,_jsx(_components.code,{children:`STOCK:EXCHANGE`}),`, such as `,_jsx(_components.code,{children:`TSLA:XNAS`}),`, `,_jsx(_components.code,{children:`SPY:ARCX`}),`, `,_jsx(_components.code,{children:`AAPL:XNAS`}),`, or `,_jsx(_components.code,{children:`ETH-USD:COINBASE`}),`. Use the `,_jsx(_components.code,{children:`stock`}),` and `,_jsx(_components.code,{children:`exchange`}),` fields returned by `,_jsx(_components.code,{children:`searchStocks`}),`; do not guess exchange identifiers from a familiar venue name. Cache catalog data rather than repeatedly using `,_jsx(_components.code,{children:`getAllStocks`}),`.`]}),_jsx(_components.h6,{children:`Responses and retry decisions`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Check both HTTP status and `,_jsx(_components.code,{children:`success`}),`. Successful JSON normally has `,_jsx(_components.code,{children:`{success: true, response: ...}`}),`; failure has `,_jsx(_components.code,{children:`{success: false, response: ...}`}),`. Do not treat HTTP 200 alone as success, or an empty/null body as a successful mutation.`]}),`\n`,_jsx(_components.li,{children:`Validate the response shape needed by the workflow; tolerate additive fields and do not depend on example-only fields. Preserve API strings until the appropriate decimal conversion.`}),`\n`,_jsxs(_components.li,{children:[`For a documented binary operation such as `,_jsx(_components.code,{children:`getInvoicePdf`}),`, retain raw bytes in the intended output file, not text or JSON. Never dump binary output or unredacted error bodies into logs. Separate binary content from a JSON error response.`]}),`\n`,_jsx(_components.li,{children:`Report safe, actionable failure information without reflecting secret values from a remote response, exception, URL, headers, or submitted body. A dry run constructs and validates a request without network access or state changes and prints only a redacted description.`}),`\n`,_jsxs(_components.li,{children:[`Do not blindly retry a POST, order, webhook, allocation, cancellation, or strategy creation. If delivery or success is uncertain, inspect current state and reconcile before another attempt. After an unambiguous rejection, correct the cause within the user’s authorized workflow. On HTTP 429, stop the burst and follow the `,_jsx(_components.a,{href:`https://api.alphainsider.com/resources/limits.md#operation-specific-limits`,children:`limits guide`}),`.`]}),`\n`,_jsx(_components.li,{children:`The hosted skill is guidance, not an SDK or a trading policy. Implement only the requests the project needs; the caller owns authorization, recovery decisions, and any stricter execution limits.`}),`\n`]}),_jsx(_components.h6,{children:`Verify access without exposing the key`}),_jsx(_components.p,{children:`This read-only Node.js example uses a privately injected environment variable. It has no body, prints no API payload, refuses redirects, and never puts a key in command arguments. Other languages should preserve the same behavior.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`22`,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:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// example: verify-token`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_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:` apiKey`}),_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:`ALPHAINSIDER_API_KEY`}),_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:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Missing configured API key.'`}),_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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://alphainsider.com/api/verifyToken'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'GET'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` redirect:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'error'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Accept:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` signal:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AbortSignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`timeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Token verification rejected.'`}),_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:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_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:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`success`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` typeof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'string'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isArray`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scope`}),_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:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Token verification rejected.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'API access verified.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Token verification failed. Check configuration, permissions, and connectivity.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`exitCode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`After verification, check the endpoint permissions and ownership required for the intended action. Verification is not authorization to perform an unrequested action.`}),_jsx(_components.h6,{children:`Strategy setup and uncertain creation`}),_jsxs(_components.p,{children:[`Use the verified `,_jsx(_components.code,{children:`user_id`}),` to discover owned strategies and compare the selected strategy’s owner and `,_jsx(_components.code,{children:`stock`}),`/`,_jsx(_components.code,{children:`cryptocurrency`}),` type with the confirmed task. Check current account eligibility, strategy count limits, and the permissions needed for the exact planned operations. Report only missing permission names; sufficient extra permissions do not require key rotation. Setup and read-only discovery never authorize orders, allocations, or cancellations.`]}),_jsxs(_components.p,{children:[`Before `,_jsx(_components.code,{children:`newStrategy`}),`, validate the complete body against the current endpoint and the user’s confirmed fields: explicit type, string name, finite numeric `,_jsx(_components.code,{children:`input_value`}),`, and an explicit boolean `,_jsx(_components.code,{children:`private`}),`. Numeric strings and booleans are not numeric creation fields. Validate optional description as a string and optional price as a finite number with the documented units and eligibility. Do not infer visibility from an example or silently use a recommendation. Preserve existing settings/history when reusing a strategy unless the user authorized their change.`]}),_jsxs(_components.p,{children:[`For Strategy Creator, perform this work inside the selected project with its root `,_jsx(_components.code,{children:`plan.md`}),`, never an installed skill directory. Keep credential-file access private, reject symlink or non-regular `,_jsx(_components.code,{children:`.env`}),` files, and bound input/response sizes and request duration. Compare every request field with the authorized setup in `,_jsx(_components.code,{children:`plan.md`}),` after offline checks pass. A complete JSON body alone does not establish user authorization.`]}),_jsxs(_components.p,{children:[`Save the owned-strategy inventory before creation. If a response times out, is malformed, or leaves success uncertain, do not repeat `,_jsx(_components.code,{children:`newStrategy`}),`. Refresh the inventory and compare all confirmed creation fields; accept a recovered result only when exactly one new owned match is proven. Otherwise report the unresolved outcome. Use strategy records for identity, owner, type, name, description, visibility, and subscription price; verify the saved starting value and multiplier through the matching authenticated `,_jsx(_components.a,{href:`https://api.alphainsider.com/resources/trading.md#multiplier-context`,children:`subscription/calculation context`}),`. The `,_jsx(_components.code,{children:`newStrategy`}),` response does not include `,_jsx(_components.code,{children:`input_value`}),` or `,_jsx(_components.code,{children:`input_multiplier`}),`, and an unpersisted calculation alone does not prove that the starting value was saved. After verification, persist the public strategy ID through the caller’s configuration workflow. A later description or scheduling failure does not justify creating a duplicate.`]})]})]})}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":"Introduction","description":"Set up API access to AlphaInsider.","href":"/resources/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API keys","slug":"api-keys","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/alphainsiderinc/6e45579661d04f08/.eslintrc.js"],"subdomain":"alphainsiderinc","siteName":"AlphaInsider","title":"AlphaInsider API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T01:38:23.749Z","originalFileLocation":"resources/introduction.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=\"Set up API access to AlphaInsider.\">\u003cmeta data-mint-head name=\"keywords\" content=\"alphainsider,api,documentation\">\u003cmeta data-mint-head name=\"application-name\" content=\"AlphaInsider\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_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/alphainsiderinc/MUoHcXSC5kod0491/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AlphaInsider API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"The official API and websocket documentation for AlphaInsider.com.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AlphaInsider\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api.alphainsider.com/resources/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://api.alphainsider.com/img/seo_banner.png\">\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=\"AlphaInsider API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The official API and websocket documentation for AlphaInsider.com.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://api.alphainsider.com/img/seo_banner.png\">\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/alphainsiderinc/MUoHcXSC5kod0491/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AlphaInsider\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#576ddb\">\u003cmeta data-mint-head name=\"twitter:url\" content=\"https://api.alphainsider.com\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api.alphainsider.com/resources/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/resources/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api.alphainsider.com/#organization\",\"name\":\"AlphaInsider\",\"url\":\"https://api.alphainsider.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alphainsiderinc/4SI0mET53LNrlNHJ/img/logo.svg?fit=max\u0026auto=format\u0026n=4SI0mET53LNrlNHJ\u0026q=85\u0026s=5e38dde8a33d7beabcb1b1c523a654ec\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api.alphainsider.com#website\",\"name\":\"AlphaInsider\",\"url\":\"https://api.alphainsider.com\",\"publisher\":{\"@id\":\"https://api.alphainsider.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api.alphainsider.com/resources/introduction#webpage\",\"url\":\"https://api.alphainsider.com/resources/introduction\",\"name\":\"Introduction\",\"description\":\"Set up API access to AlphaInsider.\",\"dateModified\":\"2026-10-08T01:38:23.749Z\",\"isPartOf\":{\"@id\":\"https://api.alphainsider.com#website\"},\"breadcrumb\":{\"@id\":\"https://api.alphainsider.com/resources/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api.alphainsider.com/resources/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AlphaInsider\",\"item\":\"https://api.alphainsider.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction\",\"item\":\"https://api.alphainsider.com/resources/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://api.alphainsider.com/resources/introduction#article\",\"headline\":\"Introduction\",\"name\":\"Introduction\",\"description\":\"Set up API access to AlphaInsider.\",\"url\":\"https://api.alphainsider.com/resources/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://api.alphainsider.com/resources/introduction#webpage\"},\"image\":\"https://api.alphainsider.com/img/seo_banner.png\",\"dateModified\":\"2026-10-08T01:38:23.749Z\",\"publisher\":{\"@id\":\"https://api.alphainsider.com/#organization\"},\"isPartOf\":{\"@id\":\"https://api.alphainsider.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AlphaInsider\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AlphaInsider\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/resources/introduction.md","siteName":"AlphaInsider","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/resources/introduction"},{"title":"Limits","description":"Account limits and request allowances. To request an increase, [contact support](https://alphainsider.com/contact).","href":"/resources/limits"}]},{"group":"AI Agents","pages":[{"title":"Agent skills","href":"/resources/agent-skill"},{"title":"Grok Bot","href":"/resources/grok-bot"}]},{"group":"Calculations","pages":[{"title":"Trading","href":"/resources/trading"},{"title":"Bots","href":"/resources/bots"}]},{"group":"Endpoints","pages":[{"group":"Authentication","pages":[{"title":"verifyToken","deprecated":null,"version":null,"openapi":"/openapi.yaml get /verifyToken","href":"/resources/authentication/verifytoken"}]},{"group":"Users","pages":[{"title":"getUsers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUsers","href":"/resources/users/getusers"},{"title":"getUserInfo","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUserInfo","href":"/resources/users/getuserinfo"},{"title":"updateUserInfo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateUserInfo","href":"/resources/users/updateuserinfo"},{"title":"updateUserNotifications","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateUserNotifications","href":"/resources/users/updateusernotifications"}]},{"group":"Strategies","pages":[{"title":"getStrategies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategies","href":"/resources/strategies/getstrategies"},{"title":"getStrategyValues","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategyValues","href":"/resources/strategies/getstrategyvalues"},{"title":"getUserStrategies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUserStrategies","href":"/resources/strategies/getuserstrategies"},{"title":"getStrategyPerformance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategyPerformance","href":"/resources/strategies/getstrategyperformance"},{"title":"getRecommendedStrategies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getRecommendedStrategies","href":"/resources/strategies/getrecommendedstrategies"},{"title":"searchStrategies","deprecated":null,"version":null,"openapi":"/openapi.yaml post /searchStrategies","href":"/resources/strategies/searchstrategies"},{"title":"newStrategy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newStrategy","href":"/resources/strategies/newstrategy"},{"title":"updateStrategy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateStrategy","href":"/resources/strategies/updatestrategy"},{"title":"updateStrategyPrice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateStrategyPrice","href":"/resources/strategies/updatestrategyprice"},{"title":"deleteStrategy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deleteStrategy","href":"/resources/strategies/deletestrategy"}]},{"group":"Subscriptions","pages":[{"title":"getStrategySubscriptions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategySubscriptions","href":"/resources/subscriptions/getstrategysubscriptions"},{"title":"newStrategySubscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newStrategySubscription","href":"/resources/subscriptions/newstrategysubscription"},{"title":"deleteStrategySubscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deleteStrategySubscription","href":"/resources/subscriptions/deletestrategysubscription"},{"title":"updateStrategySubscriptionNotifications","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateStrategySubscriptionNotifications","href":"/resources/subscriptions/updatestrategysubscriptionnotifications"},{"title":"getStrategyCalculation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategyCalculation","href":"/resources/subscriptions/getstrategycalculation"},{"title":"updateStrategyCalculation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateStrategyCalculation","href":"/resources/subscriptions/updatestrategycalculation"},{"title":"deleteStrategyCalculation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deleteStrategyCalculation","href":"/resources/subscriptions/deletestrategycalculation"},{"title":"getAccountTiers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getAccountTiers","href":"/resources/subscriptions/getaccounttiers"},{"title":"getAccountSubscription","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getAccountSubscription","href":"/resources/subscriptions/getaccountsubscription"},{"title":"updateAccountSubscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateAccountSubscription","href":"/resources/subscriptions/updateaccountsubscription"}]},{"group":"Payments","pages":[{"title":"getPaymentSources","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getPaymentSources","href":"/resources/payments/getpaymentsources"},{"title":"getUpcomingInvoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUpcomingInvoice","href":"/resources/payments/getupcominginvoice"},{"title":"getInvoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getInvoices","href":"/resources/payments/getinvoices"},{"title":"getInvoicePdf","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getInvoicePdf","href":"/resources/payments/getinvoicepdf"},{"title":"retryInvoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /retryInvoice","href":"/resources/payments/retryinvoice"},{"title":"getUpcomingInvoiceItems","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUpcomingInvoiceItems","href":"/resources/payments/getupcominginvoiceitems"},{"title":"getInvoiceItems","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getInvoiceItems","href":"/resources/payments/getinvoiceitems"}]},{"group":"Withdrawals","pages":[{"title":"getUserBalance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getUserBalance","href":"/resources/withdrawals/getuserbalance"},{"title":"getPayouts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getPayouts","href":"/resources/withdrawals/getpayouts"},{"title":"getPayoutFees","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getPayoutFees","href":"/resources/withdrawals/getpayoutfees"},{"title":"getIncome","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getIncome","href":"/resources/withdrawals/getincome"}]},{"group":"Timelines","pages":[{"title":"getTimelines","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getTimelines","href":"/resources/timelines/gettimelines"},{"title":"getStrategyTimelines","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStrategyTimelines","href":"/resources/timelines/getstrategytimelines"},{"title":"newPost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newPost","href":"/resources/timelines/newpost"},{"title":"previewPost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /previewPost","href":"/resources/timelines/previewpost"},{"title":"deletePost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deletePost","href":"/resources/timelines/deletepost"},{"title":"like","deprecated":null,"version":null,"openapi":"/openapi.yaml post /like","href":"/resources/timelines/like"},{"title":"unlike","deprecated":null,"version":null,"openapi":"/openapi.yaml post /unlike","href":"/resources/timelines/unlike"}]},{"group":"Stocks","pages":[{"title":"getStocks","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStocks","href":"/resources/stocks/getstocks"},{"title":"getAllStocks","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getAllStocks","href":"/resources/stocks/getallstocks"},{"title":"getStockPriceHistory","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getStockPriceHistory","href":"/resources/stocks/getstockpricehistory"},{"title":"searchStocks","deprecated":null,"version":null,"openapi":"/openapi.yaml post /searchStocks","href":"/resources/stocks/searchstocks"},{"title":"getExchangeStatus","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getExchangeStatus","href":"/resources/stocks/getexchangestatus"}]},{"group":"Trades","pages":[{"title":"getPositions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getPositions","href":"/resources/trades/getpositions"},{"title":"getOrders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getOrders","href":"/resources/trades/getorders"},{"title":"getMaxOrderSize","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getMaxOrderSize","href":"/resources/trades/getmaxordersize"},{"title":"newOrder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newOrder","href":"/resources/trades/neworder"},{"title":"newOrderAllocations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newOrderAllocations","href":"/resources/trades/neworderallocations"},{"title":"deleteOrder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deleteOrder","href":"/resources/trades/deleteorder"}]},{"group":"Bots","pages":[{"title":"getBots","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getBots","href":"/resources/bots/getbots"},{"title":"getBotInfo","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getBotInfo","href":"/resources/bots/getbotinfo"},{"title":"newBot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newBot","href":"/resources/bots/newbot"},{"title":"updateBotSettings","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateBotSettings","href":"/resources/bots/updatebotsettings"},{"title":"updateBotBrokerKeys","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateBotBrokerKeys","href":"/resources/bots/updatebotbrokerkeys"},{"title":"updateBotNotifications","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateBotNotifications","href":"/resources/bots/updatebotnotifications"},{"title":"deleteBot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deleteBot","href":"/resources/bots/deletebot"},{"title":"startBot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /startBot","href":"/resources/bots/startbot"},{"title":"stopBot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /stopBot","href":"/resources/bots/stopbot"},{"title":"resetBot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /resetBot","href":"/resources/bots/resetbot"},{"title":"getBotPerformance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getBotPerformance","href":"/resources/bots/getbotperformance"},{"title":"resetBotPerformance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /resetBotPerformance","href":"/resources/bots/resetbotperformance"},{"title":"getBotAllocations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getBotAllocations","href":"/resources/bots/getbotallocations"},{"title":"updateBotAllocations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /updateBotAllocations","href":"/resources/bots/updatebotallocations"},{"title":"getBotActivities","deprecated":null,"version":null,"openapi":"/openapi.yaml get /getBotActivities","href":"/resources/bots/getbotactivities"}]},{"group":"Webhooks","pages":[{"title":"newOrderWebhook","deprecated":null,"version":null,"openapi":"/openapi.yaml post /newOrderWebhook","href":"/resources/webhooks/neworderwebhook"}]}]},{"group":"Websockets","pages":[{"title":"Subscribe","asyncapi":"asyncapi.yaml subscribe","href":"/resources/websockets"}]}]}]},"basePath":"","title":"AlphaInsider API Documentation","deploymentId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","buildId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-ZK10YGZc.js","lightbox-handle-r17bVUz3.js"]}