domain and reseller for a platform-wide schedule that covers every domain, or send either one to narrow it. At each schedule-next-run-datetime, the CDR export service collects the calls that ended between schedule-last-run-datetime and schedule-next-run-datetime, keeps the directions the export-*-calls-enabled flags select, writes a CSV, and delivers it by export-method. It then moves both times forward by schedule-repeat-interval. Requires Super User scope for a platform-wide schedule. A Reseller's schedule is filed under its own territory, and an Office Manager must send its own domain. A reseller that does not own domain, or a domain that does not exist, returns 400.schedule-preset is required. Daily, Weekly, and Monthly set data-lookup-window and schedule-repeat-interval for you. Weekly needs schedule-weekly-day-of-week and schedule-start-time, Monthly needs schedule-monthly-day-of-month, and Custom needs time-zone and data-lookup-window. Send schedule-next-run-datetime in RFC 3339 (2026-09-02T09:00:00-04:00) or as YYYY-MM-DD HH:MM:SS in time-zone. It is stored in UTC, and leaving it out means now. With Daily, Weekly, or Monthly, only its date is used: the time comes from schedule-start-time, or is midnight for Monthly.{"code": 202}. Read the schedule back to confirm it.409. A missing or invalid field returns 400 naming it, including an unknown time-zone, an unparseable date, a bad schedule-start-time, a name that breaks the pattern, export-method scp copy, and a masked-looking export-password.Authorization: ********************schedule-preset, a preset missing its field, an invalid schedule-name, an unknown time-zone, an unparseable schedule-next-run-datetime or schedule-start-time, export-method scp copy, a masked-looking export-password, or a reseller that does not own domain.curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/schedule' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"schedule-name": "daily_export",
"schedule-preset": "Daily",
"schedule-start-time": "09:00",
"time-zone": "America/New_York",
"schedule-next-run-datetime": "2026-07-01 09:00:00",
"export-method": "email",
"email": "reports@acme.example.com",
"export-notify-email-enabled": "yes",
"export-offnet-calls-enabled": "No",
"export-inbound-calls-enabled": "Yes",
"export-outbound-calls-enabled": "Yes",
"export-include-headers-enabled": "Yes",
"export-cdr-format": "Advanced",
"language-token": "en_us"
}'{
"code": 400,
"message": "schedule_name required"
}