> For the complete documentation index, see [llms.txt](https://ajaib.gitbook.io/ajaib-exchange-open-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajaib.gitbook.io/ajaib-exchange-open-api/getting-started/api-security/invalidate-api-key.md).

# Invalidate API Key

This endpoint invalidates an active API key, rendering it unusable for further requests.

<mark style="color:red;">`DELETE`</mark> `/auth/v1/api-key`

**Headers**

| Name          | Value                               |
| ------------- | ----------------------------------- |
| Content-Type  | `application/x-www-form-urlencoded` |
| Authorization | \<User JWT Token>                   |

**Body**

\-

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "code": "200000",
  "message": "API key successfully invalidated"
}
```

{% endtab %}
{% endtabs %}

**WARNING: DO NOT SHARE YOUR API KEY WITH ANYONE.**
