v1
latestOpenAPI 3.1.02026-07-2483219318.4 KBReports
Create report
An Akahu Apply report provides an aggregate, enriched view of the data from the application's resources.
The output of a report can be downloaded as an HTML document for human consumption, or as JSON data for further processing.
Report processing is asynchronous, so you must poll the GET /v1/applications/{applicationId}/report/{reportId} endpoint until it reaches a final status. The output of a report can only by accessed once it has been assigned a status of completed.
post/v1/applications/{applicationId}/reports
Path parameters
applicationIdstring required
Example:application_tz4a98xxat96iws9zmbrgj3a
Request body
Example request
{
"_documents": [
"doc_tz4a98xxat96iws9zmbrgj3a"
]
}Response
Success
Example response
{
"_id": "report_tz4a98xxat96iws9zmbrgj3a",
"resources": [
{
"_id": "doc_tz4a98xxat96iws9zmbrgj3a"
}
],
"spending_categories": [
{
"code": "spending:000/useful-name-here"
}
],
"income_categories": [
{
"code": "income:000/useful-name-here"
}
],
"insights": [
"insight:000/useful-name-here"
]
}