# Check Whitelist

This endpoint facilitates the verification of user ownership for a specific product license within your hub. It's crucial for ensuring that only authorized users have access to particular products, maintaining a fair and secure environment for all participants.

## Check the Whitelist of a user

<mark style="color:blue;">`GET`</mark> `https://v2.parcelroblox.com/whitelist/check/:userid_type/:user_id`

#### Path Parameters

| Name                                           | Type   | Description               |
| ---------------------------------------------- | ------ | ------------------------- |
| userid\_type<mark style="color:red;">\*</mark> | string | "roblox" or "discord"     |
| user\_id<mark style="color:red;">\*</mark>     | string | Roblox or Discord User ID |

#### Query Parameters

| Name                                          | Type   | Description |
| --------------------------------------------- | ------ | ----------- |
| product\_id<mark style="color:red;">\*</mark> | String | Product ID  |

#### Headers

<table><thead><tr><th width="256">Name</th><th width="170">Type</th><th>Description</th></tr></thead><tbody><tr><td>Authorization<mark style="color:red;">*</mark></td><td>string</td><td>prod_DGzVhVsrqNJi4b0Chd9mMPUI9</td></tr><tr><td>Content-Type</td><td>string</td><td>application/json</td></tr></tbody></table>

{% tabs %}
{% tab title="200: OK " %}
If everything was able to process properly:

```javascript
{ "status": "200", "message": "OK", "data": { "userid": string, "userid_type": string, "product_id": string, "owns_license": boolean } }
```

{% endtab %}

{% tab title="401: Unauthorized " %}
If you provided an invalid authorization key:

```javascript
{ "status": "401", "message": "Invalid authorization key." }
```

If you did not provide an authorization key:

```javascript
{ "status": "401", "message": "No authorization key was provided." }
```

{% endtab %}

{% tab title="400: Bad Request " %}
If you did not supply a Product ID:

```javascript
{ "status": "400", "message": "Missing Query Parameter.\nRequired params: product_id", "data": {} }
```

{% endtab %}

{% tab title="500: Internal Server Error " %}
If something was wrong on our end:

```javascript
{ "status": "500", "message": "Internal Server Error" }
```

{% endtab %}

{% tab title="404: Not Found " %}
If the product ID that you supplied does not exist:

```javascript
{ "status": "404", "message": "Product does not exist.", "data": {} }
```

If the user ID that you supplied does not exist within our Database:

```javascript
{ "status": "404", "message": "No Roblox Account associated to this Discord User ID.", "data": {} }
```

{% endtab %}
{% endtabs %}
