Reports

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-reports"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/745bcfa0-ab4f-4a65-9ae3-67d47efc8474/social-card.svg?v=3e7ae33eec8b" alt="Reports" width="600" height="315"></a>
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
id
string
required
organizationId
string
required
clientId
string
required
period
string
required
sections
required
branding
required
schedule
required
recipients
required
nextRunAt
string
required
createdBy
string
required
createdAt
string
required
range
required
compare
required
lang
string
required
replyTo
string
required
message
string
required
summary
string
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

id
string
path
required

Request body

application/json
send
boolean
= false
{
  "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

reportId
string
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