# Revoke the key you send

> Revokes the key in the header, whatever its state, even while it waits for approval. Use it the moment a key may have leaked.


`DELETE https://dev.siteswap.pro/api/v1/keys/self`

Revokes the key in the header, whatever its state, even while it waits for approval. Use it the moment a key may have leaked.

## Responses

- 200: OK
- 400: bad_request, key_in_url or invalid_json: the request could not be read
- 401: missing_key or invalid_key: no key, or a key that is not valid or was revoked
- 403: key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
- 404: not_found: nothing here that you may see
- 413: too_large: the body is over 256 KB
- 429: rate_limited or daily_quota: wait for Retry-After seconds

## Response fields

- `revoked` (string)

```json
{
  "data": {
    "revoked": "string"
  },
  "meta": {
    "request_id": "3f9a1c0b7d2e",
    "api_version": "v1"
  }
}
```

## Example

```bash
curl -X DELETE "https://dev.siteswap.pro/api/v1/keys/self" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```