Documents
Report Introduction
Latest Update Time: 2026-07-02 00:00:00
The Report module lets you search inspection reports, retrieve PDF report file metadata (for download via the File module), and fetch the full interactive report data for a specific inspection product.
This page documents the shared setup used by every Report guide. Each API-specific guide links back here for authentication, headers, and environment details.
Base URL
All Report APIs are served from the QIMA Public API host for your environment:
https://ppapi.qima.com
For production integrations, replace the host with the QIMA API host provided for your environment.
Required Headers
Call the Auth API first (POST /auth/v2/token) before any Report request. See the Getting Started Guide or Get Token API for authentication setup.
| Header | Location | Source | Description |
|---|---|---|---|
Ai-Api-Access-Token | Request header (all Report APIs) | Provided by QIMA | Request source identifier. Each client may have a different value per environment. |
Ai-User-Id | Request header (all Report APIs) | Auth API response userId | QIMA client user login ID of the authenticated user. |
Authorization | Request header (all Report APIs) | Auth API access token | Format: Bearer <access-token>. Use the token from the same Auth API session as the other headers. |
Referer | Request header (all Report APIs) | Fixed value | https://preprodmy.qima.com/ |
Common Authentication Errors
| Status | Meaning | Recommended Action |
|---|---|---|
401 Unauthorized | Token or user authentication failed. | Confirm the Authorization, Ai-User-Id, and Ai-Api-Access-Token headers are from the same Auth API session and environment. |
403 Forbidden | The user does not have access to the requested resource. | Verify account permissions for the target Report operation. |
Common Response Shape
Every Report API wraps its data in the same envelope:
{
"message": null,
"content": "... the actual data, shape varies per API ..."
}
Available APIs
| API | Method | Endpoint | Guide | API Reference |
|---|---|---|---|---|
| Search inspection reports | GET | /user/{userId}/reports | Search Guide | API Reference |
| Get inspection PDF report file info | GET | /user/{userId}/report/{productId}/pdf-info | PDF Info Guide | API Reference |
| Get inspection interactive report details | GET | /user/{userId}/interactive-report/{productId} | Interactive Report Guide | API Reference |
Integration Workflow
| Step | Guide |
|---|---|
| Search reports | Search Guide |
| Get PDF report file info, then download | PDF Info Guide, File Download Guide |
| Get the full interactive report data | Interactive Report Guide |
Choosing the Right API
| Your goal | Recommended APIs |
|---|---|
| List or filter inspection reports | Search Inspection Reports |
| Download the PDF report | Get PDF Report File Info + Download a File by ID |
| Render an interactive/on-screen report view | Get Interactive Report Details |
Related Documentation
- Getting Started Guide — Authentication and first API call
- File Introduction — Downloading files by ID
- Module Overview — Overview of all QIMA Public API modules
- API Reference — Interactive endpoint explorer for all Public APIs
