<a id="restapi"></a>

# REST API

These reference guides cover the REST APIs exposed by LXD, its main API and the DevLXD API.

## The main LXD API

The main LXD API can be used for managing instances, networks, storage, and other resources, and for subscribing to the event log.

* [Main API overview](https://canonical.com/lxd/docs/latest/rest-api/index.html.md)
* [Main API specification](https://canonical.com/lxd/docs/latest/api/index.html.md)
* [Main API extensions](https://canonical.com/lxd/docs/latest/api-extensions/index.html.md)
* [Events stream](https://canonical.com/lxd/docs/latest/events/index.html.md)

## DevLXD API

The DevLXD API allows instances to communicate with their host over a Unix socket.

* [DevLXD API for instances](https://canonical.com/lxd/docs/latest/dev-lxd/index.html.md)

## Related topics

How-to guides:

- [LXD server and client](https://canonical.com/lxd/docs/latest/operation/index.html.md#lxd-server)

Explanation:

- [About `lxd` and `lxc`](https://canonical.com/lxd/docs/latest/explanation/lxd_lxc/index.html.md#lxd-lxc)
- [The LXD Dqlite database](https://canonical.com/lxd/docs/latest/database/index.html.md#database)
