Overview / Finance / Schedule a report

Schedule a report

post https://api.flactrum.com/v1/report-schedules
Required scope reports.write
Success status201
Returns One ReportSchedule object

Request body

FieldTypeDescription
name * string —
category * string —
period_type * string —
branch_id string|null —
recipients * array At least one — a schedule with no recipients silently does nothing.
format string —
send_at * string —
days_of_week array —
is_active boolean —

Response fields

FieldTypeDescription
id string —
name string —
category string —
period_type string —
branch_id string|null —
recipients array —
format string —
send_at string —
days_of_week array|null Empty means every day. 1 is Monday.
is_active boolean —
last_sent_at string|null —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/report-schedules' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Günlük finans özeti",
    "category": "financial",
    "period_type": "daily",
    "recipients": [
        "patron@ornek.com"
    ],
    "send_at": "08:00",
    "days_of_week": [
        1,
        2,
        3,
        4,
        5
    ]
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43myb3nzgbrvyjd25jyfj9t",
        "name": "Günlük finans özeti",
        "category": "financial",
        "period_type": "daily",
        "branch_id": null,
        "recipients": [
            "patron@ornek.com"
        ],
        "format": "csv",
        "send_at": "08:00:00",
        "days_of_week": [
            1,
            2,
            3,
            4,
            5
        ],
        "is_active": true,
        "last_sent_at": null,
        "created_at": "2026-10-04T14:26:31+00:00",
        "updated_at": "2026-10-04T14:26:31+00:00"
    }
}