> For the complete documentation index, see [llms.txt](https://integrations.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.impact.com/brand-api-reference/reference/report-export/reports-legacy.md).

# Reports (Legacy)

## List All Available Reports

> Retrieves a list of all reports available to the account.

```json
{"openapi":"3.1.0","info":{"title":"Brand API - Reports & Exports","version":"v14"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"Report":{"type":"object","properties":{"Name":{"type":"string","description":"The display name of the report."},"Id":{"type":"string","description":"The unique identifier or handle for the report."},"Category":{"type":"string","description":"The category the report belongs to."},"Description":{"type":"string","description":"A description of what the report contains."},"ApiAccessible":{"type":"boolean","description":"Whether this report can be run via the API."},"ApiRunUri":{"type":"string","format":"uri-reference","description":"The URI to run this report synchronously."},"DeferredApiRunUri":{"type":"string","format":"uri-reference","description":"The URI to schedule this report as an asynchronous export job."},"MetaDataUri":{"type":"string","format":"uri-reference","description":"The URI to retrieve this report's metadata."},"RunUri":{"type":"string","format":"uri-reference","description":"The URI to run this report in the impact.com platform."}}}}},"paths":{"/Advertisers/{AccountSID}/Reports":{"get":{"summary":"List All Available Reports","description":"Retrieves a list of all reports available to the account.","operationId":"listAllReports","tags":["Reports (Legacy)"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A paginated list of report objects.","content":{"application/json":{"schema":{"type":"object","properties":{"Reports":{"type":"array","description":"The list of report objects.","items":{"$ref":"#/components/schemas/Report"}}}}}}}}}}}}
```

## Run a Report (Legacy)

> Runs a report and returns the records synchronously. This is a legacy endpoint with pagination limits. Use the \`ReportExport\` endpoint for more efficient exporting.\
> \
> \*\*Overload handling:\*\* When the reporting service is under heavy load this endpoint returns \`503\` with a \`Retry-After\` header. Wait the indicated number of seconds before retrying.

```json
{"openapi":"3.1.0","info":{"title":"Brand API - Reports & Exports","version":"v14"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"ErrorResponse":{"type":"object","properties":{"Status":{"type":"string"},"Message":{"type":"string"}}}}},"paths":{"/Advertisers/{AccountSID}/Reports/{ReportId}":{"get":{"summary":"Run a Report (Legacy)","description":"Runs a report and returns the records synchronously. This is a legacy endpoint with pagination limits. Use the `ReportExport` endpoint for more efficient exporting.\n\n**Overload handling:** When the reporting service is under heavy load this endpoint returns `503` with a `Retry-After` header. Wait the indicated number of seconds before retrying.","operationId":"runReport","tags":["Reports (Legacy)"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"}},{"name":"ReportId","in":"path","required":true,"description":"The unique ID or handle for the report.","schema":{"type":"string"}},{"name":"SUBAID","in":"query","description":"Program ID. Required for most reports.","schema":{"type":"integer"}},{"name":"StartDate","in":"query","description":"Start date in YYYY-MM-DD format. Required for most reports.","schema":{"type":"string","format":"date"}},{"name":"EndDate","in":"query","description":"End date in YYYY-MM-DD format. Required for most reports.","schema":{"type":"string","format":"date"}},{"name":"RQueryIDx","in":"query","description":"For reports with multiple tables, specifies which table to return (0-indexed).","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A paginated list of report records.","content":{"application/json":{"schema":{"type":"object","properties":{"Records":{"type":"array","description":"The records from the report.","items":{"type":"object","additionalProperties":true}}}}}}},"408":{"description":"The report query exceeded the server-side timeout. Retry later or use the `ReportExport` endpoint for large datasets which run asynchronously without a timeout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The reporting service is temporarily busy. Wait the number of seconds specified in the `Retry-After` response header before retrying. For large datasets, use the `ReportExport` endpoint to avoid this condition entirely.","headers":{"Retry-After":{"description":"Number of seconds to wait before retrying. Randomly chosen between 0 and 300 to spread client retries.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Retrieve Report Metadata

> Retrieves the dynamically generated documentation (metadata) for a specific report, including available filters and attributes.

```json
{"openapi":"3.1.0","info":{"title":"Brand API - Reports & Exports","version":"v14"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"ReportMetadata":{"type":"object","properties":{"Name":{"type":"string","description":"The display name of the report."},"Id":{"type":"string","description":"The unique identifier or handle for the report."},"Description":{"type":"string","description":"A description of what the report contains."},"Filters":{"type":"array","description":"The filter parameters available when running the report.","items":{"type":"object","properties":{"Name":{"type":"string","description":"The filter parameter name."},"DataType":{"type":"string","description":"The data type of the filter (e.g., String, Integer, Date)."},"Format":{"type":"string","description":"The expected format of the filter value, if applicable."}}}},"Attributes":{"type":"array","description":"The attributes (columns) returned by the report.","items":{"type":"object","properties":{"Name":{"type":"string","description":"The attribute name."},"DataType":{"type":"string","description":"The data type of the attribute."},"Description":{"type":"string","description":"A description of the attribute."}}}},"RunUri":{"type":"string","format":"uri-reference","description":"The URI to run this report."},"Uri":{"type":"string","format":"uri-reference","description":"The unique reference to this metadata object in the impact.com API."}}}}},"paths":{"/Advertisers/{AccountSID}/Reports/{ReportId}/MetaData":{"get":{"summary":"Retrieve Report Metadata","description":"Retrieves the dynamically generated documentation (metadata) for a specific report, including available filters and attributes.","operationId":"getReportMetadata","tags":["Reports (Legacy)"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"}},{"name":"ReportId","in":"path","required":true,"description":"The unique ID or handle of the report.","schema":{"type":"string"}}],"responses":{"200":{"description":"The metadata object for the requested report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportMetadata"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.impact.com/brand-api-reference/reference/report-export/reports-legacy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
