mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
---
|
||
layout: api
|
||
page_title: /sys/decode-token - HTTP API
|
||
description: The `/sys/decode-token` endpoint is used to decode the encoded token which is the result of /sys/generate-root.
|
||
---
|
||
|
||
> [!IMPORTANT]
|
||
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
||
|
||
# `/sys/decode-token`
|
||
|
||
@include 'alerts/restricted-root.mdx'
|
||
|
||
The `/sys/decode-token` endpoint is used to decode the encoded token which is the result of the [/sys/generate-root](/vault/api-docs/system/generate-root) API.
|
||
|
||
## Parameters
|
||
|
||
- `encoded_token` `(string: <required>)` – Specifies the encoded token (result from /sys/generate-root).
|
||
|
||
- `otp` `(string: <required>)` - Specifies the otp code for decode.
|
||
|
||
## Sample response
|
||
|
||
```json
|
||
{
|
||
"request_id": "9bc0fab8-d65c-3961-afe6-d05f50c5fd22",
|
||
"lease_id": "",
|
||
"lease_duration": 0,
|
||
"renewable": false,
|
||
"data": {
|
||
"token": "4RUmoevJ3lsLni9sTXcNnRE1"
|
||
},
|
||
"warnings": null
|
||
}
|
||
```
|