# POST /v1/keys/verify-email

> Email a 6-digit code that proves you own the address. No key needed.

Source: https://docs.invariant-ai.com/api/verify-email

`POST https://api.invariant-ai.com/v1/keys/verify-email`

Sends a 6-digit code to the address. Send it back as `code` on [`POST /v1/keys`](https://docs.invariant-ai.com/api/keys) within 10 minutes. A new
request replaces the previous code.

```bash
curl -s -X POST https://api.invariant-ai.com/v1/keys/verify-email \
  -H "Content-Type: application/json" \
  -d '{"email": "you@company.com"}'
```

Response 202:

```json
{
  "sent": true,
  "email": "you@company.com",
  "expires_in": 600,
  "resend_after": 30,
  "code_length": 6
}
```

## Body

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `email` | string | Yes | Where to send the code. |

## Limits

- One code per address every 30 seconds, and 5 per hour.
- 20 codes per hour from one network.
- A code allows 5 tries and works once.

## Errors

| HTTP | `error` | When |
| --- | --- | --- |
| 400 | `invalid_request` | Missing or invalid email. |
| 429 | `rate_limited` | Too many codes. See the `Retry-After` header. |
| 503 | `email_unavailable` | The email could not be sent. Retry after `Retry-After` seconds. |
