---
updatedAt: 2026-09-29T23:38:36.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Create Scheduled Report

This creates a Scheduled Report. This endpoint uses the same body params as a queued report for the `Criteria` field.

Click [here for more info on Scheduled Reports](https://dev.kevel.com/docs/scheduled-reporting).

**Troubleshooting Notes**

1. All times are in GMT

2. If you schedule a fixed date report, you *must* use a custom start and end date. `ToDate` time frames are not supported.

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "adzerk-management-apis",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/report/schedule": {
      "post": {
        "summary": "Create Scheduled Report",
        "description": "This creates a Scheduled Report. This endpoint uses the same body params as a queued report for the `Criteria` field.",
        "operationId": "create-scheduled-report",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Name",
                  "LoginID",
                  "KickoffDate",
                  "SchedulingWindow",
                  "RecurrenceType",
                  "Criteria"
                ],
                "properties": {
                  "Name": {
                    "type": "string",
                    "description": "A friendly name for the report"
                  },
                  "LoginID": {
                    "type": "integer",
                    "description": "The `LoginId` for the user who should receive the report. This is the ID that's returned in the [User Management API](ref:log-in-endpoints) endpoints. You can pull a list [here](ref:list-logins)",
                    "format": "int32"
                  },
                  "KickoffDate": {
                    "type": "string",
                    "description": "The date to begin generating the report. We will use this date and the `RecurrenceType` to determine when the report should recur. Will accept a valid ISO 8601 date string."
                  },
                  "SchedulingWindow": {
                    "type": "integer",
                    "description": "The timeframe in which the report should be delivered. All times are in GMT. Key  `0 = Midnight to 6:00AM`  `1 = Between 6:00AM and Noon`  `2 = Between Noon and 6:00PM (18:00)`  `3 = Between 6:00PM (18:00) and Midnight`",
                    "format": "int32"
                  },
                  "RecurrenceType": {
                    "type": "integer",
                    "description": "How often the report should be delivered. We will use the `RecurrenceType` to adjust the `StartDate` and `EndDate` from the criteria object with each recurring report. Key:  `0 = no recurrence`  `1 = daily` `2 = weekly` `3 = monthly`",
                    "format": "int32"
                  },
                  "Criteria": {
                    "type": "object",
                    "description": "Object. Use same body params from [Queued Reports](ref:queued-reports). You'll effectively be placing the Queued Report fields into this object.",
                    "properties": {
                      "StartDateISO": {
                        "type": "string",
                        "format": "date"
                      },
                      "EndDateISO": {
                        "type": "string",
                        "format": "date"
                      },
                      "GroupBy": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "Parameters": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "": {
                              "type": "string",
                              "description": "The name of the parameter you want to filter by"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "ExcludeParameters": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "": {
                              "type": "string",
                              "description": "The name of the parameter you want to filter by"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "CustomizedCsvColumnNames": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "original": {
                              "type": "string",
                              "description": "The name of the original CSV column name that you want to rename."
                            },
                            "new": {
                              "type": "string",
                              "description": "The name of the new CSV column name that you want `original` to be renamed to."
                            }
                          },
                          "type": "object"
                        }
                      },
                      "ReportDateFormat": {
                        "type": "string",
                        "description": "Date format to display in the \"Date\" column of the Report CSV, possible values: \"us\", \"iso8601\"",
                        "enum": [
                          "us",
                          "iso8601"
                        ]
                      }
                    }
                  },
                  "Emails": {
                    "type": "array",
                    "description": "The [external email addresses](doc:scheduled-reporting#adding-additional-emails-to-report) to email with the completed report. Each email address is a string, like ```\"Emails\":[\"1@2.com\", \"3@4.com\"]```",
                    "items": {
                      "type": "string"
                    }
                  },
                  "ShowEvents": {
                    "type": "boolean",
                    "description": "Display events (conversions, custom events, etc.). Default is `false`",
                    "default": false
                  },
                  "ShowClickBucketing": {
                    "type": "boolean",
                    "description": "Display clicks sorted by click bucketing. Default is `false`",
                    "default": false
                  },
                  "ShowRevenue": {
                    "type": "boolean",
                    "description": "Display revenue. Default is `false`",
                    "default": false
                  },
                  "ShowConversions": {
                    "type": "boolean",
                    "description": "Display conversions. Default is `false`",
                    "default": false
                  },
                  "fixedDate": {
                    "type": "boolean",
                    "description": "Prevents the time frame of the report from incrementing with each send. Default is `false`",
                    "default": false
                  }
                }
              },
              "examples": {
                "JSON": {
                  "value": {
                    "Name": "Daily Report for Nike",
                    "LoginId": 12345,
                    "KickoffDate": "11/30/2015",
                    "SchedulingWindow": 1,
                    "RecurrenceType": 1,
                    "Criteria": {
                      "StartDate": "2014-03-01",
                      "EndDate": "2014-03-31",
                      "Parameters": [
                        {
                          "siteId": 12345
                        }
                      ],
                      "GroupBy": [
                        "day"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{  \n    \"Id\":1234,\n    \"Name\":\"Daily Report for Nike\",\n    \"Criteria\":{  \n        \"StartDate\":\"2017-01-01T00:00:00\",\n        \"EndDate\":\"2017-01-31T00:00:00\",\n        \"Parameters\":[  \n            {  \n                \"siteId\":123456\n            }\n        ],\n        \"GroupBy\":[  \n            \"day\"\n        ],\n        \"Top30countries\":false,\n\t\t\t\t\"ReportDateFormat\": \"iso8601\",\n        \"Exclude3rdParty\":false,\n        \"IsTotal\":false\n    },\n    \"LoginId\":12345,\n    \"KickoffDate\":\"2017-01-01T00:00:00\",\n    \"SchedulingWindow\":1,\n    \"RecurrenceType\":1,\n    \"IsDeleted\":false\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Id": {
                      "type": "integer",
                      "example": 1234,
                      "default": 0
                    },
                    "Name": {
                      "type": "string",
                      "example": "Daily Report for Nike"
                    },
                    "Criteria": {
                      "type": "object",
                      "properties": {
                        "StartDate": {
                          "type": "string",
                          "example": "2017-01-01T00:00:00"
                        },
                        "EndDate": {
                          "type": "string",
                          "example": "2017-01-31T00:00:00"
                        },
                        "Parameters": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "siteId": {
                                "type": "integer",
                                "example": 123456,
                                "default": 0
                              }
                            }
                          }
                        },
                        "GroupBy": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "day"
                          }
                        },
                        "Top30countries": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "ReportDateFormat": {
                          "type": "string",
                          "example": "iso8601"
                        },
                        "Exclude3rdParty": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "IsTotal": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        }
                      }
                    },
                    "LoginId": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "KickoffDate": {
                      "type": "string",
                      "example": "2017-01-01T00:00:00"
                    },
                    "SchedulingWindow": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "RecurrenceType": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "IsDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -H 'X-Adzerk-ApiKey:<API-KEY>' -H \"Content-Type:application/json\" https://api.kevel.co/v1/report/schedule -X POST --data-binary '{\"Name\": \"Test\", \"LoginId\": 12345, \"KickoffDate\": \"2018-11-30\", \"SchedulingWindow\": 1, \"RecurrenceType\": 1, \"Criteria\": {\"StartDate\": \"2017-11-28\", \"EndDate\": \"2017-11-28\", \"Parameters\":[],\"GroupBy\": [\"day\"]}}'"
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function createScheduledReport() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let scheduledReport = await client.run('scheduledReport', 'create', {\n    name: 'API Test Scheduled Report 1',\n      loginId: 12345,\n      kickoffDate: '2020-11-23T00:00:00',\n      schedulingWindow: 1,\n      recurrenceType: 2,\n      criteria: {\n        startDateIso: '2020-01-01T00:00:00',\n        endDateIso: '2020-11-23T23:59:59',\n        groupBy: ['month'],\n        parameters: [{\n          brandId: 737031\n        }],\n      },\n      emails: ['user@example.com'],\n      showEvents: true,\n      showClickBucketing: true,\n      showRevenue: true,\n      showConversions: true,\n  });\n  console.log(scheduledReport);\n}\n\ncreateScheduledReport();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef create_report()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    data = {\n        name: 'API Test Scheduled Report 1',\n        login_id: 12345,\n        kickoff_date: '2020-11-23T00:00:00',\n        scheduling_window: 1,\n        recurrence_type: 2,\n        criteria: {\n            start_date_iso: '2020-01-01T00:00:00',\n            end_date_iso: '2020-11-23T23:59:59',\n            group_by: ['month'],\n            parameters: [{\n                country_code: 'US'\n            }],\n        },\n        emails: ['user@example.com'],\n        show_events: true,\n        show_click_bucketing: true,\n        show_revenue: true,\n        show_conversions: true,\n    }\n    pp client.scheduled_reports.create(data)\nend\ncreate_report()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
````