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

# Create Api Key Route

`POST /api/v1/api_key/`

## Request body

- ApiKeyCreate
  - `name` string, nullable
  - `last_used_at` string, date-time, nullable
  - `total_uses` integer
  - `is_active` boolean
  - `api_key` string, nullable
  - `user_id` string, uuid, nullable
  - `created_at` string, date-time, nullable

## Response `200`

Successful Response

- UnmaskedApiKeyRead
  - `name` string, nullable
  - `last_used_at` string, date-time, nullable
  - `total_uses` integer
  - `is_active` boolean
  - `id` string, uuid, required
  - `api_key` string, required
  - `user_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-18** `191b57fc530b` — 1 info
  - endpoint added
- **2026-02-10** `0be341779529` — 1 breaking
  - api path removed without deprecation
- **2025-10-16** `9bd3e81318d7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/api_key/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/191b57fc530b/schema)
