> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WAAP service management

> Manage WAAP for customer accounts.

Use the **Products** page to enable WAAP for a customer account. The customer can see WAAP but can use it only when its status is **Active**.

In **General**, open **Accounts**, select the account ID, and open **Products**. The [product status](/reseller-support/accounts/service-statuses) determines whether the customer can use WAAP.

The **Product** filter in [usage reports](/reseller-support/reports-and-activity/generate-monthly-reports) includes WAAP. Billable consumption, the total or per-client accrual of protected domains, data volume, requests, or clean requests, is available through the WAAP Reseller API.

<p>An [API token](/account-settings/api-tokens) is required. Set it as an environment variable before running the examples:</p>

```bash theme={null}
export GCORE_API_KEY="{YOUR_API_KEY}"
```

## Get aggregated consumption

<p>Returns the selected metric aggregated across all matching clients into a single daily total for the reporting period.</p>

| Parameter | Description |
| - | - |
| `metric` | Path parameter: `domains`, `volume`, `requests`, or `requests_clean`. |
| `from` | Report start date (inclusive), in ISO 8601 format. Required. |
| `to` | Report end date (exclusive), in ISO 8601 format. Required. |
| `client_ids` | Client IDs to filter by. Omit to include every client. |
| `limit` | Number of items to return, up to 100. Defaults to 100. |
| `offset` | Number of items to skip. Defaults to 0. |

```bash theme={null}
curl -s "https://api.gcore.com/waap/reseller/v1/prebilling/total/requests?from=2026-07-01&to=2026-07-08" \
  -H "Authorization: APIKey $GCORE_API_KEY"
```

<p>The API returns:</p>

```json theme={null}
{
  "limit": 100,
  "offset": 0,
  "count": 7,
  "results": [
    {"date": "2026-07-01", "amount": 128340},
    {"date": "2026-07-02", "amount": 131980}
  ]
}
```

<p>The `amount` field reports the accrued value of the selected metric for that date.</p>

## Get consumption per client

<p>Returns the same metric keyed by client ID, with one list of daily entries per client instead of a single aggregated total. It accepts the same parameters as the aggregated total endpoint.</p>

```bash theme={null}
curl -s "https://api.gcore.com/waap/reseller/v1/prebilling/breakdown/requests?from=2026-07-01&to=2026-07-08" \
  -H "Authorization: APIKey $GCORE_API_KEY"
```

<p>The API returns:</p>

```json theme={null}
{
  "limit": 100,
  "offset": 0,
  "count": 2,
  "results": {
    "clients": {
      "12345": [
        {"date": "2026-07-01", "amount": 54200},
        {"date": "2026-07-02", "amount": 55830}
      ],
      "67890": [
        {"date": "2026-07-01", "amount": 74140},
        {"date": "2026-07-02", "amount": 76150}
      ]
    }
  }
}
```

<p>Each key under `clients` is a client ID, and its value is the same `date` and `amount` pairs returned by the aggregated total endpoint, scoped to that one client.</p>
