---
title: "Create JWT token from Refresh JWT"
method: POST
path: "/jwt#1"
tags: ["Authentication/JWT (JSON Web Token)"]
---

# Create JWT token from Refresh JWT

`POST /jwt#1`

This API will accept a refresh token in JSON object to grant a new JWT and revoke the refresh token as used. 

> Note: # and anything after is NOT needed, its just to allow multiple examples for the same path/method.

## Request body

- object
  - `refresh` string, jwt, required — This is a refresh JWT that was recieved when creating a new JWT. it will be revoked once used and a new one given.

## Response `200`

- JwtRequestSuccess
  - `token` string, jwt, required — This is the JWT token that would need to be saved for use in addtional requests.
  - `refresh` string, jwt, required — This is a JWT but only capable of being used to regenerate a new JWT token and not for authenticated requests.

## Other responses

- `400`
- `401`
- `403`
- `404`
- `x-400-2`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/revisions/d37f65b5b886/schema)
