# Revoke this key

> Switches off the key sent in the header. The only way to revoke a key made without a sign-in, and the quickest for any key that leaked.


`DELETE https://payday.direct/api/v1/keys/self`

Switches off the key sent in the header. The only way to revoke a key made without a sign-in, and the quickest for any key that leaked.

## Responses

- 200: Revoked
- 401: No key, or not a valid key

```json
{
  "revoked": "pd_aB3dE9xQ"
}
```

## Example

```bash
curl -X DELETE "https://payday.direct/api/v1/keys/self" \
  -H "Authorization: Bearer pd_YOUR_KEY"
```