---
title: "Create Api Key"
method: POST
path: "/v1/api_key"
tags: ["api_key"]
---

# Create Api Key

`POST /v1/api_key`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/api_key`
- Auth: HTTP bearer

Create an API key. The full key appears only in this response.

## Request body

- ApiKeyCreate
  - `name` string, required

## Response `200`

Successful Response

- ApiKeyCreateResponse: Create response — the only place the full key ever appears.
  - `id` integer, required
  - `name` string, required
  - `key_prefix` string, required
  - `created_at` string, date-time, required
  - `api_key` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
