# Quickstart: REST API

**You need:** an API key in `LG_API_KEY` and any HTTP client.

1. **Get a key.** Sign up at https://app.restolayer.com/sign-up. Create a key in Settings → API keys with `gateway:read`.
   Keep it in an environment variable:

   ```bash
   export LG_API_KEY=lg_live_…
   ```
2. **Read.**

   ```bash
   curl -s https://manage.restolayer.com/v1/me -H "Authorization: Bearer $LG_API_KEY"
   curl -s https://manage.restolayer.com/v1/workspaces -H "Authorization: Bearer $LG_API_KEY"
   ```
3. **Check it.** The spec for every route is at
   [https://www.restolayer.com/openapi.json](https://www.restolayer.com/openapi.json), and [the reference](https://www.restolayer.com/docs/api) lists them by resource.

Errors are `{ "error": { "code", "message", "details" } }`; see [errors](https://www.restolayer.com/docs/errors).
