# Report Database Endpoints

## Get Reports for User by ID

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

This endpoint allows you to get the total amount of Penalty Points for a User.&#x20;

#### Query Parameters

| Name   | Type   | Description                                                                   |
| ------ | ------ | ----------------------------------------------------------------------------- |
| apikey | string | Your CTection API Key                                                         |
| userid | string | The Discord User-ID of the User you are trying to get the Penalty Points from |

{% tabs %}
{% tab title="200 Returns Penalty Points as Integer" %}

```
0
```

{% endtab %}
{% endtabs %}

## Submit Automatic Report

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

This endpoint allows you to submit a report. You need to have the proper permission to submit a report. For more information on how to obtain this permission, visit the API Console.

#### Query Parameters

| Name   | Type    | Description                                      |
| ------ | ------- | ------------------------------------------------ |
| apikey | string  | Your CTection API Key                            |
| userid | string  | The User ID of the User you are trying to report |
| reason | string  | Reason for the report                            |
| proof  | string  | Why was the user reported                        |
| points | integer | Number of Penalty Points to submit               |

{% tabs %}
{% tab title="200 Returns the ID of the report" %}

```
12345
```

{% endtab %}
{% endtabs %}

## Submit Manual Report

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

Use this endpoint to add a report which was manually submit by a member (e.g. using a report command)

#### Query Parameters

| Name   | Type   | Description                                              |
| ------ | ------ | -------------------------------------------------------- |
| apikey | string | Your CTection API Key                                    |
| userid | string | The User ID of the User you are trying to report         |
| reason | string | Reason for the report                                    |
| proof  | string | Why was the user reported                                |
| points | string | Number of Penalty Points to submit (Please always use 1) |

{% tabs %}
{% tab title="200 Returns the ID of the report." %}

```
12345
```

{% endtab %}
{% endtabs %}
