---
title: "Create Key"
method: POST
path: "/v1/me/keys"
tags: ["Me"]
---

# Create Key

`POST /v1/me/keys`

Create a new API key.

## Request body

- CreateKey
  - `name` string, required
  - `expires` integer, nullable — Timestamp in seconds

## Response `201`

Successful Response

- CreateKeyResponse
  - `id` integer, required
  - `token` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/betagouv/apis/opengatellm.md) · [All operations](https://skmtc.net/betagouv/apis/opengatellm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/betagouv/opengatellm/revisions/0db3023472ef/schema)
