---
title: LiumScopeError
sidebar_label: LiumScopeError
sidebar_position: 10
---

> ## 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. -->

# LiumScopeError

```python
from lium.sdk import LiumScopeError
```

Defined in `lium.sdk.exceptions`.

The API key lacks the scope the route needs (403 ``API key '<name>' does not have the '<scope>' scope``).

``scope`` is the missing scope (``read``, ``rent``, ``manage``, ``billing``) when the server named it,
else ``None``. Another key with that scope fixes this, not funds or verification.

```python
LiumScopeError(
    message: str,
    *,
    scope: str | None = None,
    code: str | None = None,
    hint: str | None = None,
    request_id: str | None = None
)
```

## Attributes

| Name | Type | Description |
| --- | --- | --- |
| `scope` |  |  |
