> For the complete documentation index, see [llms.txt](https://docs.stormss.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stormss.cc/developers/public-reference/user-scan-history.md).

# User Scan History

## Checking A Users Scan History

<mark style="color:green;">`POST`</mark> `https://stormss.cc/api/history/`

Gets The Previous Pins A User Has Been Scanned With

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Query**

| Name         | Type   | Description     |
| ------------ | ------ | --------------- |
| `DISCORD_ID` | string | Discord User ID |

**Response**

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

```json
{
  "pins": [
    {
      "link": "https://stormss.cc/results/9989418",
      "pin": 9989418
    },
    {
      "link": "https://stormss.cc/results/3824628",
      "pin": 3824628
    },
    {
      "link": "https://stormss.cc/results/6225752",
      "pin": 6225752
    },
    {
      "link": "https://stormss.cc/results/5353718",
      "pin": 5353718
    },
    {
      "link": "https://stormss.cc/results/928973",
      "pin": 928973
    }
  ]
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
