Retrieve and manage user API access tokens using Splunk Observability Cloud đź”—
Learn how to retrieve user API access tokens to authenticate all API requests, including those that send data.
Keep in mind you might also need the following access tokens:
Some API requests require a user API access token created by an administrator.
To authenticate API requests that send data to Splunk Observability Cloud, you must use an organization access token, not a user API access token.
Retrieve your user API access token (session token) đź”—
Splunk Observability Cloud automatically generates a user API access token every time you log in.
To retrieve it:
On the left nav menu, select Settings.
Select your profile name.
Select Show User API Access Token.
If you need it, Copy the token to your clipboard.
If you keep your Account Settings screen open, select Hide to prevent others from seeing your token.
You don’t need to delete your user API access tokens. Instead, you can let them expire.
User API access token expiration đź”—
A user API access token you create on the Account Settings page expires when you log out of Splunk Observability Cloud, or after 30 days, whichever comes first. As a result, they aren’t the best choice for continual data transmission.
To create a user API access token that doesn’t expire when you log out of Splunk Observability Cloud but still expires after 30 days, use the v2/session
endpoint. For more information, see Sessions Tokens .
API requests that require a user API access token created by an administrator đź”—
These API requests require a user API access token created by an administrator.
API |
Task |
---|---|
Integration |
Create, update, delete, or validate an integration |
Org token |
Create, update, or delete an org (access) token, or rotate an org token secret |
Dashboards and dashboard groups |
Change or remove write permissions for a user other than yourself |
Detectors |
Change or remove write permissions for a user other than yourself |
Organizations |
The following API requests require a User API access token associated with an administrator:
|
Teams |
Create, update, or delete a team, or remove a team member other than yourself. |
You can manage permissions on items for which you already have permissions, even if you’re not an administrator.
If you’re an administrator, you can see how a user created or updated an object using a particular user API access token by selecting Info from the object’s Actions menu.
For example, to see information for a dashboard, select Actions menu.
from the dashboard’sTo track API calls by user, ask your users to obtain and use their own user API access tokens.