Support Home > Advanced Tools > Custom Query > Pulling Custom Query Reports through the API

Pulling Custom Query Reports through the API

The following document provides guidance on the series of API calls that provide the opportunity to retrieve the current download link of a scheduled custom query API report on a recurring basis.


API Call Overview

  1. Schedule a custom Query through the Kochava UI. For more information about creating a custom query, refer to our Query support documentation.
  2. Use the following call/endpoint to retrieve the schedule token:
  3. NOTE: Reports scheduled through the UI are created with the first API key created for the user. If multiple API keys are associated to a user, be sure to use the first API key.

    https://reporting.api.kochava.com/v1.4/schedule/tokens

     

     

  4. Use the schedule token to make the following call:
  5. POST: https://reporting.api.kochava.com/v1.4/schedule/progress

     

    BODY:

     

  6. The call returns the current token:
  7.  

  8. Use the current token to make the following call:
  9. POST: https://reporting.api.kochava.com/v1.4/progress

     

    BODY:

     

  10. The call will return the following payload, which includes the download link to the current report:

 
 

Last Modified: May 13, 2022 at 1:16 pm