Magnit Reporting as a Service (RaaS) supports asynchronous API calls for report data retrieval. Our API uses OAuth2.0 authentication and returns JSON, ensuring secure and efficient access to your data. This page is designed to guide client representatives managing reports and technical teams integrating APIs through the functionalities and benefits of RaaS.
Authentication
Report Setup
Sharing reports
As the Report Owner it is recommended that you share the reports within the Magnit Platform with other Client Users to prevent unexpected disruption to your RaaS deliverables (information on sharing reports is available in the Magnit Platform User Guide).
Miscellaneous
The system calling the API will need to use its own scheduling method. The Magnit Platform Report Scheduling feature supports other export formats (xlsx, csv, etc.).
Authentication
Make a POST call to the token endpoint provided in the RaaS page of your report. The request body should have JSON format type. The three components of your RaaS API Keys from your Magnit profile should be used as header keys to authenticate, and if successful, an access token will be returned.
Sample Request:
{
"CredentialKey": 1234,
"ClientKey": "XXXX",
"ClientSecret": "XXXX"
}
Once you have the access token you can call the three RaaS API endpoints to request and retrieve report data. When making the calls, set the authentication type as Bearer Token.
Request Report Data
Make a POST call to request the report. If successful, you will get a RunID in the response.
Sample Response:
{
"runid": "8efd721e-9a1b-43a2-b6a4-d17dca59343b",
"message": "Your request has been added to the queue, please refer to the Run ID."
}
Check the Status
Make a GET call to check the status, including RunID as a parameter in the API endpoint.
Sample Response:
{
"runid": "8efd721e-9a1b-43a2-b6a4-d17dca59343b",
"reportid": 70183,
"status": "Completed",
"message": "Report generation is complete. Please retrieve the report data."
}
Retrieve the Report
Make a GET call to retrieve the report data, including RunID as a parameter in the API endpoint. Data will be returned in JSON format.
Verbs
Supported verbs are POST and GET.
Error Response