> For the complete documentation index, see [llms.txt](https://formdr.gitbook.io/formdr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://formdr.gitbook.io/formdr/documentation/access-token/using-the-refresh-token.md).

# Using the Refresh Token

## Send your refresh token to get a new access token and a new refresh token

<mark style="color:green;">`POST`</mark> `https://api.formdr.com/api/oauth/token`

#### Headers

| Name                                           | Type   | Description                       |
| ---------------------------------------------- | ------ | --------------------------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/x-www-form-urlencoded |

#### Request Body

| Name                                             | Type   | Description        |
| ------------------------------------------------ | ------ | ------------------ |
| grant\_type<mark style="color:red;">\*</mark>    | String | "refresh\_token"   |
| refresh\_token<mark style="color:red;">\*</mark> | String | The Refresh Token  |
| client\_id<mark style="color:red;">\*</mark>     | String | Your Client ID     |
| client\_secret<mark style="color:red;">\*</mark> | String | Your Client Secret |

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

```javascript
{
    "accessToken": String,
    "accessTokenExpiresAt": DateString,
    "refreshToken": String,
    "refreshTokenExpiresAt": DateString,
    "scope": String
}
```

{% endtab %}
{% endtabs %}
