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

# Create team API key

`POST /team-api-keys`

Create a new API key for a user or team

## Request body

- object
  - `description` string, required
  - `expires_at_millis` number, nullable
  - `is_public` boolean
  - `team_id` string, required

## Response `200`

Successful response

- object
  - `value` string, required
  - `id` string, required
  - `description` string, required
  - `expires_at_millis` number
  - `manually_revoked_at_millis` number
  - `created_at_millis` number, required
  - `is_public` boolean, required
  - `type` 'team', required
  - `team_id` string, required

## Changes

> 24 revisions in range; 5 could not be searched.

- **2026-05-15** `180fda38d099` — 1 warning
  - added the new `team` enum value to the `type` response property for the response status `200`

[Change history](https://skmtc.dev/hexclave/apis/hexclave-rest-api-2/changes/team-api-keys/post.md)

---

[API](https://skmtc.dev/hexclave/apis/hexclave-rest-api-2.md) · [All operations](https://skmtc.dev/hexclave/apis/hexclave-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api-2/revisions/897c83038ab2/schema)
