# Schedule reports with ReportExport and ClickExport

This guide explains the workflow for using the [ReportExport](broken://pages/2f32767dfce29400b314b9959f4cf227c0f1983d) and [ClickExport](broken://pages/9383141a0e76eeac472b0dc4901fde431b50db37) endpoints and how to make the best use of [Replay](/brand-api-reference/brand-api-reference-v12/reference/jobs/jobs.md#put-a-dvertisers-accountsid-jobs-jobid-replay), the report caching feature.

`ReportExport` and `ClickExport` allow you to schedule a report to be generated in the background. This is an asynchronous process, meaning that the API doesn’t return the report file immediately.

Note: Read the best practices for exporting reports and exporting clicks to learn more.

### How to get your report

1. Request the report by making a GET call to [ReportExport](/brand-api-reference/brand-api-reference-v12/reference/report-export/reports.md#get-a-dvertisers-accountsid-reportexport-reportid) or [ClickExport](/brand-api-reference/brand-api-reference-v12/reference/clicks/clicks.md#get-a-dvertisers-accountsid-campaigns-campaignid-clicks-clickid) with all your required report parameters, like dates and filters. The API will respond with job details, including a job ID and a download URI.
2. Periodically check the job status by checking the [Jobs](https://integrations.impact.com/impact-brand/reference/job-overview) endpoint using the job ID. Wait for the job Status to change from `QUEUED` or `RUNNING` to `COMPLETED`. Alternatively, make use of a postback (webhook) notification, which will alert you when the job status changes to `COMPLETED`.
3. Download the report file once the status is `COMPLETED`, using the download URI provided in the initial response.

### Cache reports with Replay

If you make a request to `ReportExport` or `ClickExport` with the exact same parameters as a previous request, a new report will not be generated. Instead, the impact.com API will recognize the duplicate request and return the job details for the already existing report.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.impact.com/brand-api-reference/brand-api-reference-v12/reference/deferred-response-overview/schedule-reports-with-reportexport-and-clickexport.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
