---
title: "Mcp Keys"
method: GET
path: "/api/admin/mcp/keys"
---

# Mcp Keys

`GET /api/admin/mcp/keys`

## Request

- Base URL: `https://www.awardflightdaily.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.awardflightdaily.com/api/admin/mcp/keys`
- Auth: none declared

Get all MCP API keys from the mcp_api_keys table.

Query params:
    active_only (bool, optional): If true, return only active keys

Returns:
    {
        "keys": [
            {
                "id": integer,
                "key": "key_value",
                "agent_id": "agent_xxx",
                "tier": "free|pro|enterprise",
                "active": boolean,
                "created_at": "2024-01-01T00:00:00Z"
            },
            ...
        ]
    }

## Query parameters

- `active_only` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/awardflightdaily/apis/award-flight-database.md) · [All operations](https://skmtc.dev/awardflightdaily/apis/award-flight-database/llms.txt) · [OpenAPI document](https://skmtc.dev/awardflightdaily/apis/award-flight-database/revisions/93e62de446f9?raw)
