# Refresh Token

## API REFRESH TOKEN

<mark style="color:green;">`POST`</mark> `https://dsc-ocr.udata.id/api/user/token/refresh`

This endpoint allows you to get refresh token.

#### Request Body

| Name           | Type   | Description |
| -------------- | ------ | ----------- |
| refresh\_token | string |             |

{% tabs %}
{% tab title="200 Token refreshed." %}
```
{
    "result": {
        "token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJsOG5Ma2ZtX2VYMDcydlhrMlhYMm91cFVEUmQwY2dmRzR3anltMjR2NjV3In0.eyJleHAiOjE2MjU4MDg5NzgsImlhdCI6MTYyNTgwODY3OCwianRpIjoiY2IwYjgzM2YtZTBlZi00Yjg5LThkNDQtM2Y2ZmI2OGYyNjA2IiwiaXNzIjoiaHR0cDovL2tleWNsb2FrOjgwODAvYXV0aC9yZWFsbXMvb2NyIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImYwNWI4ZDkyLTBlNTMtNDU1MS1hZGJhLTBjYjU4NGQ4MTAwMiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFkbWluIiwic2Vzc2lvbl9zdGF0ZSI6IjU2NzI2NTk4LTkyNGQtNDIyNS1iZjQzLTc1MDUwMWQ5NzNiMyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cHM6Ly9kc2Mtb2NyLnVkYXRhLmlkIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJlbWFpbCBwcm9maWxlIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJuYW1lIjoiYWJkYW5tdWxpYSBhYmRhbm11bGlhIiwicHJlZmVycmVkX3Vz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sInNjb3BlIjoiZW1haWwgcHJvZmlsZSJ9.SqL1oF7DZMjpzMqgF1IX84XNg9SPElDP4XktyvEepns"
    },
    "success": true
}
```
{% endtab %}

{% tab title="403 Refresh token invalid / expired." %}
```
{
    "message": "key token invalid",
    "success": false
}
```
{% endtab %}
{% endtabs %}

