Review token scopes, permissions, expiry, and revocation behavior.
Issued tokens use the scope in this request. Scope fields and auto_prefix_streams
are not inherited from the caller, and requested access must be no broader than
the caller’s effective permissions. See the token issuance scope
rules.
Namespace streams based on the configured stream-level scope, which must be a prefix.
Stream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"S2","description":"API for unlimited, durable, real-time streams.","colors":{"primary":"#252525","light":"#E8E8E8","dark":"#252525"},"logo":{"light":"https://mintcdn.com/streamstore/2KVWF55FbBFAHG9D/logo/s2-black.png?fit=max\u0026auto=format\u0026n=2KVWF55FbBFAHG9D\u0026q=85\u0026s=a21a60dc6c4cc961bb234a8eba956217","dark":"https://mintcdn.com/streamstore/2KVWF55FbBFAHG9D/logo/s2-white.png?fit=max\u0026auto=format\u0026n=2KVWF55FbBFAHG9D\u0026q=85\u0026s=7cd77fc75c133fddce332121b1d71f64","href":"https://s2.dev/"},"favicon":"https://mintcdn.com/streamstore/2KVWF55FbBFAHG9D/logo/s2-black.png?fit=max\u0026auto=format\u0026n=2KVWF55FbBFAHG9D\u0026q=85\u0026s=a21a60dc6c4cc961bb234a8eba956217","api":{"openapi":"specs-denorm/v1/openapi.json","examples":{"defaults":"required","languages":["curl"]}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#252525"}},"navbar":{"links":[{"href":"https://github.com/s2-streamstore/s2","label":"s2-streamstore/s2","type":"github"},{"href":"https://discord.gg/vTCs7kMkAf","label":"s2.dev","type":"discord"}]},"footer":{"socials":{"bluesky":"https://bsky.app/profile/s2.dev","x":"https://x.com/s2_streamstore","linkedin":"https://www.linkedin.com/company/streamstore","github":"https://github.com/s2-streamstore","discord":"https://discord.gg/vTCs7kMkAf"}},"seo":{"metatags":{"canonical":"https://s2.dev/docs"}},"integrations":{"posthog":{"apiKey":"phc_o0QA5I7imsTAAtxVm57BogVdpN0U7e70SmwD5lzaiAJ","apiHost":"https://php.s2.dev"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://s2.dev/blog"},{"anchor":"Talk to us","icon":"comments","href":"https://s2.dev/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streamstore","hasAudioNarration":false,"actualSubdomain":"streamstore","customDomains":["s2.dev"],"gitSource":{"type":"github","owner":"s2-streamstore","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adbbb7a6d07b13661cd85a0","collectionId":"146c9708-f08f-4ebd-9e49-a0d476507bca","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adbbb7a6d07b13661cd85a0"},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adbbb7a6d07b13661cd85a0","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API","count":27},{"language":"default","tag":"CLI","count":15},{"language":"default","tag":"Data Plane","count":15},{"language":"default","tag":"SDKs","count":14},{"language":"default","tag":"Concepts","count":13},{"language":"default","tag":"Integrations","count":13},{"language":"default","tag":"Platform","count":10},{"language":"default","tag":"Updates","count":10},{"language":"default","tag":"Control Plane","count":9},{"language":"default","tag":"Start","count":8}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/docs/_mintlify/custom/streamstore/c2f785041ee9d423/custom.css"},{"filePath":"asciinema-player.css","content":"@keyframes ap-loader-rotation{0%{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ap-default-term-ff{--term-font-family:\"Cascadia Code\", \"Source Code Pro\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace, \"Symbols Nerd Font\"}div.ap-wrapper{outline:0;height:100%;display:flex;justify-content:center}div.ap-wrapper .title-bar{display:none;top:-78px;transition:top .15s linear;position:absolute;left:0;right:0;box-sizing:content-box;font-size:20px;line-height:1em;padding:15px;font-family:sans-serif;color:#fff;background-color:rgba(0,0,0,.8)}div.ap-wrapper .title-bar img{vertical-align:middle;height:48px;margin-right:16px}div.ap-wrapper .title-bar a{color:#fff;text-decoration:underline}div.ap-wrapper .title-bar a:hover{text-decoration:none}div.ap-wrapper:fullscreen{background-color:#000;width:100%;align-items:center}div.ap-wrapper:fullscreen .title-bar{display:initial}div.ap-wrapper:fullscreen.hud .title-bar{top:0}div.ap-wrapper div.ap-player{text-align:left;display:inline-block;padding:0;position:relative;box-sizing:content-box;overflow:hidden;max-width:100%;border-radius:4px;font-size:15px;background-color:var(--term-color-background)}.ap-player{--term-color-foreground:#ffffff;--term-color-background:#000000;--term-color-0:var(--term-color-foreground);--term-color-1:var(--term-color-foreground);--term-color-2:var(--term-color-foreground);--term-color-3:var(--term-color-foreground);--term-color-4:var(--term-color-foreground);--term-color-5:var(--term-color-foreground);--term-color-6:var(--term-color-foreground);--term-color-7:var(--term-color-foreground);--term-color-8:var(--term-color-0);--term-color-9:var(--term-color-1);--term-color-10:var(--term-color-2);--term-color-11:var(--term-color-3);--term-color-12:var(--term-color-4);--term-color-13:var(--term-color-5);--term-color-14:var(--term-color-6);--term-color-15:var(--term-color-7)}div.ap-term{position:relative;font-family:var(--term-font-family);border-width:.75em;border-radius:0;border-style:solid;border-color:var(--term-color-background);box-sizing:content-box}div.ap-term canvas,div.ap-term svg.ap-term-symbols{position:absolute;inset:0;display:block;width:100%;height:100%}div.ap-term svg.ap-term-symbols{overflow:hidden;pointer-events:none}.ap-line span,div.ap-term svg.ap-term-symbols use{color:var(--term-color-foreground)}div.ap-term svg.ap-term-symbols:not(.ap-blink) .ap-blink{opacity:0}div.ap-term pre.ap-term-text{position:absolute;inset:0;box-sizing:content-box;overflow:hidden;padding:0;margin:0;display:block;white-space:pre;word-wrap:normal;word-break:normal;cursor:text;color:var(--term-color-foreground);outline:0;line-height:var(--term-line-height);font-family:inherit;font-size:inherit;font-variant-ligatures:none;border:0;border-radius:0;background-color:transparent!important}pre.ap-term-text .ap-line{display:block;width:100%;height:var(--term-line-height);position:absolute;top:calc(100%*var(--row)/var(--term-rows));letter-spacing:normal;overflow:hidden}pre.ap-term-text .ap-line span{position:absolute;left:calc(100%*var(--offset)/var(--term-cols));padding:0;display:inline-block;height:100%}pre.ap-term-text:not(.ap-blink) .ap-line .ap-blink{color:transparent;border-color:transparent}pre.ap-term-text .ap-bold{font-weight:700}pre.ap-term-text .ap-faint{opacity:.5}pre.ap-term-text .ap-underline{text-decoration:underline}pre.ap-term-text .ap-italic{font-style:italic}pre.ap-term-text .ap-strike{text-decoration:line-through}div.ap-player div.ap-control-bar{width:100%;height:32px;display:flex;justify-content:space-between;align-items:stretch;color:var(--term-color-foreground);box-sizing:content-box;line-height:1;position:absolute;bottom:0;left:0;opacity:0;transition:opacity .15s linear;user-select:none;border-top:2px solid color-mix(in oklab,var(--term-color-background) 80%,var(--term-color-foreground));z-index:30}div.ap-player div.ap-control-bar *{box-sizing:inherit}div.ap-control-bar svg.ap-icon path{fill:var(--term-color-foreground)}div.ap-control-bar span.ap-button{display:flex;flex:0 0 auto;cursor:pointer}div.ap-control-bar span.ap-playback-button{width:12px;height:12px;padding:10px;margin:0 0 0 2px}div.ap-control-bar span.ap-playback-button svg{height:12px;width:12px}div.ap-control-bar span.ap-timer{display:flex;flex:0 0 auto;min-width:50px;margin:0 10px;height:100%;text-align:center;font-size:13px;line-height:100%;cursor:default}div.ap-control-bar span.ap-timer span{font-family:var(--term-font-family);font-size:inherit;font-weight:600;margin:auto}div.ap-control-bar span.ap-timer .ap-time-remaining,div.ap-control-bar span.ap-timer:hover .ap-time-elapsed{display:none}div.ap-control-bar span.ap-timer:hover .ap-time-remaining{display:flex}div.ap-control-bar .ap-progressbar{display:block;flex:1 1 auto;height:100%;padding:0 10px}div.ap-control-bar .ap-progressbar .ap-bar{display:block;position:relative;cursor:default;height:100%;font-size:0}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter{display:block;position:absolute;top:15px;left:0;right:0;height:3px}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-empty{background-color:color-mix(in oklab,var(--term-color-foreground) 20%,var(--term-color-background))}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-full{width:100%;transform-origin:left center;background-color:var(--term-color-foreground);border-radius:3px}div.ap-control-bar.ap-seekable .ap-progressbar .ap-bar{cursor:pointer}div.ap-control-bar .ap-fullscreen-button{width:14px;height:14px;padding:9px;margin:0 2px 0 4px}div.ap-control-bar .ap-fullscreen-button svg{width:14px;height:14px}div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-on{display:inline}div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-off{display:none}div.ap-control-bar .ap-fullscreen-button .ap-tooltip,div.ap-control-bar .ap-kbd-button .ap-tooltip{right:5px;left:initial;transform:none}div.ap-control-bar .ap-kbd-button{height:14px;padding:9px;margin:0 0 0 4px}div.ap-control-bar .ap-kbd-button svg{width:26px;height:14px}div.ap-control-bar .ap-speaker-button{width:19px;padding:6px 9px;margin:0 0 0 4px;position:relative}div.ap-control-bar .ap-speaker-button svg{width:19px}div.ap-control-bar .ap-speaker-button .ap-tooltip{left:-50%;transform:none}div.ap-wrapper.ap-hud .ap-control-bar{opacity:1}div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-on{display:none}div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-off{display:inline}span.ap-progressbar span.ap-marker-container{display:block;top:0;bottom:0;width:21px;position:absolute;margin-left:-10px}span.ap-marker-container span.ap-marker{display:block;top:13px;bottom:12px;left:7px;right:7px;background-color:color-mix(in oklab,var(--term-color-foreground) 33%,var(--term-color-background));position:absolute;transition:top .1s,bottom .1s,left .1s,right .1s,background-color .1s;border-radius:50%}span.ap-marker-container span.ap-marker.ap-marker-past{background-color:var(--term-color-foreground)}span.ap-marker-container span.ap-marker:hover,span.ap-marker-container:hover span.ap-marker{background-color:var(--term-color-foreground);top:11px;bottom:10px;left:5px;right:5px}.ap-tooltip-container span.ap-tooltip{visibility:hidden;font-family:var(--term-font-family);font-weight:700;text-align:center;padding:0 .5em;border-radius:4px;position:absolute;z-index:1;white-space:nowrap;font-size:13px;line-height:2em;bottom:100%;left:50%;transform:translateX(-50%)}.ap-tooltip-container:hover span.ap-tooltip{visibility:visible}.ap-player .ap-overlay{z-index:10;background-repeat:no-repeat;background-position:center;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}.ap-player .ap-overlay-start{cursor:pointer}.ap-player .ap-overlay-start .ap-play-button{font-size:0;position:absolute;left:0;top:0;right:0;bottom:0;text-align:center;color:#fff;height:80px;max-height:66%;margin:auto}.ap-player .ap-overlay-start .ap-play-button div{height:100%}.ap-player .ap-overlay-start .ap-play-button div span{height:100%;display:block}.ap-player .ap-overlay-start .ap-play-button div span svg{height:100%;display:inline-block}.ap-player .ap-overlay-start .ap-play-button svg{filter:drop-shadow(0 0 5px rgba(0,0,0,.4))}.ap-player .ap-overlay-loading .ap-loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:10px solid;border-color:rgba(255,255,255,.3) rgba(255,255,255,.5) rgba(255,255,255,.7) #fff;border-color:color-mix(in srgb,var(--term-color-foreground) 30%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 50%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 70%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 100%,var(--term-color-background));box-sizing:border-box;animation:ap-loader-rotation 1s linear infinite}.ap-player .ap-overlay-help>div div,.ap-player .ap-overlay-info{background-color:var(--term-color-background)}.ap-player .ap-overlay-help>div div kbd,.ap-player .ap-overlay-info span,.ap-tooltip-container span.ap-tooltip{color:var(--term-color-background);background-color:var(--term-color-foreground)}.ap-player .ap-overlay-info span{font-family:var(--term-font-family);font-size:2em;font-weight:700;padding:.5em .75em;text-transform:uppercase}.ap-player .ap-overlay-help{background-color:rgba(0,0,0,.8);container-type:inline-size}.ap-player .ap-overlay-help>div{font-family:var(--term-font-family);max-width:85%;max-height:85%;font-size:18px;color:var(--term-color-foreground);box-sizing:border-box;margin-bottom:32px}.ap-player .ap-overlay-help>div div{padding:calc(min(4cqw,40px));font-size:calc(min(1.9cqw,18px));border:1px solid color-mix(in oklab,var(--term-color-background) 90%,var(--term-color-foreground));border-radius:6px}.ap-player .ap-overlay-help>div div p{font-weight:700;margin:0 0 2em}.ap-player .ap-overlay-help>div div ul{list-style:none;padding:0}.ap-player .ap-overlay-help>div div ul li{margin:0 0 .75em}.ap-player .ap-overlay-help>div div kbd{padding:.2em .5em;border-radius:.2em;font-family:inherit;font-size:.85em;border:0;margin:0}.ap-player .ap-overlay-error span{font-size:8em}.ap-player .slide-enter-active{transition:opacity .2s}.ap-player .slide-enter-active.ap-was-playing{transition:top .2s ease-out,opacity .2s}.ap-player .slide-exit-active{transition:top .2s ease-in,opacity .2s}.ap-player .slide-enter{top:-50%;opacity:0}.ap-player .slide-enter-to{top:0}.ap-player .slide-enter,.ap-player .slide-enter-to,.ap-player .slide-exit,.ap-player .slide-exit-to{bottom:auto;height:100%}.ap-player .slide-exit{top:0}.ap-player .slide-exit-to{top:-50%;opacity:0}.asciinema-player-theme-asciinema{--term-color-foreground:#cccccc;--term-color-background:#121314;--term-color-0:#000000;--term-color-1:#dd3c69;--term-color-2:#4ebf22;--term-color-3:#ddaf3c;--term-color-4:#26b0d7;--term-color-5:#b954e1;--term-color-6:#54e1b9;--term-color-7:#d9d9d9;--term-color-8:#4d4d4d;--term-color-9:#dd3c69;--term-color-10:#4ebf22;--term-color-11:#ddaf3c;--term-color-12:#26b0d7;--term-color-13:#b954e1;--term-color-14:#54e1b9;--term-color-15:#ffffff}.asciinema-player-theme-dracula{--term-color-foreground:#f8f8f2;--term-color-background:#282a36;--term-color-0:#21222c;--term-color-1:#ff5555;--term-color-2:#50fa7b;--term-color-3:#f1fa8c;--term-color-4:#bd93f9;--term-color-5:#ff79c6;--term-color-6:#8be9fd;--term-color-7:#f8f8f2;--term-color-8:#6272a4;--term-color-9:#ff6e6e;--term-color-10:#69ff94;--term-color-11:#ffffa5;--term-color-12:#d6acff;--term-color-13:#ff92df;--term-color-14:#a4ffff;--term-color-15:#ffffff}.asciinema-player-theme-monokai{--term-color-foreground:#f8f8f2;--term-color-background:#272822;--term-color-0:#272822;--term-color-1:#f92672;--term-color-2:#a6e22e;--term-color-3:#f4bf75;--term-color-4:#66d9ef;--term-color-5:#ae81ff;--term-color-6:#a1efe4;--term-color-7:#f8f8f2;--term-color-8:#75715e;--term-color-15:#f9f8f5}.asciinema-player-theme-nord{--term-color-foreground:#eceff4;--term-color-background:#2e3440;--term-color-0:#3b4252;--term-color-1:#bf616a;--term-color-2:#a3be8c;--term-color-3:#ebcb8b;--term-color-4:#81a1c1;--term-color-5:#b48ead;--term-color-6:#88c0d0;--term-color-7:#eceff4}.asciinema-player-theme-seti{--term-color-foreground:#cacecd;--term-color-background:#111213;--term-color-0:#323232;--term-color-1:#c22832;--term-color-2:#8ec43d;--term-color-3:#e0c64f;--term-color-4:#43a5d5;--term-color-5:#8b57b5;--term-color-6:#8ec43d;--term-color-7:#eeeeee;--term-color-15:#ffffff}.asciinema-player-theme-solarized-dark,.asciinema-player-theme-solarized-light{--term-color-0:#073642;--term-color-1:#dc322f;--term-color-2:#859900;--term-color-3:#b58900;--term-color-4:#268bd2;--term-color-5:#d33682;--term-color-6:#2aa198;--term-color-7:#eee8d5;--term-color-8:#002b36;--term-color-9:#cb4b16;--term-color-10:#586e75;--term-color-12:#839496;--term-color-13:#6c71c4;--term-color-14:#93a1a1;--term-color-15:#fdf6e3}.asciinema-player-theme-solarized-dark{--term-color-foreground:#839496;--term-color-background:#002b36;--term-color-11:#657b83}.asciinema-player-theme-solarized-light{--term-color-foreground:#657b83;--term-color-background:#fdf6e3;--term-color-11:#657c83}.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-fill{fill:var(--term-color-1)}.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-stroke{stroke:var(--term-color-1)}.asciinema-player-theme-tango{--term-color-foreground:#cccccc;--term-color-background:#121314;--term-color-0:#000000;--term-color-1:#cc0000;--term-color-2:#4e9a06;--term-color-3:#c4a000;--term-color-4:#3465a4;--term-color-5:#75507b;--term-color-6:#06989a;--term-color-7:#d3d7cf;--term-color-8:#555753;--term-color-9:#ef2929;--term-color-10:#8ae234;--term-color-11:#fce94f;--term-color-12:#729fcf;--term-color-13:#ad7fa8;--term-color-14:#34e2e2;--term-color-15:#eeeeec}.asciinema-player-theme-gruvbox-dark{--term-color-foreground:#fbf1c7;--term-color-background:#282828;--term-color-0:#282828;--term-color-1:#cc241d;--term-color-2:#98971a;--term-color-3:#d79921;--term-color-4:#458588;--term-color-5:#b16286;--term-color-6:#689d6a;--term-color-7:#a89984;--term-color-8:#7c6f65;--term-color-9:#fb4934;--term-color-10:#b8bb26;--term-color-11:#fabd2f;--term-color-12:#83a598;--term-color-13:#d3869b;--term-color-14:#8ec07c;--term-color-15:#fbf1c7}"}],"page":{"pagePath":"api/access-tokens/issue","slug":"/api/access-tokens/issue","pageMetadata":{"openapi":"post /access-tokens","sidebarTitle":"issue","description":"Issue a scoped S2 access token for specific resources and operations.","title":"Issue a new access token.","href":"/api/access-tokens/issue"},"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: \"Issue a scoped S2 access token for specific resources and operations.\"\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`,..._provideComponents(),...props.components},{Card,Note}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Card,{title:`Access token concepts`,icon:`key`,href:`/concepts/access-tokens`,children:_jsx(_components.p,{children:`Review token scopes, permissions, expiry, and revocation behavior.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Issued tokens use the scope in this request. Scope fields and `,_jsx(_components.code,{children:`auto_prefix_streams`}),`\nare not inherited from the caller, and requested access must be no broader than\nthe caller’s effective permissions. See the `,_jsx(_components.a,{href:`/concepts/access-tokens#narrowing`,children:`token issuance scope\nrules`}),`.`]})})]})}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":{"openapi":"post /access-tokens","sidebarTitle":"issue","description":"Issue a scoped S2 access token for specific resources and operations.","title":"Issue a new access token.","href":"/api/access-tokens/issue"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/streamstore/00ba98d0ea337170/asciinema-init.js","/docs/_mintlify/custom/streamstore/9345475b878fd043/asciinema-player.min.js","/docs/_mintlify/custom/streamstore/cf00df61fe9b4388/copy-page-markdown.js"],"openApiReferenceData":{"operation":{"tags":["access-tokens"],"summary":"Issue a new access token.","operationId":"issue_access_token","requestBody":"dc7ac3bb-ecaf-46d7-96b7-4b8352cce4cc","responses":{"201":"1de7b450-3ff3-4189-9167-7c9c22da322e","400":"af668c82-7d92-4f94-8c61-0e069a6acd1d","403":"cbd72437-28d7-47a2-8654-33cc91e0f2fb","408":"efafc8ae-0432-444b-8d9e-8de34e2e2066","409":"4338cdff-7a65-41b1-bc7d-352c0167383f"},"method":"post","type":"path","servers":["667f124e-b55e-4ce9-9484-35dc901a897f"],"security":["e702926f-6fd7-494a-af77-5be9a0e0a9dc"],"path":"/access-tokens","baseUrlOptions":["https://a.s2.dev/v1"],"title":"Issue a new access token.","description":"Issue a scoped S2 access token for specific resources and operations.","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","scope"],"properties":{"id":{"type":"string","maxLength":96,"minLength":1,"description":"Access token ID.\nIt must be unique to the account and between 1 and 96 bytes in length, and must not\ncontain NUL bytes.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"scope":{"type":"object","properties":{"access_tokens":{"oneOf":[{"type":"null","uniqueKey":"scope.access_tokens.oneOf.0","typeLabel":"null"},{"type":"object","title":"exact","description":"Token IDs allowed.","required":["exact"],"properties":{"exact":{"type":"string","description":"Match only the resource with this exact name.\nUse an empty string to match no resources.","isRequired":true,"uniqueKey":"scope.access_tokens.oneOf.1.exact","typeLabel":"string"}},"uniqueKey":"scope.access_tokens.oneOf.1","typeLabel":"exact · object"},{"type":"object","title":"prefix","description":"Token IDs allowed.","required":["prefix"],"properties":{"prefix":{"type":"string","description":"Match all resources that start with this prefix.\nUse an empty string to match all resource.","isRequired":true,"uniqueKey":"scope.access_tokens.oneOf.2.prefix","typeLabel":"string"}},"uniqueKey":"scope.access_tokens.oneOf.2","typeLabel":"prefix · object"}],"uniqueKey":"scope.access_tokens","typeLabel":"null | exact · object | prefix · object"},"basins":{"oneOf":[{"type":"null","uniqueKey":"scope.basins.oneOf.0","typeLabel":"null"},{"type":"object","title":"exact","description":"Basin names allowed.","required":["exact"],"properties":{"exact":{"type":"string","description":"Match only the resource with this exact name.\nUse an empty string to match no resources.","isRequired":true,"uniqueKey":"scope.basins.oneOf.1.exact","typeLabel":"string"}},"uniqueKey":"scope.basins.oneOf.1","typeLabel":"exact · object"},{"type":"object","title":"prefix","description":"Basin names allowed.","required":["prefix"],"properties":{"prefix":{"type":"string","description":"Match all resources that start with this prefix.\nUse an empty string to match all resource.","isRequired":true,"uniqueKey":"scope.basins.oneOf.2.prefix","typeLabel":"string"}},"uniqueKey":"scope.basins.oneOf.2","typeLabel":"prefix · object"}],"uniqueKey":"scope.basins","typeLabel":"null | exact · object | prefix · object"},"op_groups":{"oneOf":[{"type":"null","uniqueKey":"scope.op_groups.oneOf.0","typeLabel":"null"},{"type":"object","description":"Access permissions at operation group level.","properties":{"account":{"oneOf":[{"type":"null","uniqueKey":"scope.op_groups.oneOf.1.account.oneOf.0","typeLabel":"null"},{"type":"object","description":"Account-level access permissions.","properties":{"read":{"type":"boolean","description":"Read permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.account.oneOf.1.read","typeLabel":"boolean"},"write":{"type":"boolean","description":"Write permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.account.oneOf.1.write","typeLabel":"boolean"}},"uniqueKey":"scope.op_groups.oneOf.1.account.oneOf.1","typeLabel":"object"}],"uniqueKey":"scope.op_groups.oneOf.1.account","typeLabel":"null | object"},"basin":{"oneOf":[{"type":"null","uniqueKey":"scope.op_groups.oneOf.1.basin.oneOf.0","typeLabel":"null"},{"type":"object","description":"Basin-level access permissions.","properties":{"read":{"type":"boolean","description":"Read permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.basin.oneOf.1.read","typeLabel":"boolean"},"write":{"type":"boolean","description":"Write permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.basin.oneOf.1.write","typeLabel":"boolean"}},"uniqueKey":"scope.op_groups.oneOf.1.basin.oneOf.1","typeLabel":"object"}],"uniqueKey":"scope.op_groups.oneOf.1.basin","typeLabel":"null | object"},"stream":{"oneOf":[{"type":"null","uniqueKey":"scope.op_groups.oneOf.1.stream.oneOf.0","typeLabel":"null"},{"type":"object","description":"Stream-level access permissions.","properties":{"read":{"type":"boolean","description":"Read permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.stream.oneOf.1.read","typeLabel":"boolean"},"write":{"type":"boolean","description":"Write permission.","default":false,"uniqueKey":"scope.op_groups.oneOf.1.stream.oneOf.1.write","typeLabel":"boolean"}},"uniqueKey":"scope.op_groups.oneOf.1.stream.oneOf.1","typeLabel":"object"}],"uniqueKey":"scope.op_groups.oneOf.1.stream","typeLabel":"null | object"}},"uniqueKey":"scope.op_groups.oneOf.1","typeLabel":"object"}],"uniqueKey":"scope.op_groups","typeLabel":"null | object"},"ops":{"oneOf":[{"type":"array","items":{"type":"string","enum":["list-basins","create-basin","delete-basin","reconfigure-basin","get-basin-config","issue-access-token","revoke-access-token","list-access-tokens","list-streams","create-stream","delete-stream","get-stream-config","reconfigure-stream","check-tail","append","read","trim","fence","account-metrics","basin-metrics","stream-metrics","list-locations","get-default-location","set-default-location"],"uniqueKey":"scope.ops.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Operations allowed for the token.\nA union of allowed operations and groups is used as an effective set of allowed operations.","uniqueKey":"scope.ops.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["list-basins","create-basin","delete-basin","reconfigure-basin","get-basin-config","issue-access-token","revoke-access-token","list-access-tokens","list-streams","create-stream","delete-stream","get-stream-config","reconfigure-stream","check-tail","append","read","trim","fence","account-metrics","basin-metrics","stream-metrics","list-locations","get-default-location","set-default-location"]},"description":"Operations allowed for the token.\nA union of allowed operations and groups is used as an effective set of allowed operations.","uniqueKey":"scope.ops.oneOf.1","typeLabel":"null"}],"uniqueKey":"scope.ops","typeLabel":"enum\u003cstring>[] | null"},"streams":{"oneOf":[{"type":"null","uniqueKey":"scope.streams.oneOf.0","typeLabel":"null"},{"type":"object","title":"exact","description":"Stream names allowed.","required":["exact"],"properties":{"exact":{"type":"string","description":"Match only the resource with this exact name.\nUse an empty string to match no resources.","isRequired":true,"uniqueKey":"scope.streams.oneOf.1.exact","typeLabel":"string"}},"uniqueKey":"scope.streams.oneOf.1","typeLabel":"exact · object"},{"type":"object","title":"prefix","description":"Stream names allowed.","required":["prefix"],"properties":{"prefix":{"type":"string","description":"Match all resources that start with this prefix.\nUse an empty string to match all resource.","isRequired":true,"uniqueKey":"scope.streams.oneOf.2.prefix","typeLabel":"string"}},"uniqueKey":"scope.streams.oneOf.2","typeLabel":"prefix · object"}],"uniqueKey":"scope.streams","typeLabel":"null | exact · object | prefix · object"}},"description":"Access token scope.","isRequired":true,"uniqueKey":"scope","typeLabel":"object"},"auto_prefix_streams":{"type":"boolean","description":"Namespace streams based on the configured stream-level scope, which must be a prefix.\nStream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.","default":false,"uniqueKey":"auto_prefix_streams","typeLabel":"boolean"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","description":"Expiration time in RFC 3339 format.\nIf not set, the expiration will be set to that of the requestor's token.","uniqueKey":"expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Expiration time in RFC 3339 format.\nIf not set, the expiration will be set to that of the requestor's token.","uniqueKey":"expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","scope":{"access_tokens":{"exact":"\u003cstring>"},"basins":{"exact":"\u003cstring>"},"op_groups":{"account":{"read":false,"write":false},"basin":{"read":false,"write":false},"stream":{"read":false,"write":false}},"ops":[],"streams":{"exact":"\u003cstring>"}},"auto_prefix_streams":false,"expires_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"1de7b450-3ff3-4189-9167-7c9c22da322e":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["access_token"],"properties":{"access_token":{"type":"string","description":"Created access token.","isRequired":true,"uniqueKey":"access_token","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"access_token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"af668c82-7d92-4f94-8c61-0e069a6acd1d":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cbd72437-28d7-47a2-8654-33cc91e0f2fb":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"efafc8ae-0432-444b-8d9e-8de34e2e2066":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4338cdff-7a65-41b1-bc7d-352c0167383f":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e702926f-6fd7-494a-af77-5be9a0e0a9dc":{"access_token":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your access token.","scopes":[],"schemeName":"access_token"}}},"servers":{"667f124e-b55e-4ce9-9484-35dc901a897f":{"url":"https://a.s2.dev/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your access token.","scopes":[],"schemeName":"access_token"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your access token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"access_token","name":"Authorization"}],"title":"access_token"}]},"originalFileLocation":"specs-denorm/v1/openapi.json"},"subdomain":"streamstore","siteName":"S2","title":"Issue a new access token. - S2","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-27T01:32:04.846Z","originalFileLocation":"api/access-tokens/issue.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=\"Issue a scoped S2 access token for specific resources and operations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"S2\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_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=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Issue a new access token. - S2\">\u003cmeta data-mint-head property=\"og:description\" content=\"Issue a scoped S2 access token for specific resources and operations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"S2\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://s2.dev/docs/api/access-tokens/issue\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streamstore.mintlify.app/_mintlify/api/og/v2?division=access+tokens\u0026amp;title=Issue+a+new+access+token.\u0026amp;description=Issue+a+scoped+S2+access+token+for+specific+resources+and+operations.\u0026amp;theme=0bf2fcc0d6937ccab2e1eca2\u0026amp;signature=bb92cf4e3e2720ee3ff3cd1a34088ff6c4b4e0ac25715f749260d7d08c03d41b\">\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=\"Issue a new access token. - S2\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Issue a scoped S2 access token for specific resources and operations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streamstore.mintlify.app/_mintlify/api/og/v2?division=access+tokens\u0026amp;title=Issue+a+new+access+token.\u0026amp;description=Issue+a+scoped+S2+access+token+for+specific+resources+and+operations.\u0026amp;theme=0bf2fcc0d6937ccab2e1eca2\u0026amp;signature=bb92cf4e3e2720ee3ff3cd1a34088ff6c4b4e0ac25715f749260d7d08c03d41b\">\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=\"/docs/mintlify-assets/_mintlify/favicons/streamstore/A9aRpo3I3-CnbGBz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"S2\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#252525\">\u003clink data-mint-head rel=\"canonical\" href=\"https://s2.dev/docs/api/access-tokens/issue\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api/access-tokens/issue.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://s2.dev/#organization\",\"name\":\"S2\",\"url\":\"https://s2.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streamstore/2KVWF55FbBFAHG9D/logo/s2-black.png?fit=max\u0026auto=format\u0026n=2KVWF55FbBFAHG9D\u0026q=85\u0026s=a21a60dc6c4cc961bb234a8eba956217\"}},{\"@type\":\"WebSite\",\"@id\":\"https://s2.dev/docs#website\",\"name\":\"S2\",\"url\":\"https://s2.dev/docs\",\"publisher\":{\"@id\":\"https://s2.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://s2.dev/docs/api/access-tokens/issue#webpage\",\"url\":\"https://s2.dev/docs/api/access-tokens/issue\",\"name\":\"Issue a new access token.\",\"description\":\"Issue a scoped S2 access token for specific resources and operations.\",\"dateModified\":\"2026-07-27T01:32:04.846Z\",\"isPartOf\":{\"@id\":\"https://s2.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://s2.dev/docs/api/access-tokens/issue#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://s2.dev/docs/api/access-tokens/issue#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"access tokens\",\"item\":\"https://s2.dev/docs/api/access-tokens/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Issue a new access token.\",\"item\":\"https://s2.dev/docs/api/access-tokens/issue\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://s2.dev/docs/api/access-tokens/issue#apireference\",\"headline\":\"Issue a new access token.\",\"name\":\"Issue a new access token.\",\"description\":\"Issue a scoped S2 access token for specific resources and operations.\",\"url\":\"https://s2.dev/docs/api/access-tokens/issue\",\"mainEntityOfPage\":{\"@id\":\"https://s2.dev/docs/api/access-tokens/issue#webpage\"},\"dateModified\":\"2026-07-27T01:32:04.846Z\",\"publisher\":{\"@id\":\"https://s2.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://s2.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"S2\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"S2","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://s2.dev/blog"},{"anchor":"Talk to us","icon":"comments","href":"https://s2.dev/contact"}]},"tabs":[{"tab":"Start","pages":[{"title":"Start","href":"/intro"}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts/records"}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/platform/cells"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdk/languages"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"API","pages":[{"title":"Protocol","icon":"link","href":"/api/protocol"},{"title":"Endpoints","icon":"globe-pointer","href":"/api/endpoints"},{"title":"Error Codes","icon":"circle-exclamation","href":"/api/error-codes"},{"group":"records","pages":[{"openapi":"post /streams/{stream}/records","sidebarTitle":"append","title":"Append records.","href":"/api/records/append"},{"openapi":"get /streams/{stream}/records","sidebarTitle":"read","title":"Read records.","href":"/api/records/read"},{"openapi":"get /streams/{stream}/records/tail","sidebarTitle":"check tail","title":"Check the tail.","href":"/api/records/check-tail"}]},{"group":"access tokens","pages":[{"openapi":"get /access-tokens","sidebarTitle":"list","description":"List S2 access tokens with prefix filtering and cursor-based pagination.","title":"List access tokens.","href":"/api/access-tokens/list"},{"openapi":"post /access-tokens","sidebarTitle":"issue","title":"Issue a new access token.","href":"/api/access-tokens/issue"},{"openapi":"delete /access-tokens/{id}","sidebarTitle":"revoke","description":"Revoke an S2 access token by ID.","title":"Revoke an access token.","href":"/api/access-tokens/revoke"}]},{"group":"streams","pages":[{"openapi":"get /streams","sidebarTitle":"list","title":"List streams.","href":"/api/streams/list"},{"openapi":"post /streams","sidebarTitle":"create","title":"Create a stream.","href":"/api/streams/create"},{"openapi":"put /streams/{stream}","sidebarTitle":"ensure","title":"Ensure a stream.","href":"/api/streams/ensure"},{"openapi":"get /streams/{stream}","sidebarTitle":"get config","title":"Get stream configuration.","href":"/api/streams/get-config"},{"openapi":"patch /streams/{stream}","sidebarTitle":"reconfigure","title":"Reconfigure a stream.","href":"/api/streams/reconfigure"},{"openapi":"delete /streams/{stream}","sidebarTitle":"delete","title":"Delete a stream.","href":"/api/streams/delete"}]},{"group":"basins","pages":[{"openapi":"get /basins","sidebarTitle":"list","title":"List basins.","href":"/api/basins/list"},{"openapi":"post /basins","sidebarTitle":"create","title":"Create a basin.","href":"/api/basins/create"},{"openapi":"put /basins/{basin}","sidebarTitle":"ensure","title":"Ensure a basin.","href":"/api/basins/ensure"},{"openapi":"get /basins/{basin}","sidebarTitle":"get config","title":"Get basin configuration.","href":"/api/basins/get-config"},{"openapi":"patch /basins/{basin}","sidebarTitle":"reconfigure","title":"Reconfigure a basin.","href":"/api/basins/reconfigure"},{"openapi":"delete /basins/{basin}","sidebarTitle":"delete","title":"Delete a basin.","href":"/api/basins/delete"}]},{"group":"metrics","pages":[{"openapi":"get /metrics","sidebarTitle":"account-level","title":"Account-level metrics.","href":"/api/metrics/account"},{"openapi":"get /metrics/{basin}","sidebarTitle":"basin-level","title":"Basin-level metrics.","href":"/api/metrics/basin"},{"openapi":"get /metrics/{basin}/{stream}","sidebarTitle":"stream-level","title":"Stream-level metrics.","href":"/api/metrics/stream"}]},{"group":"locations","pages":[{"openapi":"get /locations","sidebarTitle":"list","title":"List locations.","href":"/api/locations/list"},{"openapi":"get /locations/default","sidebarTitle":"get default","title":"Get the default location.","href":"/api/locations/get-default"},{"openapi":"put /locations/default","sidebarTitle":"set default","title":"Set the default location.","href":"/api/locations/set-default"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Updates","pages":[{"title":"Updates","href":"/updates"}]}]},"title":"Issue a new access token. - S2","buildId":"dpl_AUojGTPodKNPTVaxVPcxnNvkSVqo","deploymentId":"dpl_AUojGTPodKNPTVaxVPcxnNvkSVqo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D2GYGXhJ.js","utils-BFd71lo2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-i162M7Za.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-oUw0la6W.js","snippetPresets-DtIWL37f.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BCMBbEQM.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DC4RgS91.js","shallow-CgVeLRFv.js","getApiPlaygroundDisplay-D5biMY5x.js","CodeSnippet-BFsbT-Fu.js","CodeSnippets-zLLOIece.js","Page-Ddn8iQDL.js","getPastedJson-BrHW4jRt.js","icon-CkMCp-Tk.js","MethodPill-CCcSM-Ep.js","DuplicateIcon-4tBrFI-V.js","createIcon-YbZxtfvX.js","DynamicMarkdown-BQC1aHST.js","SectionHeading-Dyh8yRs0.js","axios-vUo_bRtp.js","Markdown-DnRxVfNy.js","clsx-BHwt7gjg.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI1QhstW.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ctpizp2W.js"]}