# Rate Limits & Policies

## Rate Limits

To maintain fair usage and performance, the following rate limits have been implemented on the [DAP Query API](https://developerdocs.instructure.com/services/dap/query-api).

<table data-full-width="false"><thead><tr><th width="203">Request</th><th width="403">Endpoint</th><th>Calls per minute</th></tr></thead><tbody><tr><td>Create job</td><td>POST <code>/query/{namespace}/table/{table}/data</code></td><td>5</td></tr><tr><td>Get job</td><td>GET <code>/job/</code></td><td>500</td></tr><tr><td>List tables</td><td>GET <code>/query/{namespace}/table</code></td><td>5</td></tr><tr><td>Get table schema</td><td>GET <code>/query/{namespace}/table/{table}/schema</code></td><td>500</td></tr><tr><td>Create pre-signed URLs</td><td>POST <code>/object/url</code></td><td>200</td></tr></tbody></table>

These limits are independent for each endpoint. Reaching the limit for one request type or endpoint does not impact the limits for other types or endpoints. For example, reaching the limit for GET requests on `/dap/query/canvas/table` will not affect your ability to make POST requests or use other GET endpoints.

{% hint style="info" %}
Since the CLI and Client Library are built on top of the Query API and use its endpoints, these rate limits apply to them as well.
{% endhint %}

If you anticipate needing higher limits, please contact your Customer Success Manager to discuss your requirements.

## Data Refresh

Data in DAP is refreshed every 4 hours. Except `new_quizzes` namespace where the data is refreshed every 8 hours.

## Data Retention

### Canvas and Catalog Namespaces

The DAP API does not support time-travel queries, meaning it only provides access to the latest state of the data. To retrieve the current dataset, you can use a snapshot query to capture a copy of the data as it exists at that moment. Afterward, use incremental queries to keep this data up-to-date by fetching only new, updated, or deleted records as changes occur within the Data Access Platform.

### Canvas Logs Namespace

Logs older than 30 days are no longer available via DAP API.

## Further Resources

Learn more details about [Instructure's Canvas API policies](https://www.instructure.com/policies/canvas-api-policy).


---

# 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://developerdocs.instructure.com/services/dap/limits-policies.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.
