Skip to content

Docs

Quickstart: REST API

Markdown version

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:

    export LG_API_KEY=lg_live_…
  2. Read.

    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, and the reference lists them by resource.

Errors are { "error": { "code", "message", "details" } }; see errors.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.