# lg_gateway_keys_list: Inference API keys

List the organization's inference API keys (sk-lg-v1-…) with each one's limits and spend (today, this month, in total). Secrets are never shown again.

- **Changes data:** no (read only)
- **Credential scope:** `gateway:read` (an API key's scopes, or what you allowed when connecting with OAuth)
- **Assistant level:** any connected assistant (Read only and up)

## Inputs

| Field | Type | Required | Notes |
|---|---|---|---|
| `query` | object (cursor, limit) | no |  |
| `query.cursor` | string | no |  |
| `query.limit` | integer | no |  |

## Example MCP call

A `tools/call` request to `https://manage.restolayer.com/mcp`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_gateway_keys_list",
    "arguments": {
      "query": {
        "limit": 20
      }
    }
  }
}
```

## Example REST call

The same thing over REST (`GET /v1/gateway-keys`):

```bash
curl -s -X GET "https://manage.restolayer.com/v1/gateway-keys?limit=20" \
  -H "Authorization: Bearer $LG_API_KEY"
```

All tools: [MCP tools](https://www.restolayer.com/docs/mcp/tools). Connecting: [connect your assistant](https://www.restolayer.com/docs/connect).
