---
title: "Refresh access token."
method: POST
path: "/auth/jwt/refresh.json"
tags: ["Authentication (JWT)"]
---

# Refresh access token.

`POST /auth/jwt/refresh.json`

## Request

- Base URL: `https://passbolt.local`
- URL: `https://passbolt.local/auth/jwt/refresh.json`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/passbolt/apis/passbolt-api/docs/auth/jwt/refresh.json/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- RefreshRequest
  - `refresh_token` string, uuid, required
  - `user_id` string, uuid, required

## Response `200`

Operation is successful. A new refresh token is set via a cookie.

- object
  - `header` Header, required
    - `id` string, uuid, required
    - `status` 'success' | 'error', required
    - `servertime` integer, required
    - `action` string, uuid, required
    - `message` string, required
    - `url` string, uri, required
    - `code` integer, required
  - `body` RefreshResponse, required
    - `access_token` string, uuid, required

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/passbolt/apis/passbolt-api.md) - [All operations](https://skmtc.dev/passbolt/apis/passbolt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passbolt/apis/passbolt-api/revisions/8d72215e2274?raw)
