---
title: "Create a gateway API key"
method: POST
path: "/api/keys"
tags: ["API Keys"]
---

# Create a gateway API key

`POST /api/keys`

## Request body

- object
  - `label` string

## Response `201`

Created. The secret is returned once.

- object
  - `id` string
  - `label` string
  - `key` string — The secret value — shown once, store it now.

## Other responses

- `401` — Invalid or missing gateway key

---

[API](https://skmtc.net/berriai/apis/litellm-agent-platform-api.md) · [All operations](https://skmtc.net/berriai/apis/litellm-agent-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/berriai/litellm-agent-platform-api/versions/63cf31f8069f/schema)
