Before you begin
Complete the FastDraft API: Getting Started guide first. This article assumes that your Bruno collection, server environment, bearer token, and CSRF token are already configured.
Overview
The Reporting Services API provides direct access to FastDraft register reporting. Unlike reports generated through the core API queue, Reporting Services runs the report at the point of request and returns the aggregated results through a regional reporting service. This article covers how to configure Bruno and retrieve report names, columns, and aggregate report data.
Use a dedicated API account
Use a separate API-enabled account rather than an everyday FastDraft user account. This avoids competing authentication sessions, makes API activity easier to trace, supports least-privilege access, and avoids enabling SSO bypass on a normal UI account.
Software and documentation
These examples use Bruno, although another API client or cURL can also be used.
Reporting Services has separate Swagger documentation from the core FastDraft API.
Open the Reporting Services API documentation
Important
Do not use the core API Swagger page for the endpoints in this article. Reporting Services uses separate documentation and a separate regional base URL.
How Reporting Services works
- Authenticate against your own FastDraft instance.
- Receive a reportingToken with the normal authentication response.
- Send the reportingToken to your regional Reporting Services instance.
- The service decrypts the token to identify the user, permissions, accessible data, and originating FastDraft instance.
- The request is validated and passed to your FastDraft instance, where the report runs and aggregates the results.
- The validated data is returned through Reporting Services.
1. Add Reporting Services variables
Open your existing Bruno environment and add the following variables:
- server-reporting: the base URL for the reporting service in your FastDraft region eg https://fastdraft-uks-report.builtintelligence.com
- token-reporting: leave this blank; it will be populated by the Token request.
Regional URL
Reporting Services URLs differ by region. Contact your account manager if you are unsure which URI applies to your FastDraft instance.
2. Store the reporting token automatically
- Open the existing Token request.
- Open the Script tab and select Post Response.
- Add the two lines below after the existing token script, then save the request.
Update the Token request Post Response script.
let reportTokShort = respoBody.reportingToken;
bru.setEnvVar("token-reporting", reportTokShort);
When the Token request succeeds, the script saves reportingToken to the {{token-reporting}} environment variable.
3. Authenticate and obtain the reporting token
Run the same POST {{server}}/token request configured in the Getting Started guide. Although subsequent calls are sent to the Reporting Services middleware, authentication still takes place against your own FastDraft instance.
The Token request uses the API account credentials.
The response can contain several values depending on the account permissions. For this process, the required value is reportingToken.
{
"access_token": "VeryLongString",
"token_type": "bearer",
"userName": "apiuser@example.com",
"reportingToken": "VeryLongReportingToken"
}
4. Test the connection by listing report types
- Create a new HTTP request named GetReportNames.
- Set the method to GET and use the endpoint below.
- Open the Auth tab and select Bearer Token. Do not use Inherit.
- Set the token value to {{token-reporting}}, then send the request.
Create the GetReportNames request.
GET {{server-reporting}}/api/Register/GetRegisterTypes
Use the reporting token rather than inherited core API authentication.
A successful response returns the available report type names.
The response is a list of valid registerType values, such as Actions_All. Use one of these exact values in later requests.
5. List the columns for a report
Use GetAggregateReportColumns to inspect the structure of a selected report. This is useful for integrations that validate whether the report shape has changed before importing data.
Swagger shows the endpoint parameters and response model.
- Create a request named GetReportColumns.
- Set the method to POST and use the endpoint below.
- On the Auth tab, select Bearer Token and enter {{token-reporting}}.
- Add the query parameters shown below and send the request.
Create the GetReportColumns request.
POST {{server-reporting}}/api/Register/GetAggregateReportColumns
registerType: Actions_All
includeCustomFields: 0
companyId:
Example report-column request and JSON response.
- registerType must match a report name returned by GetRegisterTypes.
- Set includeCustomFields to 1 only when custom fields are required.
- When including custom fields, also provide companyId.
The response lists the columns that the report will return.
6. Return aggregate report data
- Create a request named GetReportData.
- Set the method to GET and use the endpoint below.
- On the Auth tab, select Bearer Token and enter {{token-reporting}}.
- Add startDate, endDate, and registerType as query parameters.
- Add any optional filters you require, leaving unused parameters disabled.
- Send the request.
Create the GetReportData request.
GET {{server-reporting}}/api/Register/GetAggregateReport
The Swagger documentation lists all available report parameters.
The required parameters are:
- startDate: the beginning of the reporting period.
- endDate: the end of the reporting period.
- registerType: a valid report type returned by GetRegisterTypes.
Other parameters, such as contractId, companyId, project status filters, and custom-field options, are optional. You can save them in Bruno and untick them when they are not needed.
Enable only the parameters required for the request.
startDate: 2026-01-01
endDate: 2026-12-30
registerType: Actions_All
Response size
The endpoint returns a JSON payload. Large reports can take several seconds to complete and may produce a long response.
Recommended request sequence
| Order | Request | Purpose |
| 1 | POST {{server}}/token | Authenticate and populate token-reporting. |
| 2 | GET GetRegisterTypes | Retrieve valid report names. |
| 3 | POST GetAggregateReportColumns | Inspect the columns for a selected report. |
| 4 | GET GetAggregateReport | Return the report data as JSON. |
Common issues
- 401 or authorization failure: confirm the Auth type is Bearer Token and the value is {{token-reporting}}, not Inherit.
- Blank token-reporting variable: rerun the core Token request and check the Post Response script.
- Invalid registerType: copy an exact value returned by GetRegisterTypes.
- Missing custom fields: enable includeCustomFields and provide the relevant companyId.
- Unexpectedly large response: narrow the date range or enable the appropriate optional filters.
Comments
0 comments
Article is closed for comments.