ApiKeyRefusal
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.
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] |