Authorization header. Tokens are issued when you sign in through the web app and are stored locally in your browser. You read the token once, then include it in every request you make from your own code.
Obtaining a token
Tokens are not issued via a dedicated API key endpoint. Instead, they are created when you sign in through the Claude Scope web app.- Sign in at https://app.claudescope.ai/auth.
- After a successful sign-in, open your browser’s developer tools and navigate to Application → Local Storage.
- Find the stored authentication entry. Copy the access token string — it starts with
eyJ. - That token is your Bearer token for API requests.
Passing the token
Include the token in theAuthorization header of every request:
Example: curl
Example: JavaScript fetch
Token expiry
Tokens expire when your session ends. The Claude Scope web app does not currently support programmatic token refresh. If your token expires, sign back in through the web app to obtain a new one.Error responses
When a request is made with a missing, expired, or invalid token, the API returns401 Unauthorized:
/auth when it receives a 401. If you are calling the API directly from a script and receive this status code, re-authenticate through the web app and update your token.