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

# LayerRail API overview

> How the LayerRail REST API is structured, including base URLs, resource model, request and response formats, error codes, and rate limits.

The LayerRail API lets you automate project and infrastructure workflows with personal access tokens.

## Base URL

```text theme={null}
https://console.layerrail.com/api
```

## Authentication

API requests use a personal access token.

```bash theme={null}
curl https://console.layerrail.com/api/project \
  -H "Authorization: Bearer $LAYERRAIL_TOKEN"
```

## Request format

Use JSON for request bodies:

```bash theme={null}
curl https://console.layerrail.com/api/project \
  -H "Authorization: Bearer $LAYERRAIL_TOKEN" \
  -H "Content-Type: application/json"
```

## Response format

Successful list responses return an `items` array when multiple resources are returned.

```json theme={null}
{
  "items": []
}
```

Error responses include a machine-readable error code and message.

```json theme={null}
{
  "error": {
    "code": "InvalidRequest",
    "message": "missing required field"
  }
}
```

<Info>
  Endpoint-by-endpoint API pages will expand as the LayerRail public API stabilizes.
</Info>
