# /renew

## a new access token.

<mark style="color:blue;">`GET`</mark> `geolytix.xyz/auth/token/renew`

This endpoint requires a valid access token and will return a new access token with renewed expiry.

#### Query Parameters

| Name  | Type   | Description                               |
| ----- | ------ | ----------------------------------------- |
| token | string | The access token which should be renewed. |

{% tabs %}
{% tab title="200 If successful a token with 120 seconds expiry will be returned." %}
```
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImRlbm5pcy5iYXVzenVzQGdlb2x5dGl4LmNvLnVrIiwiYWNjZXNzIjoiYXBpIiwiaWF0IjoxNTQxODU2NzEwfQ.fFQxuYls5560CWdnIO13vwOa229TJYSDxYCVD56y***
```
{% endtab %}

{% tab title="401 Returned when trying to renew an invalid (or already expired) token." %}
```
'Invalid token'
```
{% endtab %}
{% endtabs %}

