---
title: "Create Api Key"
method: POST
path: "/api/v1/account-api-keys"
tags: ["account-api-keys"]
---

# Create Api Key

`POST /api/v1/account-api-keys`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/account-api-keys`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Create new API key.

## Request body

- AccountApiKeyCreate
  - `name` string, required
  - `status` string, nullable

## Response `201`

Successful Response

- AccountApiKeyCreateResponse
  - `name` string, required
  - `status` string, nullable
  - `id` integer, required
  - `key_value` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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