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.
Follow these steps in Google Chrome. They capture the token from the network calls the Anypoint Platform web UI makes.
environments.environments, for example environments?limit=….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:
oauth2/token./accounts/oauth2/token.access_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.
001116775

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.