# Authentication

To access the Portal Endpoints you need to be authorized. You need a JWT token to authorize yourself. Use the authorization header to send your JWT token.

```
// Authorized call
{
  "headers": {
    "authorization": "Bearer ..."
  }
}
```

## Login

<mark style="color:green;">`POST`</mark> `https://cruit-api.zisoo.nl/api/v1/portal/user_token`

Returns JWT for authorization

#### Path Parameters

| Name | Type   | Description                              |
| ---- | ------ | ---------------------------------------- |
| auth | object | Object with user info, see example below |

{% tabs %}
{% tab title="200 " %}
```
{
  "jwt": jwt_token,
  "exp": timestamp
}
```
{% endtab %}
{% endtabs %}

```
{
  "auth": {
    "email": "test@example.com"
    "password": "YOUR_PASSWORD"
  }
}
```
