# Requests

## Get Waitlist

<mark style="color:blue;">`GET`</mark> `https://report.stopmodreposts.org/api/v1/waitlist`

The waitlist is a list of sites which are waiting for review. These sites cannot be submitted until they're of the waitlist (reviewed).

{% tabs %}
{% tab title="200: OK " %}
```javascript
[
  {
    "domain": "example.com",
    "type": "report",
    "timestamp": "2022-05-23 17:27:30.324524"
  },
  ...
]

```
{% endtab %}
{% endtabs %}

## Get Blacklist

<mark style="color:blue;">`GET`</mark> `https://report.stopmodreposts.org/api/v1/blacklist`

The blacklist is a list of (manually) blocked domains. These domains cannot be submitted.

{% tabs %}
{% tab title="200: OK " %}
```javascript
[
  {
    "domain": "example.com"
  },
  ...
]
```
{% endtab %}
{% endtabs %}

## Post Report

<mark style="color:green;">`POST`</mark> `https://report.stopmodreposts.org/api/v1/report`

Post a site report or a false-positive report to this endpoint to get it reviewed by us.

{% tabs %}
{% tab title="201: Created Success" %}
```javascript
{
    "detail": "Success!",
    "already_listed": False,
    "under_review": False,
    "blacklist": False,
    "data": {
        "domain": "example.com",
        "description": "Test description",
        "false-positive": False | True
    }
}
```
{% endtab %}

{% tab title="409: Conflict Domain already listed or on waitinglist" %}
```javascript
{
    "detail": "Failed to report - domain already listed",
    "already_listed": False | True,
    "under_review": False | True,
    "blacklist": False,
    "data": {
        "domain": "example.com",
        "description": "Test description",
        "false-positive": False | True
    }
}
```
{% endtab %}

{% tab title="400: Bad Request Domain on blacklist" %}
```javascript
{
    "detail": "Failed to report - domain blacklisted",
    "already_listed": False,
    "under_review": False,
    "blacklist": True,
    "data": {
        "domain": "example.com",
        "description": "Test description",
        "false-positive": False | True
    }
}
```
{% endtab %}
{% endtabs %}
