---
title: "Create API key (alias)"
method: POST
path: "/v1/keys"
tags: ["auth"]
---

# Create API key (alias)

`POST /v1/keys`

## Request

- Base URL: `https://agentlair.dev`
- URL: `https://agentlair.dev/v1/keys`
- Auth: none required

Alias for `POST /v1/auth/keys`. Returns a slightly different response shape.

## Request body

- object
  - `name` string
  - `email` string, email

## Response `201`

API key created

- object
  - `key` string: Full API key — save immediately
  - `account_id` string
  - `created_at` string, date-time
  - `note` string

## Other responses

- `429`: Rate limited

---

[API](https://skmtc.dev/agentlair/apis/agentlair-api.md) · [All operations](https://skmtc.dev/agentlair/apis/agentlair-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlair/apis/agentlair-api/revisions/fac95ff4995d?raw)
