Create Token Set
    • PDF

    Create Token Set

    • PDF

    Article summary

    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 NameTypeAdditional Information
    x-ncp-apigw-timestampHeader(Required)
    x-ncp-apigw-signature-v2Header(Required)
    x-ncp-iam-access-keyHeader(Required)
    keyTagPath(Required)
    accessTokenHoursBody: String1 - 17520 (Default = 72). TTL will be 'infinite' if the string "UL" is entered
    refreshTokenHoursBody: String1 - 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.