Get an API key
Keys

POST /v1/keys

Create an API key. No key needed to call this.

POST/v1/keys

Creates a key for an email address and returns it once. We keep only its SHA-256 hash, so store the key when you get it.

Body

Field Type Required Notes
email string Yes A valid email address. Stored lower-cased.
name string No A label for the key, up to 64 characters.

Response

201 Created

Key Meaning
key The API key. Shown only in this response.
key_id Stable id for the key, safe to log.
key_prefix First 12 characters of the key, safe to display.
email, name, created_at What you sent, and when the key was made.
Shown once

We cannot show key again. If you lose it, create a new key and revoke the old one.

Errors

HTTP error When
400 invalid_request Missing or invalid email, or an unknown body key.
409 too_many_keys The email already has 5 active keys.
429 rate_limited 5 keys per hour from one network. See the Retry-After header.