---
title: "Update JWT Settings (saveJwtSettings)"
method: POST
path: "/api/admin/jwtSettings"
tags: ["admin-controller"]
---

# Update JWT Settings (saveJwtSettings)

`POST /api/admin/jwtSettings`

Updates the JWT Settings object that contains JWT token policy, etc. The tokenSigningKey field is a Base64 encoded string.

Available for users with 'SYS_ADMIN' authority.

## Request body

- JwtSettings — A JSON value representing the JWT Settings.
  - `tokenExpirationTime` integer — The JWT will expire after seconds.
  - `refreshTokenExpTime` integer — The JWT can be refreshed during seconds.
  - `tokenIssuer` string — The JWT issuer.
  - `tokenSigningKey` string — The JWT key is used to sing token. Base64 encoded.

## Response `200`

OK

- JwtPair — JWT Pair
  - `token` string — The JWT Access Token. Used to perform API calls.
  - `refreshToken` string — The JWT Refresh Token. Used to get new JWT Access Token if old one has expired.
  - `scope` 'SYS_ADMIN' | 'TENANT_ADMIN' | 'CUSTOMER_USER' | 'REFRESH_TOKEN' | 'PRE_VERIFICATION_TOKEN' | 'MFA_CONFIGURATION_TOKEN'

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
