Answer: Fetch the JWKS from https://api.anthropic.com/v1/code/.well-known/jwks.json, strip the sk-ant-cc- prefix, verify the ES256 signature with the matching kid, then check iss is ccr, aud contains your ccpool_... environment ID, ccr:role is session_worker, and exp is not in the past. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/verify-session-token-from-service Revision: 1 Digest: sha256:996895b9d6e2c15c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:40Z Last changed: 2026-11-13T03:05:40Z Last verified: 2026-11-20T12:24:56Z Next check: 2026-11-21T12:24:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of JWKS endpoint | https://api.anthropic.com/v1/code/.well-known/jwks.json | | [1] | 2026-11-20 token prefix | sk-ant-cc- | | [1] | 2026-11-20 signature algorithm | ES256 | | [1] | 2026-11-20 issuer | ccr | | [1] | 2026-11-20 audience environment ID form | ccpool_... | | [1] | 2026-11-20 required role | session_worker | | [1] | 2026-11-20 cache max-age | 300 | seconds | [1] | 2026-11-20 default token lifetime | four-hour | | [1] | 2026-11-20 Sources: [1] Anthropic. "Verify session identity in self-hosted environments". https://code.claude.com/docs/en/self-hosted-environments-identity.md Role: primary. Accessed: 2026-11-20T12:24:56Z Quote: "https://api.anthropic.com/v1/code/.well-known/jwks.json" (Supports: JWKS endpoint) Quote: "Reject the value if it doesn't start with `sk-ant-cc-`, then remove that prefix." (Supports: token prefix) Quote: "verify the `ES256` signature. Reject tokens whose `alg` header is not `ES256`." (Supports: signature algorithm) Quote: "Reject the token if `iss` is not exactly `ccr`." (Supports: issuer) Quote: "Reject the token unless it contains your environment ID, which has the form `ccpool_...`." (Supports: audience environment ID form) Quote: "Reject the token if `ccr:role` is not exactly `session_worker`." (Supports: required role) Quote: "The endpoint sets `Cache-Control: public, max-age=300`, so caching the key set and refetching every five minutes is safe." (Supports: cache max-age) Quote: "Anthropic issues session tokens with a four-hour lifetime by default and a maximum of eight hours." (Supports: default token lifetime) Published: 2026-11-20T03:48:50Z Snapshot SHA-256: cdc61ddd74e52d57db4485537975dbcd8ad08dc6efbd981680b2bdbe110022df (captured 2026-11-13T03:05:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:05:40Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:24:56Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:56Z Last attempt: 2026-11-20T12:24:56Z Notes and limitations: Extracted automatically from a single official source (section "Verify the token from your service"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/view-code-review-usage Where can I view Claude Code Review usage for my organization? https://latestn.com/tool/claude-code/admin-and-enterprise/wsl-managed-devices How do I use Claude Code Desktop in WSL on a managed device? https://latestn.com/tool/claude-code/agents-and-automation/add-api-trigger How do I add an API trigger to a Claude Code scheduled task? https://latestn.com/tool/claude-code/admin-and-enterprise/validate-marketplace-preview-suggestions How do I validate my Claude Code marketplace and preview what plugin suggestions users will see? https://latestn.com/tool/claude-code/admin-and-enterprise/verify-gateway-rollout How do I verify that the Claude Code LLM gateway rollout worked? https://latestn.com/tool/claude-code/admin-and-enterprise/verify-managed-policy-enforced How can I verify that a Claude Code managed settings policy is actually in force? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/verify-session-token-from-service/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/verify-session-token-from-service POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/verify-session-token-from-service with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/verify-session-token-from-service?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I verify the CLAUDE_CODE_SESSION_ACCESS_TOKEN JWT from my own service in a self-hosted Claude Code environment? Revision 1, last verified 2026-11-20T12:24:56Z. https://latestn.com/tool/claude-code/admin-and-enterprise/verify-session-token-from-service (accessed 2026-11-21T09:58:46Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_verify_session_token_from_service_r1, title = {How do I verify the CLAUDE_CODE_SESSION_ACCESS_TOKEN JWT from my own service in a self-hosted Claude Code environment?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/verify-session-token-from-service}}, note = {Revision 1; digest sha256:996895b9d6e2c15c; last verified 2026-11-20T12:24:56Z; accessed 2026-11-21T09:58:46Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/verify-session-token-from-service