Skip to main content

Accessing ASM via API

The ASM app allows users to make requests directly to our GraphQL API. You can do this by using one of the following methods:

Using the GraphQL playground#

  1. Log in to

  2. Open

  3. Open the Settings using the upper-right button

    Browser Api Settings

  4. Set a new value: "request.credentials": "include" and save the settings

    Setting Request Credentials

  5. Go to a new tab and make your queries

    Query Example

Note: This method uses the same session as the web application, which lasts for 40 minutes. After that, you need to log in to again and refresh the page. If you want your session to last more than 40 minutes, you can use an API Token as shown below.

Using the ASM API Token#

  1. Log in to

  2. Generate the API Token from the web application using the API option in the left panel: ASM API Button

  3. Select an expiration date up to six months after the creation date:

    API Token Modal

  4. After clicking the “Proceed” button, you will see a string labeled “Access Token”. This will be your API Token:

    Generated API Token in App

  5. Store this token safely, as it is the only time you will see it. With it, you can do the same things that you usually do on the Integrates web application.

You can also generate the API Token using the next GraphQL mutation on, where expirationTime is a Unix Timestamp

mutation {
updateAccessToken(expirationTime:1577854799) {

You will get the API Token under the sessionJwt value:

Generated API Token in Browser

Add a new Header in HTTP HEADERS with the name Authorization and the value Bearer <api-token>, where <api-token> is the token generated in the previous steps:

Set Authorization Example

Done! Now you can make queries with the same API Token for up to six months (depending on the expirationTime you set earlier)