Loading

Get the Anypoint Platform Access Token From a Chrome Session

Udgivelsesdato: Oct 22, 2026
Opgave

GOAL

Copy the access (bearer) token of your signed-in Anypoint Platform browser session so you can call an Anypoint Platform API by hand, for example with curl.

This helps when getting a token through the API isn't straightforward, for example for single sign-on (SSO) users. The token belongs to your user session: it has your permissions and stops working when the session ends. Don't use it for CI/CD or automation. For those, use a connected app, as described in Getting the Bearer Token for a Connected App in Anypoint Platform.

To get a token by calling the Access Management API instead, see How to generate your Authorization Bearer token for Anypoint Platform.

Trin

Follow these steps in Google Chrome. They capture the token from the network calls the Anypoint Platform web UI makes.

Open Chrome Developer Tools Before You Sign In

  1. Open a new Chrome tab.
  2. Open Developer Tools: press F12 or Ctrl + Shift + I on Windows and Linux, or Cmd + Option + I on Mac. For other ways to open it, see Open Chrome DevTools.
  3. Select the Network tab.
  4. Select Preserve log and Disable cache.

Sign In to Anypoint Platform

  1. In the same tab, go to the sign-in page of your control plane, for example the US cloud sign-in page or the EU cloud sign-in page. For the other control planes, see Anypoint Platform Hosting Overview.
  2. Sign in as usual, including through your identity provider if your organization uses SSO.
  3. After the home page loads, open any Anypoint Platform page, for example Access Management or Runtime Manager.

Copy the Access Token

  1. In the Network tab filter box, enter environments.
  2. Select a request to environments, for example environments?limit=….
  3. In the Headers tab, under Request Headers, find the Authorization header. The value after Bearer is the access token.

If the request doesn't show an Authorization header, get the token from the sign-in response instead:

  1. In the Network tab filter box, enter oauth2/token.
  2. Select the most recent request to /accounts/oauth2/token.
  3. In the Response or Preview tab, copy the value of access_token.

Use the Token

Send the token in the Authorization header of your API call. This example lists your user details:

curl -H "Authorization: Bearer <access-token>" https://anypoint.mulesoft.com/accounts/api/me

If the call returns 401 Unauthorized, your session has ended. Sign in again and copy a new token. How long a session lasts depends on the Default session timeout setting of your root organization (60 minutes of inactivity by default), described in Managing Business Groups in Anypoint Platform.

Treat the token like a password. Anyone who has it can act as you until the session ends, so don't paste it into case comments, chats, or screenshots.

Vidensartikelnummer

001116775

 
Indlæser
Salesforce Help | Article