---
title: "Create API Key"
method: POST
path: "/v0/api-keys"
tags: ["ApiKeys"]
---

# Create API Key

`POST /v0/api-keys`

## Request body

- CreateApiKeyRequest
  - `name` string, required — Name of api key.

## Response `200`

- CreateApiKeyResponse
  - `api_key_id` string, required — ID of api key.
  - `api_key` string, required — API key.
  - `prefix` string, required — Prefix of api key.
  - `name` string, required — Name of api key.
  - `created_at` string, date-time, required — Time at which api key was created.

## Other responses

- `400`

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/6e84a95db8ff/schema)
