> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duelduck.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /auth/refresh

**URL:** [https://xapi.duelduck.com/auth/refresh](https://xapi.duelduck.com/auth/refresh)

Refreshes the user's JWT tokens using the provided refresh token from the Authorization header. Returns a new pair of access and refresh tokens.

### **Parameters**

| Name          | Type   | Header                        | Required | Description                     |
| :------------ | :----- | :---------------------------- | :------- | :------------------------------ |
| Authorization | string | Bearer<br />\<refresh\_token> | yes      | Authorization<br />Bearer token |

### **Responses**

**Response content type:** application / json .

#### Code 200

Successfully refreshed tokens.

```text theme={"dark"}
{
  "jwt_info": {
    "access_token": "string",
    "refresh_token": "string"
  }
}
```

#### Code 401

Unauthorized - Invalid or expired refresh token.

```text theme={"dark"}
{
  "message": "string",
  "status": 0
}
```

#### Code 500

Internal server error.

```text theme={"dark"}
{
  "message": "string",
  "status": 0
}
```
