Skip to main content

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​

NameTypeDefault
atOptional[str]None
windowOptional[str]None
routeOptional[str]None
amount_usdOptional[float]None
budget_usdOptional[float]None
spent_usdOptional[float]None
rawDict[str, Any]