ACE Remote API access allows external applications to generate SQL reports from ACE using API requests.
This article explains how to:
Generate a Remote API key
Retrieve a report using the API
Generate a report with and without filters
Pass report filters using JSON parameters
Note
A SQL report must already exist before using this procedure. A basic understanding of JSON is also recommended when working with report parameters.
Before You Begin
The following concepts and components are required to generate reports through the ACE API. These values are used for both standard and filtered report requests.
Understanding the Components
Before generating reports via API, it is helpful to understand the components used in the request.
Component | Description |
|---|---|
API | Allows external applications to communicate with ACE. |
API Key | A security token used to authenticate API requests. |
Report Identifier | The unique value used to identify which SQL report to execute. |
URL Parameters | Values added to the URL to control the API request. |
JSON | A structured data format used to pass report filter values. |
URL encoding | Converts JSON into a format that can safely be passed in a URL. |
Generating API Key for Remote API Access
Generate a Remote API access key from the user profile.
Open the user profile.
Generate the Remote API key.
Save the user record after generating the key.
Copy the generated API key for use in API requests.
For enhanced security, regenerate the API key periodically based on your organization's security policies.
For additional information, view Generate API Key for User.
Retrieve the Report Identifier
Go to Reports → SQL Designer.
Open the SQL Report
Copy the Report Identifier from the field.
Generate a Report Without Filters
The following example demonstrates how to generate a report using only the required URL parameters without applying report filters.
Go to Help → API Documentation.
Navigate to the Reports section.
Click "Post" and then click "Try it out".
Fill in the required information:
customerID*
identifier* (Report Identifier)
type* (Custom,Inventory )
generate* (true)
Click "Execute" and copy the requested URL.
Open new web browser, paste the URL to view the report.
Example Report URL:
https://test.interprose.com/report/runner.do?customerID=GINA&identifier=VIEWED_ACCOUNTS&type=CUSTOM&generate=true&apiKey=YOUR_API_KEY
GIF Demonstrates Steps 1-6
Generate a Report With Filters
Report filters can be added to the request using the params URL parameter with JSON-formatted values. The following example builds on the previous request by filtering report results using a date range.
Step 1: Identify the Report Parameters
Determine the parameter names used in the SQL report.
Example parameter:
[
{
"name": "createDate",
"valueStart": "01/01/2023",
"valueEnd": "07/01/2023"
}
]Step 2: Encode the JSON Parameters
Use a URL encoding tool such as: https://www.urlencoder.org/
Paste the JSON parameter into the encoder
Click Encode
Copy the encoded parameter value
Encoded Parameters Example:
%5B%0A%20%20%7B%0A%20%20%20%20%22name%22%3A%20%22createDate%22%2C%0A%20%20%20%20%22valueStart%22%3A%20%2201%2F01%2F2023%22%2C%0A%20%20%20%20%22valueEnd%22%3A%20%2207%2F01%2F2023%22%0A%20%20%7D%0A%5D.png?sv=2022-11-02&spr=https&st=2026-05-19T03%3A14%3A29Z&se=2026-05-19T03%3A26%3A29Z&sr=c&sp=r&sig=uZQ0itJVDV7p6buarmQL0zS37Zt4CV8XDSerUER5bJw%3D)
Example URL Encoding Process
Step 3: Append the Encoded Parameters to the URL
Add the encoded JSON using: ¶ms=
Final URL Example with Parameters
https://test.interprose.com/report/runner.do?customerID=GINA&identifier=VIEWED_ACCOUNTS&type=CUSTOM&generate=true&apiKey=YOUR_API_KEY¶ms=%5B%7B%22name%22%3A%22createDate%22%2C%22valueStart%22%3A%2201%2F01%2F2023%22%2C%22valueEnd%22%3A%2207%2F01%2F2023%22%7D%5DAPI Request Parameter Reference
Ensure that the parameter names, URL string values, and variables are correctly provided:
Parameter | Description |
|---|---|
customerID | Your ACE Customer ID (Example: customerID=CUSTID) |
type | Defines the ACE report type (CUSTOM or INVENTORY) |
identifier | The SQL report identifier |
apiKey | The Remote API access key passed in the request URL. |
generate | Executes the report when set to true. |
params | Allows report parameters/options to be passed as a JSON array. (See Params example below) |
Params Example:
¶ms=[{"name":"agencyNumber","value":"123456721"}]Security and Permissions
The API request runs using the permissions of the user associated with the API key.
Keep the API key secure and avoid exposing it in unsecured locations or shared documentation.
