# Bypass Drive API

## Bypass Drive

<mark style="color:green;">`POST`</mark> `https://api.yuudrive.me/v1/bypass`

This endpoint allows you to bypass drive.

#### Headers

| Name                                     | Type   | Description           |
| ---------------------------------------- | ------ | --------------------- |
| apikey<mark style="color:red;">\*</mark> | string | Authentication token. |

#### Request Body

| Name                                 | Type   | Description      |
| ------------------------------------ | ------ | ---------------- |
| id<mark style="color:red;">\*</mark> | string | Google Drive ID. |

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

```javascript
{
    "code": 200,
    "limit": true,
    "result": {
        "id": "1Q1tepcTq3ZuMo6HFlSZmS6oYRIjD1XxX",
        "mimeType": "application/rar",
        "name": "[FILENAME].rar"
    },
    "success": true
}
```

{% endtab %}

{% tab title="202 " %}

```javascript
{
    "code": 202,
    "limit": false,
    "message": "This file is not limited, you can download it",
    "success": false
}
```

{% endtab %}

{% tab title="401 " %}

```javascript
{
    "code": 401,
    "message": "Require an API Key",
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```javascript
{
    "code": 404,
    "message": "File not found"
}
```

{% endtab %}
{% endtabs %}

## Check Limit

<mark style="color:blue;">`GET`</mark> `https://api.yuudrive.me/v1/bypass/check-limit`

This endpoint allows you to get limit file information from Google Drive.

#### Query Parameters

| Name                                 | Type   | Description           |
| ------------------------------------ | ------ | --------------------- |
| id<mark style="color:red;">\*</mark> | string | Google Drive File ID. |

#### Headers

| Name                                     | Type   | Description           |
| ---------------------------------------- | ------ | --------------------- |
| apikey<mark style="color:red;">\*</mark> | string | Authentication Token. |

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

```javascript
{
    "code": 200,
    "limit": true,
    "message": "This file is limited"
}
```

{% endtab %}

{% tab title="202 " %}

```javascript
{
    "code": 202,
    "limit": false,
    "message": "This file is not limited, you can download it"
}
```

{% endtab %}

{% tab title="404 " %}

```javascript
{
    "code": 404,
    "message": "File not found"
}
```

{% endtab %}
{% endtabs %}
