Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.
FS('getSession') returns a clickable URL to the current session recording. Use it to link FullStory sessions back into other tools — analytics, error tracking, customer support — so a teammate can jump from their tool of choice straight to the matching replay.
const url = FS('getSession', { format: 'url.now' })// e.g. https://app.fullstory.com/ui/<orgId>/session/<sessionId>:now
Formats
format
Returns
Use for
'url.now'
URL with a timestamp marker that opens the session at the current moment
Linking from analytics tools at the moment a specific action happened.
'url'
URL to the start of the session
Linking from user-level metadata that should always open from the top.
(omitted)
URL to the start of the session
Same as 'url'.
When it returns a value
FS('getSession') returns null until FullStory has started a session. After init() resolves and the first capture event fires, the URL is available.
In React, read it inside an effect after a tick or two. The safest pattern is to call it just before you push it to another tool, inside the same effect that handles identification:
If the URL isn’t ready yet (rare, but possible if the snippet hasn’t bootstrapped), retry on the next event tick or skip silently — the linkage is best-effort.
Stability
The URL changes:
Across sessions — every new visit gets a new session id.
When you re-identify — calling setIdentity with a different uid starts a new session.
Re-attach the URL to other tools whenever you re-identify.
Identification — the lifecycle hook to read the URL from.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Subtext","colors":{"primary":"#f5447b","light":"#f87ca3","dark":"#f5447b"},"logo":{"light":"https://mintcdn.com/subtext-d7d5eca1/1gs3LpC3WUIh8bo9/images/logo-light.png?fit=max\u0026auto=format\u0026n=1gs3LpC3WUIh8bo9\u0026q=85\u0026s=b488fd2892a34b9c36aceab033835884","dark":"https://mintcdn.com/subtext-d7d5eca1/1gs3LpC3WUIh8bo9/images/logo-dark.png?fit=max\u0026auto=format\u0026n=1gs3LpC3WUIh8bo9\u0026q=85\u0026s=1131c2fac67a51622cd90635c8b753d2","href":"https://subtext.fullstory.com"},"favicon":{"light":"https://mintcdn.com/subtext-d7d5eca1/1gs3LpC3WUIh8bo9/favicon.png?fit=max\u0026auto=format\u0026n=1gs3LpC3WUIh8bo9\u0026q=85\u0026s=9024c3ef6e2032fba159816ae3b3c945","dark":"https://mintcdn.com/subtext-d7d5eca1/1gs3LpC3WUIh8bo9/favicon-dark.png?fit=max\u0026auto=format\u0026n=1gs3LpC3WUIh8bo9\u0026q=85\u0026s=0e0811fdba579c1fa28d11aef7089502"},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://app.fullstory.com/subtext/signup"}},"footer":{"socials":{"x":"https://x.com/subtextdev","github":"https://github.com/fullstorydev/subtext","linkedin":"https://www.linkedin.com/showcase/subtextdev"},"links":[{"header":"Product","items":[{"label":"Home","href":"https://subtext.fullstory.com"},{"label":"Playground","href":"https://subtext.fullstory.com/playground"},{"label":"Blog","href":"https://subtext.fullstory.com/blog"}]},{"header":"Company","items":[{"label":"Privacy","href":"https://www.fullstory.com/legal/privacy-policy"},{"label":"Terms","href":"https://subtext.fullstory.com/tos"}]}]},"fonts":{"family":"Sora"},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"subtext-d7d5eca1","hasAudioNarration":false,"actualSubdomain":"subtext-d7d5eca1","customDomains":["subtext.fullstory.com"],"gitSource":{"type":"github","owner":"fullstorydev","repo":"subtext-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10f66f9ffae5051c419a48"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa84516a7294f9e378954a2","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Docs","count":46},{"language":"default","tag":"Integrations","count":23},{"language":"default","tag":"Verify (Beta)","count":8},{"language":"default","tag":"Install by Framework","count":5},{"language":"default","tag":"Tools Reference","count":5},{"language":"default","tag":"API reference","count":4},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Recipes","count":4},{"language":"default","tag":"Privacy","count":3},{"language":"default","tag":"Session Review","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#assistant-entry,#assistant-entry-mobile{display:none}"}]}
{"page":{"pagePath":"api/get-session","slug":"/api/get-session","pageMetadata":{"title":"Get a link to the current session recording","sidebarTitle":"Get session URL","description":"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.","href":"/api/get-session"},"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: \"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\"\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`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`FS('getSession')`}),` returns a clickable URL to the current session recording. Use it to link FullStory sessions back into other tools — analytics, error tracking, customer support — so a teammate can jump from their tool of choice straight to the matching replay.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_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:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'getSession'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`format:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'url.now'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// e.g. https://app.fullstory.com/ui/\u003corgId>/session/\u003csessionId>:now`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`formats`,children:`Formats`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`format`})}),_jsx(_components.th,{children:`Returns`}),_jsx(_components.th,{children:`Use for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'url.now'`})}),_jsx(_components.td,{children:`URL with a timestamp marker that opens the session at the current moment`}),_jsx(_components.td,{children:`Linking from analytics tools at the moment a specific action happened.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'url'`})}),_jsx(_components.td,{children:`URL to the start of the session`}),_jsx(_components.td,{children:`Linking from user-level metadata that should always open from the top.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.em,{children:`(omitted)`})}),_jsx(_components.td,{children:`URL to the start of the session`}),_jsxs(_components.td,{children:[`Same as `,_jsx(_components.code,{children:`'url'`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`when-it-returns-a-value`,children:`When it returns a value`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`FS('getSession')`}),` returns `,_jsx(_components.code,{children:`null`}),` until FullStory has started a session. After `,_jsx(_components.code,{children:`init()`}),` resolves and the first capture event fires, the URL is available.`]})}),`\n`,_jsx(_components.p,{children:`In React, read it inside an effect after a tick or two. The safest pattern is to call it just before you push it to another tool, inside the same effect that handles identification:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`useEffect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#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:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'setIdentity'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uid:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`properties:`}),_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\":`#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:` subtextUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'getSession'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`format:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'url.now'`}),_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:`subtextUrl`}),_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:` posthog`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`identify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtext_url:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtextUrl`}),_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\":`#D4D4D4`},children:`}, [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If the URL isn’t ready yet (rare, but possible if the snippet hasn’t bootstrapped), retry on the next event tick or skip silently — the linkage is best-effort.`}),`\n`,_jsx(Heading,{level:`2`,id:`stability`,children:`Stability`}),`\n`,_jsx(_components.p,{children:`The URL changes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Across sessions — every new visit gets a new session id.`}),`\n`,_jsxs(_components.li,{children:[`When you re-identify — calling `,_jsx(_components.code,{children:`setIdentity`}),` with a different `,_jsx(_components.code,{children:`uid`}),` starts a new session.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Re-attach the URL to other tools whenever you re-identify.`})}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Analytics tool linkage`}),` — concrete examples for PostHog, Segment, Amplitude, Mixpanel.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api/identification`,children:`Identification`}),` — the lifecycle hook to read the URL from.`]}),`\n`]})]})}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":"Get a link to the current session recording","sidebarTitle":"Get session URL","description":"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.","href":"/api/get-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Formats","slug":"formats","depth":2,"children":[]},{"title":"When it returns a value","slug":"when-it-returns-a-value","depth":2,"children":[]},{"title":"Stability","slug":"stability","depth":2,"children":[]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/subtext-d7d5eca1/80c624cad0922853/subtext-capture.js"],"subdomain":"subtext-d7d5eca1","siteName":"Subtext","title":"Get a link to the current session recording - Subtext","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-15T19:14:20.990Z","originalFileLocation":"api/get-session.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=\"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Subtext\">\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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a link to the current session recording - Subtext\">\u003cmeta data-mint-head property=\"og:description\" content=\"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Subtext\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://subtext.fullstory.com/docs/api/get-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://subtext-d7d5eca1.mintlify.site/docs/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+a+link+to+the+current+session+recording\u0026amp;description=Return+a+clickable+URL+to+the+current+session+recording+so+a+teammate+can+jump+from+another+tool+straight+to+the+matching+replay.\u0026amp;theme=27938e22915c6efe28d6f40e\u0026amp;signature=9884185da76f90180a962637bd247621cc8a9b95d68d10bffb62b8eb61313644\">\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=\"Get a link to the current session recording - Subtext\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://subtext-d7d5eca1.mintlify.site/docs/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+a+link+to+the+current+session+recording\u0026amp;description=Return+a+clickable+URL+to+the+current+session+recording+so+a+teammate+can+jump+from+another+tool+straight+to+the+matching+replay.\u0026amp;theme=27938e22915c6efe28d6f40e\u0026amp;signature=9884185da76f90180a962637bd247621cc8a9b95d68d10bffb62b8eb61313644\">\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/subtext-d7d5eca1/XgBioRa9qGArLPV3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Subtext\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#f5447b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://subtext.fullstory.com/docs/api/get-session\">\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/get-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://subtext.fullstory.com/#organization\",\"name\":\"Subtext\",\"url\":\"https://subtext.fullstory.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/subtext-d7d5eca1/1gs3LpC3WUIh8bo9/images/logo-light.png?fit=max\u0026auto=format\u0026n=1gs3LpC3WUIh8bo9\u0026q=85\u0026s=b488fd2892a34b9c36aceab033835884\"}},{\"@type\":\"WebSite\",\"@id\":\"https://subtext.fullstory.com/docs#website\",\"name\":\"Subtext\",\"url\":\"https://subtext.fullstory.com/docs\",\"publisher\":{\"@id\":\"https://subtext.fullstory.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://subtext.fullstory.com/docs/api/get-session#webpage\",\"url\":\"https://subtext.fullstory.com/docs/api/get-session\",\"name\":\"Get a link to the current session recording\",\"description\":\"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\",\"dateModified\":\"2026-07-15T19:14:20.990Z\",\"isPartOf\":{\"@id\":\"https://subtext.fullstory.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://subtext.fullstory.com/docs/api/get-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://subtext.fullstory.com/docs/api/get-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Subtext\",\"item\":\"https://subtext.fullstory.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a link to the current session recording\",\"item\":\"https://subtext.fullstory.com/docs/api/get-session\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://subtext.fullstory.com/docs/api/get-session#article\",\"headline\":\"Get a link to the current session recording\",\"name\":\"Get a link to the current session recording\",\"description\":\"Return a clickable URL to the current session recording so a teammate can jump from another tool straight to the matching replay.\",\"url\":\"https://subtext.fullstory.com/docs/api/get-session\",\"mainEntityOfPage\":{\"@id\":\"https://subtext.fullstory.com/docs/api/get-session#webpage\"},\"dateModified\":\"2026-07-15T19:14:20.990Z\",\"publisher\":{\"@id\":\"https://subtext.fullstory.com/#organization\"},\"isPartOf\":{\"@id\":\"https://subtext.fullstory.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Subtext\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Subtext\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api/get-session.md","siteName":"Subtext","nav":{"global":null,"tabs":[{"tab":"Docs","groups":[{"group":"Get Started","pages":[{"title":"Subtext: Session Replay and Devtools Built for AI Agents","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Subtext Quickstart: Set Up Session Replay for AI Agents","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Subtext Installation: Snippet and MCP Server Overview","sidebarTitle":"Overview","href":"/install/overview"},{"title":"Subtext Capture Snippet: What It Is and How It Works","sidebarTitle":"Snippet","href":"/install/snippet"}]},{"group":"Install by Framework","pages":[{"title":"Install Subtext in a Next.js App Router Application","sidebarTitle":"Next.js App Router","href":"/install/next-app-router"},{"title":"Install the Subtext Snippet in Your React Application","sidebarTitle":"React","href":"/install/react"},{"title":"Install the Subtext Snippet in Your Vite Application","sidebarTitle":"Vite","href":"/install/vite"},{"title":"Install the Subtext Snippet in Your Remix Application","sidebarTitle":"Remix","href":"/install/remix"},{"title":"Manually Install and Configure Subtext Step by Step","sidebarTitle":"Manual Install","href":"/install/manual"}]},{"group":"Session Review","pages":[{"title":"Session Review: AI Agent Debugging from Real Sessions","sidebarTitle":"Overview","href":"/session-review/overview"},{"title":"Subtext Session Review: Complete MCP Tools Reference","sidebarTitle":"Tools Reference","href":"/session-review/tools-reference"},{"title":"Subtext Skills: Agent Workflows for Session Review","sidebarTitle":"Skills","href":"/session-review/skills"}]},{"group":"Privacy","pages":[{"title":"Privacy and PII Governance for Agent Sessions in Subtext","sidebarTitle":"Overview","href":"/privacy/overview"},{"title":"Subtext Privacy MCP Tools: Complete Reference Guide","sidebarTitle":"Tools Reference","href":"/privacy/tools-reference"},{"title":"Tagging Sensitive Elements for Masking and Exclusion","sidebarTitle":"Sensitive elements","href":"/privacy/sensitive-elements"}]},{"group":"Integrations","pages":[{"title":"Integrations: Jump from Your Tools into the Session","sidebarTitle":"Overview","href":"/integrations/overview"},{"title":"Amplitude and Subtext: From a Signal to the Session","sidebarTitle":"Amplitude","href":"/integrations/amplitude"},{"title":"Appcues and Subtext: From a Flow to the Session","sidebarTitle":"Appcues","href":"/integrations/appcues"},{"title":"ClickHouse and Subtext: From a Query to the Session","sidebarTitle":"ClickHouse","href":"/integrations/clickhouse"},{"title":"Datadog and Subtext: From a Signal to the Session","sidebarTitle":"Datadog","href":"/integrations/datadog"},{"title":"GrowthBook and Subtext: From an Experiment Result to the Session","sidebarTitle":"GrowthBook","href":"/integrations/growthbook"},{"title":"Hightouch and Subtext: From a Cohort to the Session","sidebarTitle":"Hightouch","href":"/integrations/hightouch"},{"title":"Intercom and Subtext: From a Conversation to the Session","sidebarTitle":"Intercom","href":"/integrations/intercom"},{"title":"LangSmith and Subtext: From a Signal to the Session","sidebarTitle":"LangSmith","href":"/integrations/langsmith"},{"title":"LaunchDarkly and Subtext: From a Flag to the Session","sidebarTitle":"LaunchDarkly","href":"/integrations/launchdarkly"},{"title":"LogRocket and Subtext: From a Signal to the Session","sidebarTitle":"LogRocket","href":"/integrations/logrocket"},{"title":"Metabase and Subtext: From a Signal to the Session","sidebarTitle":"Metabase","href":"/integrations/metabase"},{"title":"Mixpanel and Subtext: From a Signal to the Session","sidebarTitle":"Mixpanel","href":"/integrations/mixpanel"},{"title":"New Relic and Subtext: From a Signal to the Session","sidebarTitle":"New Relic","href":"/integrations/newrelic"},{"title":"OpenTelemetry and Subtext: From a Trace to the Session","sidebarTitle":"OpenTelemetry","href":"/integrations/opentelemetry"},{"title":"Pendo and Subtext: From a Signal to the Session","sidebarTitle":"Pendo","href":"/integrations/pendo"},{"title":"PostHog and Subtext: From a Signal to the Session","sidebarTitle":"PostHog","href":"/integrations/posthog"},{"title":"Segment and Subtext: From a Signal to the Session","sidebarTitle":"Segment","href":"/integrations/segment"},{"title":"Sentry and Subtext: From an Error to the Session","sidebarTitle":"Sentry","href":"/integrations/sentry"},{"title":"Snowplow and Subtext: From a Signal to the Session","sidebarTitle":"Snowplow","href":"/integrations/snowplow"},{"title":"Sprig and Subtext: From a Survey Response to the Session","sidebarTitle":"Sprig","href":"/integrations/sprig"},{"title":"Statsig and Subtext: From a Signal to the Session","sidebarTitle":"Statsig","href":"/integrations/statsig"},{"title":"Userpilot and Subtext: From a Flow Drop to the Session","sidebarTitle":"Userpilot","href":"/integrations/userpilot"}]},{"group":"Recipes","pages":[{"title":"Linear and Subtext: Triage from the Real Session","sidebarTitle":"Linear triage","href":"/recipes/linear"},{"title":"LangSmith Trace Review: From a Flagged Run to the User's Session","sidebarTitle":"LangSmith trace review","href":"/recipes/langsmith-trace-review"},{"title":"UX Digest: The Top Five Things to Fix, From Real Sessions","sidebarTitle":"UX digest","href":"/recipes/ux-digest"},{"title":"UX Digest at Scale: Several Areas, Several Teams, One Pipeline","sidebarTitle":"UX digest at scale","description":"Split the UX digest into three scheduled agents with an observations table, a run ledger, and per-area digests. For teams that outgrow the single routine.","href":"/recipes/ux-digest-scaled"}]},{"group":"API reference","pages":[{"title":"Get a link to the current session recording","sidebarTitle":"Get session URL","href":"/api/get-session"},{"title":"Identify Users in Your Subtext Sessions","sidebarTitle":"Identification","description":"Attach a stable user ID and user properties to a session with FS('setIdentity') so you can find and filter sessions by the person they belong to.","href":"/api/identification"},{"title":"Mark Sensitive Elements with Privacy Classes","sidebarTitle":"Privacy classes","href":"/api/privacy-classes"},{"title":"Configure Content Security Policy for the Subtext Capture Snippet","sidebarTitle":"CSP","href":"/api/csp"}]}]},{"tab":"Verify (Beta)","pages":[{"title":"Verify (Beta)","href":"/verify/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Get a link to the current session recording - Subtext","deploymentId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","buildId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","dynamics":[],"chunks":[]}