# forge.version.check_api_level

```python
forge.version.check_api_level(value: object) -> int
```

Return the declared level if Forge supports it, else raise ``ForgeApiError``.

``value`` is the module's ``FORGE_API`` constant, or ``None`` when the file
declares none. ``bool`` is refused even though it is an ``int`` subclass.

Since Forge API 1.
