---
title: ApiKeyRefusal
sidebar_label: ApiKeyRefusal
sidebar_position: 12
---

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

<!-- Generated by scripts/generate_sdk_reference.py. Do not edit directly. -->

# ApiKeyRefusal

```python
from lium.sdk import ApiKeyRefusal
```

Defined in `lium.sdk.models`.

One row of ``GET /keys/\{id\}/refusals`` (server support pending): a request the key's budget
refused — when, which window was hit (``daily`` / ``monthly`` / ``max``), the route asked, the USD asked
for, and the budget and spend at the time. ``raw`` is the server's row.

```python
ApiKeyRefusal(
    at: Optional[str] = None,
    window: Optional[str] = None,
    route: Optional[str] = None,
    amount_usd: Optional[float] = None,
    budget_usd: Optional[float] = None,
    spent_usd: Optional[float] = None,
    raw: Dict[str, Any] = <factory>
)
```

## Fields

| Name | Type | Default |
| --- | --- | --- |
| `at` | Optional[str] | `None` |
| `window` | Optional[str] | `None` |
| `route` | Optional[str] | `None` |
| `amount_usd` | Optional[float] | `None` |
| `budget_usd` | Optional[float] | `None` |
| `spent_usd` | Optional[float] | `None` |
| `raw` | Dict[str, Any] |  |
