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

# Create API key

`POST /v2/teams/api-keys`

## Request

- Base URL: `https://api.speedify.com`
- URL: `https://api.speedify.com/v2/teams/api-keys`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP basic

Create a new API key for this team. Admin only.

## Request body

- object
  - `description` string, required
  - `role` 'admin' | 'user' | 'guest'
  - `allowedIPs` string: Comma-separated IP addresses or CIDR ranges

## Response `200`

API key created

- object
  - `data` object

## Other responses

- `400`: Request validation failed
- `401`: Invalid or missing API key
- `403`: Valid API key but insufficient permissions
- `500`: Internal server error

---

[API](https://skmtc.dev/speedify/apis/speedify-teams-api.md) - [All operations](https://skmtc.dev/speedify/apis/speedify-teams-api/llms.txt) - [OpenAPI document](https://skmtc.dev/speedify/apis/speedify-teams-api/revisions/70fab50c8804?raw)
