# Jwt

## List the jwt tokens of a user

<mark style="color:blue;">`GET`</mark> `https://api.tiledesk.com/v3/jwt/history`

#### Query Parameters

| Name      | Type   | Description                                                                                                          |
| --------- | ------ | -------------------------------------------------------------------------------------------------------------------- |
| sortField | string | what field to sort the results by.                                                                                   |
| direction | string | <p>sort direction: 1 or -1. Return the results in ascending or descending order.</p><p><em>defaults to desc</em></p> |
| page      | number | what page of results to fetch. defaults to first page.                                                               |

#### Headers

| Name          | Type   | Description                            |
| ------------- | ------ | -------------------------------------- |
| Authorization | string | authorization token. Basic Auth or JWT |

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

```
..
```

{% endtab %}
{% endtabs %}

## Revoke a jwt token by JTI (JWT identifier)

<mark style="color:red;">`DELETE`</mark> `https://api.tiledesk.com/v3/jwt/history/:jti`

#### Path Parameters

| Name | Type   | Description                        |
| ---- | ------ | ---------------------------------- |
| jti  | string | The JTI Json Web Token identifier. |

#### Headers

| Name          | Type   | Description                            |
| ------------- | ------ | -------------------------------------- |
| Authorization | string | authorization token. Basic Auth or JWT |

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

```
..
```

{% endtab %}
{% endtabs %}

## Revoke a jwt token by id

<mark style="color:red;">`DELETE`</mark> `https://api.tiledesk.com/v3/jwt/history/id/:id`

#### Path Parameters

| Name | Type   | Description        |
| ---- | ------ | ------------------ |
| id   | string | The JWT identifier |

#### Headers

| Name          | Type   | Description                            |
| ------------- | ------ | -------------------------------------- |
| Authorization | string | authorization token. Basic Auth or JWT |

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

```
..
```

{% endtab %}
{% endtabs %}
