---
search:
  tags:
    - API keys
    - GET
seo:
  description: >-
    Returns the API keys you manage, without the keys themselves. Each one says
    what it can do,… Reference for the GET /_luna/tokens endpoint in the Luna
    API.
sidebar:
  label: List API keys
  badge: GET
title: List API keys
type: openapi-operation
---
Returns the API keys you manage, without the keys themselves. Each one says what it can do, what it reaches and when it was last used.

`GET /_luna/tokens`

**Responses**

- `200` — The keys.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "tokens": [
    {
      "id": "string",
      "name": "string",
      "scopes": [
        "string"
      ],
      "tenants": [
        "string"
      ],
      "createdMs": 0,
      "project": "string",
      "root": "string",
      "org": "string",
      "environments": [
        "string"
      ],
      "expiresMs": 0,
      "createdBy": "string",
      "lastUsedMs": 0
    }
  ]
}
```
