GraphQL Query to Auto Pull Latest Assessments

Introduction
Query to Auto Return Latest Assessments

Introduction

NowSecure Platform supports helpful GraphQL query to return the latest assessments using the Task ID and Assessment ID. 

For all API calls, replace the $API_TOKEN with your own token. Create a token by selecting the Profile icon on the top right corner of Platform > select Tokens. See Creating an API Bearer Token for further information.

NowSecure recommends using the Apollo Sandbox for testing and mutating completed assessments, organization details, applications, and much more. Please see our Apollo Sandbox Overview for more information.

Query to Auto Return Latest Assessments

This GraphQL query automatically returns the latest completed assessments information.

This response returns the latest completed assessments from all apps within your Group you can then use to generate the required report.

query example {
  auto{
    applications{
      title
      packageKey
      latestAssessment{
        taskId
        ref
      }
    }
  }
}


Success response in Apollo Sandbox:

1.png

Comments

0 comments

Article is closed for comments.