---
title: "View API keys"
method: GET
path: "/accounts/api-keys"
tags: ["API Keys"]
---

# View API keys

`GET /accounts/api-keys`

Retrieves the metadate for all API keys for the specified user.
- The function allows users to view the metadata for all active API keys for their own account
- Root and administrator users can view API keys metadata associated with other users on the same account.

## Query parameters

- `email` string, email

## Response `200`

API keys retrieved successfully

- object
  - `data` ViewApiKey[], required
    - `id` string — API key ID
    - `name` string — API key name
    - `last_4_characters` string — Last 4 characters of API key
    - `created_on` string, date-time — Creation date
    - `expires_on` string, date-time — Expiration date
    - `account` string — Account name

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
