---
title: "POST /api/keys"
method: POST
path: "/api/keys"
tags: ["keys"]
---

# POST /api/keys

`POST /api/keys`

## Request

- Base URL: `https://cronitor.io`
- URL: `https://cronitor.io/api/keys`
- Auth: HTTP basic

## Headers

- `Cronitor-Version` '2025-11-28' | '2020-10-01'

## Request body

- ApiKeyRequest
  - `name` string, required
  - `kind` 'telemetry' | 'sdk' | 'custom': * `telemetry` - Telemetry * `sdk` - SDK Integration * `custom` - Custom
  - `scopes` unknown

## Response `201`

- ApiKey
  - `key` string, required
  - `name` string, required
  - `kind` 'telemetry' | 'sdk' | 'custom': * `telemetry` - Telemetry * `sdk` - SDK Integration * `custom` - Custom
  - `scopes` unknown
  - `immutable` string, required
  - `last_used` string, required
  - `created` string, date-time, required
  - `updated` string, date-time, required

---

[API](https://skmtc.dev/cronitor/apis/cronitor-api.md) - [All operations](https://skmtc.dev/cronitor/apis/cronitor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cronitor/apis/cronitor-api/revisions/62fb38ef4462?raw)
