---
raw: true
search:
  tags:
    - Account
    - GET
seo:
  description: >-
    Returns the team's API keys with previews and policies. Full secrets are
    returned only once… Reference for the GET /v1/api-keys endpoint in the
    Spacefast API.
sidebar:
  label: List a team's API keys
  badge: GET
title: List a team's API keys
type: openapi-operation
---
Returns the team's API keys with previews and policies. Full secrets are returned only once at creation.

`GET /v1/api-keys`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": [
    {
      "id": "string",
      "name": "string",
      "subject": {
        "type": "user",
        "id": "string"
      },
      "ownerPrincipal": {
        "type": "team",
        "id": "string"
      },
      "createdByUserId": "string",
      "collection": "team",
      "preset": "ci_deploy",
      "teamScope": {},
      "policy": {
        "version": "2026-06-09",
        "statements": [
          {
            "effect": "allow",
            "actions": [
              "spaces:read"
            ],
            "resources": [
              "string"
            ],
            "conditions": {
              "request.client": "dashboard"
            }
          }
        ]
      },
      "metadata": {
        "property1": null,
        "property2": null
      },
      "secretPreview": "string",
      "notBefore": "2019-08-24T14:15:22Z",
      "expiresAt": "2019-08-24T14:15:22Z",
      "ipAllowlist": [
        "string"
      ],
      "revokedAt": "2019-08-24T14:15:22Z",
      "enabled": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "lastRequestAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}
```
