---
title: "Create an API key"
method: POST
path: "/services/usermanagement/api/api-keys"
tags: ["Leaf Link > API Keys"]
---

# Create an API key

`POST /services/usermanagement/api/api-keys`

## Request body

- object
  - `leafUserId` string
  - `expiresIn` integer
  - `description` string

## Response `201`

Created

---

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