# Authentication

<mark style="color:green;">`POST`</mark> `https://api.printway.io/cdn/api/auth/v1/token`

#### Request Body

| Name                                       | Type   | Description                        |
| ------------------------------------------ | ------ | ---------------------------------- |
| email<mark style="color:red;">\*</mark>    | String | Your email in Printway Fulfillment |
| password<mark style="color:red;">\*</mark> | String | Your Password                      |

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

```javascript
{
    "status": 200,
    "message": "Access Token generated",
    "result":  {
        "access_token": "NzJkZmQwOGQ2YTY1ZjAwM2E4N2JkMGU3NTI0MzQ0MWI5ZTllZmNmYmY3ZmYzNTYzNj1ZWEwNDQyMmMzZDI3OGQ"
    }
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "status": 404,
    "message": "Missing requirement information",
    "result": []
}
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://api.printway.io/cdn/api/auth/v1/token`

#### Request Body

| Name                                       | Type   | Description                        |
| ------------------------------------------ | ------ | ---------------------------------- |
| email<mark style="color:red;">\*</mark>    | String | Your email in Printway Fulfillment |
| password<mark style="color:red;">\*</mark> | String | Your Password                      |

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

```javascript
{
    "status": 200,
    "message": "success",
    "result": {
        "access_token": "NzJkZm0MWI5ZTllZmNmYmY3ZzY0YjUyZTNkOTA3YzQ1ZWEwNDQyMmMzZDI3OGQ"
    }
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "status": 404,
    "message": "Missing requirement information",
    "result": []
}
```

{% endtab %}
{% endtabs %}
