# DELETE /v1/keys/me

> Revoke the key you are calling with.

Source: https://docs.invariant-ai.com/api/key-revoke

`DELETE https://api.invariant-ai.com/v1/keys/me`

Revokes the key on the request. It stops working within a minute on every server. This cannot be undone; create a new key if you need one.

```bash
curl -s -X DELETE https://api.invariant-ai.com/v1/keys/me \
  -H "X-API-Key: $INVARIANT_API_KEY"
```

Response 200:

```json
{
  "key_id": "key_3f9a1c2b7d41",
  "revoked": true
}
```

Response 401:

```json
{
  "detail": {
    "error": "auth_invalid",
    "message": "API key not recognised or revoked."
  }
}
```

## Headers

| Header | Notes |
| --- | --- |
| `X-API-Key` | The key to revoke. |

## Response

| Key | Meaning |
| --- | --- |
| `key_id` | The revoked key's id. |
| `revoked` | `true`. |
