---
title: "Generates a new JWT for an existing token"
method: GET
path: "/api/v1/apitoken/{tokenId}/jwt"
tags: ["API Token"]
---

# Generates a new JWT for an existing token

`GET /api/v1/apitoken/{tokenId}/jwt`

Returns a JSON web token. This overwrites the JWT value associated with the specified token object.

## Path parameters

- `tokenId` string, required

## Response `200`

JSON web token successfully created

## Other responses

- `400` — Bad request
- `401` — Invalid user
- `403` — Forbidden
- `404` — Token not found
- `500` — Unexpected server error

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
