File Download API

Token-based REST API for downloading files that Sonar generates and manages, such as query results, reports, and list exports. A token is single-use and expires 30 minutes after it is issued.

Usage flow

  1. Call the API that generates the data you want to download. That call issues a single-use download token.
  2. Download the file from the Download File endpoint with the issued token.

APIs that issue a token

The following operations issue a download token before you call the Download File endpoint.

Permissions

Only the account that issued a download token can use it. The permission required to issue a token follows the requirement of each domain API.