---
title: "Create Key"
method: POST
path: "/api/v1/keys"
tags: ["Keys"]
---

# Create Key

`POST /api/v1/keys`

## Request

- Base URL: `https://email-spam-tester.com` (the document declares no server; this is the origin it was published from)
- URL: `https://email-spam-tester.com/api/v1/keys`
- Auth: none declared

A new key for this email address. Asking again gives another key; the
earlier ones keep working, since anybody can type somebody else's address.

## Request body

- KeyIn
  - `email` string, required

## Response `201`

Successful Response

- KeyOut
  - `key` string, required
  - `email` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api.md) · [All operations](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api/llms.txt) · [OpenAPI document](https://skmtc.dev/email-spam-tester/apis/email-spam-tester-api/revisions/476a4c86600d?raw)
