All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| create_pdf_report | POST /v3/analyses/{analysis_id}/pdf | Start PDF report generation |
| download_pdf_report | GET /v3/analyses/{analysis_id}/pdf | Download generated PDF report |
| get_pdf_report_status | GET /v3/analyses/{analysis_id}/pdf/status | Get PDF report workflow status |
GeneratePDFOutputBody create_pdf_report(analysis_id)
Start PDF report generation
Starts an asynchronous PDF report generation workflow for the given analysis. Poll status and download the resulting PDF using the same analysis ID. Idempotent: if a workflow is already running for this analysis and user, the response sets already_running: true and the caller rejoins the in-flight workflow.
Error codes:
403ACCESS_DENIED— Access Denied404NOT_FOUND— Not Found
- Api Key Authentication (APIKey):
import revengai
from revengai.models.generate_pdf_output_body import GeneratePDFOutputBody
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.ReportsApi(api_client)
analysis_id = 56 # int | Analysis ID
try:
# Start PDF report generation
api_response = api_instance.create_pdf_report(analysis_id)
print("The response of ReportsApi->create_pdf_report:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ReportsApi->create_pdf_report: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| analysis_id | int | Analysis ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
download_pdf_report(analysis_id)
Download generated PDF report
Streams the rendered PDF report. Returns 409 when the workflow is still running and 404 when no report generation exists for this analysis or the caller is not authorised to see it.
Error codes:
403ACCESS_DENIED— Access Denied404NOT_FOUND— Not Found409ANALYSIS_NOT_READY— Analysis Not Ready500REPORT_RENDER_FAILED— Report Render Failed
- Api Key Authentication (APIKey):
import revengai
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.ReportsApi(api_client)
analysis_id = 56 # int | Analysis ID
try:
# Download generated PDF report
api_instance.download_pdf_report(analysis_id)
except Exception as e:
print("Exception when calling ReportsApi->download_pdf_report: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| analysis_id | int | Analysis ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowProgress get_pdf_report_status(analysis_id)
Get PDF report workflow status
Returns live workflow progress for the given analysis. Returns 404 when no report generation exists for this analysis or the caller is not authorised to see it.
Error codes:
403ACCESS_DENIED— Access Denied404NOT_FOUND— Not Found
- Api Key Authentication (APIKey):
import revengai
from revengai.models.workflow_progress import WorkflowProgress
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.ReportsApi(api_client)
analysis_id = 56 # int | Analysis ID
try:
# Get PDF report workflow status
api_response = api_instance.get_pdf_report_status(analysis_id)
print("The response of ReportsApi->get_pdf_report_status:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ReportsApi->get_pdf_report_status: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| analysis_id | int | Analysis ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]