Skip to main content
Digital Advisor API

Create a Digital Advisor GraphQL API request

Contributors netapp-aoife

Learn how to create a GraphQL API request to receive data from the GraphQL API for Digital Advisor.

Before you begin

You need to complete the following before you can create a request.

Steps
  1. Open the GraphQL API Explorer tool, and select the query you want to run from the left side of the window.

  2. Pass your access token in the Headers section of the request as shown below:

    {
      "Authorization": "Bearer <YOUR_ACCESS_TOKEN>"
    }
    Note You should have already generated and saved your access token using the steps in Generate access and refresh tokens.

    Graph API Explorer

  3. Submit the request by selecting Run in the upper right corner.

    A JSON response is displayed in the Response Window.

  4. Optionally, copy the curl command to run the query outside of the GraphQL API explorer.

    1. On the right side of the operation block window, select (…​), and then select the Copy operation to cURL option from the dropdown menu:

      shows how to copy the curl command

    2. The curl command is copied to your clipboard with your pre-configured query, variables, and headers.

      You can now paste and run this command in your terminal.