---
title: "Create API Key"
method: POST
path: "/api-keys"
tags: ["Team Management"]
---

# Create API Key

`POST /api-keys`

Creates a new API key for the authenticated team. Optionally specify a name, rate limit, and budget for the API key.

## Request body

- object
  - `name` string — Optional name for the API key
  - `rateLimit` integer — Optional rate limit for the API key (requests per second)
  - `budgetCents` integer, nullable — Optional spending budget for the API key, in cents. Set to null to remove the budget.

## Response `200`

API key created successfully

- object
  - `apiKey` object
    - `id` string, uuid — Unique identifier for the API key
    - `name` string — Name of the API key
    - `rateLimit` integer, nullable — Rate limit in requests per second
    - `budgetCents` integer, nullable — Spending budget for the API key, in cents
    - `isOverBudget` boolean — Whether the API key is currently over its budget
    - `teamId` string, uuid — Team ID this key belongs to
    - `userId` string, uuid — User ID who created this key
    - `createdAt` string, date-time — When the key was created

## Other responses

- `400` — Bad Request - Invalid parameters
- `401` — Unauthorized - Invalid or missing service key

---

[API](https://skmtc.net/exa/apis/team-management-api.md) · [All operations](https://skmtc.net/exa/apis/team-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/exa/team-management-api/versions/ac1778eaaf11/schema)
