---
title: "Generate New Api Key"
method: POST
path: "/v1/auth/keys"
tags: ["Authentication & API Keys"]
---

# Generate New Api Key

`POST /v1/auth/keys`

## Request

- Base URL: `https://api.vectelos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.vectelos.com/v1/auth/keys`
- Auth: none declared

## Headers

- `authorization` string, nullable: Bearer <JWT session token>

## Cookies

- `vx_session` string, nullable

## Request body

- CreateKeyRequest
  - `name` string
  - `is_test` boolean

## Response `201`

Successful Response

- KeyResponse
  - `id` string, required
  - `name` string, required
  - `api_key` string, required: Raw API key (only shown once upon generation)
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

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