---
title: "Create a team API key"
method: POST
path: "/organizations/{orgId}/api-keys"
tags: ["organizations"]
---

# Create a team API key

`POST /organizations/{orgId}/api-keys`

Creates an API key owned by the organization. Requires admin role.

## Path parameters

- `orgId` string, required

## Request body

- CreateTeamApiKeyBody
  - `name` string, required — Name for the team API key

## Response `201`

API key created (key value only shown on creation)

- TeamApiKeyCreated
  - `id` string, required
  - `name` string, required
  - `key` string, required
  - `createdAt` string, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden — user is not an admin

---

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