> For the complete documentation index, see [llms.txt](https://ctection.gitbook.io/ctection-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ctection.gitbook.io/ctection-api/reports-and-warnings-database/warning-database-endpoints.md).

# Warning Database Endpoints

## Get Total Warnings

<mark style="color:blue;">`GET`</mark> `https://discordcaptcha.xyz/api//v1/get_warns`

Use this Endpoint to retrieve all Warnings a user has gotten.

#### Query Parameters

| Name   | Type   | Description                                                     |
| ------ | ------ | --------------------------------------------------------------- |
| apikey | string | Your CTection API Key                                           |
| userid | string | User ID of the User you are trying to retrieve all warnings for |

{% tabs %}
{% tab title="200 Will return nothing if user has no warnings, otherwise semi-CSV" %}

```
ID|    User ID       |    Reported by   |     Guild ID     |  Reason     |
12,675397016980946974,316980441502449666,554675435309629451,[Kick] Testing;13,675397016980946974,316980441502449666,554675435309629451,[Kick] Testing;
```

{% endtab %}
{% endtabs %}
