---
title: "Get First Api Key"
method: GET
path: "/api/v1/auth/keys/first"
tags: ["Auth"]
---

# Get First Api Key

`GET /api/v1/auth/keys/first`

Get the first (oldest) active API key for the current user.
This is used for automatic API key selection on login.

Requires JWT Bearer authentication with the token received from the login endpoint.

## Response `200`

Successful Response

- APIKeyDB — Schema for API key in database response.
  - `id` integer, required
  - `key_prefix` string, required
  - `name` string
  - `created_at` string, date-time, required
  - `is_active` boolean, required
  - `is_default` boolean
  - `encrypted_key` string
  - `encryption_version` integer

---

[API](https://skmtc.net/morpheusais/apis/morpheus-api-gateway.md) · [All operations](https://skmtc.net/morpheusais/apis/morpheus-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morpheusais/morpheus-api-gateway/versions/061297d1593b/schema)
