Reports
GET
http://localhost:4000/api/v1 /reports List client reports
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/reports" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"organizationId": "string",
"clientId": "string",
"period": "string",
"sections": {},
"branding": {},
"schedule": {},
"recipients": {},
"nextRunAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"createdAt": "2024-01-01T00:00:00Z",
"range": {},
"compare": {},
"lang": "string",
"replyTo": "string",
"message": "string",
"summary": "string"
}
]Schema
idstring
required
organizationIdstring
required
clientIdstring
required
periodstring
required
sectionsrequired
brandingrequired
schedulerequired
recipientsrequired
nextRunAtstring
required
createdBystring
required
createdAtstring
required
rangerequired
comparerequired
langstring
required
replyTostring
required
messagestring
required
summarystring
required
POST
http://localhost:4000/api/v1 /reports/{id}/generate Generate a report now
send: true also mails it to the report's recipients.
Parameters
idstring
path
required
Request body
application/json
sendboolean
{
"send": false
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/reports/{id}/generate" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"send":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /reports/runs List generated reports, newest first
Parameters
reportIdstring
query
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/reports/runs" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated