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

# api

# `prefect.cli.api`

API command — native cyclopts implementation.

Make direct requests to the Prefect API.

## Functions

### `api_request` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/api.py#L130" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
api_request(method: str, path: str)
```

Make a direct request to the Prefect API.
