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

# Get Default Api Key

`GET /api/v1/auth/keys/default`

Get the user's default API key. If no default is set, returns the first (oldest) active API key.
This respects user preference for default key selection.

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)
