You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/analytics/api.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ The Sourcegraph Analytics API is an API that provides programmatic access to you
4
4
5
5
## Access tokens
6
6
7
-
For Sourcegraph Analytics, you can generate an access token for programmatic access. Tokens are long-lived with an optional expiry and have the same permissions to access instance data as the user who created them.
7
+
For Sourcegraph Analytics, you can generate an access token for programmatic access using your session cookie. Tokens are long-lived with an optional expiry and have the same permissions to access instance data as the user who created them.
8
8
9
-
### Token management APIs
9
+
### Getting Started
10
10
11
-
Token management is currently only available via the Sourcegraph Analytics API. Token management APIs are authenticated via the `cas` session cookie.
11
+
Tokens are first retrieved via the `cas` session cookie and then used to generate a long-lived access token. Token management is currently only available via the Sourcegraph Analytics API.
12
12
13
13
- Sign in to [Sourcegraph Analytics](https://analytics.sourcegraph.com).
14
14
- Retrieve your session cookie, `cas`, from your browser's developer tools.
0 commit comments