---
title: "List API keys"
description: "Companies and keys API"
---

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

# List API keys

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/keys</code>
</div>
</div>

Returns this company's API keys: name, prefix, environment and dates. The secret is never returned.

A secret is shown once when the key is created and is never stored, so a support request can quote only the name and the twelve-character prefix.

Only a signed-in person may call this. An API key is refused with 401 `session_required`.

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{keys: [ApiKey]}`, newest first. A key with a non-null `revokedAt` is revoked and still listed, so the history stays complete. |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used where only a signed-in person may act (`session_required`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/workspaces/list-api-keys/index.mdx
