---
title: "Create Api Key"
method: POST
path: "/keys"
tags: ["Keys"]
---

# Create Api Key

`POST /keys`

Creates an API key for a user.

Args:
    request (Request): The request object containing the user ID in the request state.

Returns:
    str: The created API key.

## Response `200`

Successful Response

- string

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/ea6421d829f1/schema)
