# Get Daily Usage

See how your task usage trends day by day, up to 45 days at a time.

`GET https://connect.mindcloud.co/v2/usage/daily`

Permissions: `subscription:view`.

## Parameters

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

### Query

- `from` (string): First day of the window (YYYY-MM-DD). Defaults to 29 days before "to".
- `to` (string): Last day of the window (YYYY-MM-DD). Defaults to today. Windows are capped at 45 days.

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/usage/daily?from=2026-07-01&to=2026-07-23' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `date` (string): The day (YYYY-MM-DD).
- `tasks` (number): Tasks used that day.
