# Reports (Legacy)

## List all reports

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

```json
{"openapi":"3.1.0","info":{"title":"Brand Report Export API","version":"v11"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"ReportDiscovery":{"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":{"operationId":"listAllReports","tags":["Reports (Legacy)"],"summary":"List all reports","description":"Retrieves a list of all reports available to the brand account.","parameters":[{"name":"AccountSID","in":"path","required":true,"description":"The unique identifier for the account.","schema":{"type":"string"}}],"responses":{"200":{"description":"A list of report metadata objects.","content":{"application/json":{"schema":{"type":"object","properties":{"Reports":{"type":"array","description":"The list of report objects.","items":{"$ref":"#/components/schemas/ReportDiscovery"}}}}}}}}}}}}
```

## Run a report \[Deprecation Planned]

> Directly retrieves report records. Note that page size is fixed \
> at 20,000 records regardless of input. Use ReportExport for large sets.<br>

```json
{"openapi":"3.1.0","info":{"title":"Brand Report Export API","version":"v11"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}}},"paths":{"/Advertisers/{AccountSID}/Reports/{ReportId}":{"get":{"operationId":"runReportLegacy","tags":["Reports (Legacy)"],"summary":"Run a report [Deprecation Planned]","description":"Directly retrieves report records. Note that page size is fixed \nat 20,000 records regardless of input. Use ReportExport for large sets.\n","parameters":[{"name":"AccountSID","in":"path","required":true,"description":"The unique identifier for the account.","schema":{"type":"string"}},{"name":"ReportId","in":"path","required":true,"description":"The unique ID or handle of the report to run.","schema":{"type":"string"}},{"name":"SUBAID","in":"query","required":true,"description":"The Program ID to filter report data.","schema":{"type":"integer"}},{"name":"StartDate","in":"query","required":true,"description":"Start date for the report (YYYY-MM-DD).","schema":{"type":"string","format":"date"}},{"name":"EndDate","in":"query","required":true,"description":"End date for the report (YYYY-MM-DD).","schema":{"type":"string","format":"date"}},{"name":"RQueryIDx","in":"query","description":"Specify which table to view if the report returns multiple tables.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A 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}}}}}}}}}}}}
```

## Retrieve report metadata

> Retrieves dynamic documentation for a report, including available \
> filters and output attributes.<br>

```json
{"openapi":"3.1.0","info":{"title":"Brand Report Export API","version":"v11"},"servers":[{"url":"https://api.impact.com"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"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":{"operationId":"getReportMetadata","tags":["Reports (Legacy)"],"summary":"Retrieve report metadata","description":"Retrieves dynamic documentation for a report, including available \nfilters and output attributes.\n","parameters":[{"name":"AccountSID","in":"path","required":true,"description":"The unique identifier for the account.","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: 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-v11/reference/report-export/reports-legacy.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.
