# Refresh Expired Access Token

`POST /api/identity/token/refresh`

### Overview
Issues a fresh `access_token` using an unexpired `refresh_token` without requiring the user to re-enter credentials.

### Authentication & Headers
- **Auth**: Public / Refresh Token
- **Required Header**: `API-Version: 1`

### Parameters & Request Body
- **`refresh_token`** *(string, required)*: The long-lived refresh token obtained during initial login.

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `refresh_token` | string | yes |  |

```json
{
  "refresh_token": "string"
}
```

## Responses

### 200 — Token refreshed successfully

### 401 — Refresh token is invalid or expired

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X POST "$PINTER_URL/api/identity/token/refresh" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"refresh_token":"string"}'
```
