Skip to main content

Regenerate user API key

Learn how to regenerate user API keys

This guide describes how to create an API token for a user.

note

You cannot regenerate the key for the Admin user. See Set the admin's API key for information on how to set a value for this key.

  1. Using the CLI, create an API token for the user Developer like this:

    pvault iam regen-api-key --name='Developer'
  2. You get a response similar to this:

    +--------------------------------------+-------------------------------+
    | api_key | api_key_expiry |
    +--------------------------------------+-------------------------------+
    | 25969a8f-b9ff-463a-9e5f-c992fad7cb2d | Thu, 01 Jul 2023 00:00:00 UTC |
    +--------------------------------------+-------------------------------+

On this page