Create Token Set
- Print
- PDF
Create Token Set
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
POST /kms/v1/keys/{keyTag}/token-set
Create a token set (refresh token and access token).
Caution
- The token will have all the key permissions of the user who requested the token to be generated.
- Token generators do not manage the tokens they generate, so they can't be destroyed individually. Therefore, it is crucial to take extra precautions to prevent token leakage.
Request
Request parameters
Parameter Name | Type | Additional Information |
---|---|---|
x-ncp-apigw-timestamp | Header(Required) | |
x-ncp-apigw-signature-v2 | Header(Required) | |
x-ncp-iam-access-key | Header(Required) | |
keyTag | Path(Required) | |
accessTokenHours | Body: String | 1 - 17520 (Default = 72). TTL will be 'infinite' if the string "UL" is entered |
refreshTokenHours | Body: String | 1 - 17520 (Default = 2160). TTL will be 'infinite' if the string "UL" is entered |
Request body example
{
"accessTokenHours": "string",
"refreshTokenHours": "string"
}
Response
Response body
{
"code": "SUCCESS",
"data": {
"refreshToken": "string",
"accessToken": "string"
}
}
Was this article helpful?