---
title: Refresh Access Token
slug: connect/refresh-access-token
docTags: 
createdAt: 2023-11-25T11:10:13.762Z
---

:::ApiMethodV2
```json
{
  "name": "refresh",
  "method": "GET",
  "url": "https://api-sandbox.klavi.ai/data/v1/refresh",
  "description": "Refresh the access token",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "UpYoU-IxK7iMGT2Zo-ck8",
        "language": "curl",
        "code": "curl --location 'https://api-sandbox.klavi.ai/data/v1/refresh' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "UpYoU-IxK7iMGT2Zo-ck8"
  },
  "results": {
    "languages": [
      {
        "id": "0vaYIZelQPry63bcuh79D",
        "language": "200",
        "customLabel": "",
        "code": "{\n      \"accessToken\": \"JhbGciOiJFUzI1NiIs.QtYjAyOC1hN2ZhMWFjZGRjZjkiLCJ0.nlTqpAZHeq4P2xFD\",\n      \"expireIn\": 1800\n}"
      }
    ],
    "selectedLanguageId": "0vaYIZelQPry63bcuh79D"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "Bearer access token, it returned by the /auth",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "response": [
    {
      "name": "accessToken",
      "kind": "optional",
      "type": "string",
      "description": "JWT token"
    },
    {
      "name": "expireIn",
      "kind": "optional",
      "type": "string",
      "description": "Token validity duration",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "refresh",
  "legacyHash": "-BcQ078Wgn9pn6-aZp0Hl"
}
```
:::

