List Vultr user API keys with admin access to audit, monitor, and manage credentials.
Listing a user's API keys allows you to audit active credentials, monitor usage, and manage key rotation effectively. Regularly reviewing API keys helps maintain security by identifying unused or outdated credentials.
Follow this guide to list a user's API keys in the Vultr Customer Portal or through the Vultr API.
User Access Tokens
section to view all API keys associated with the user.Send a GET
request to the Get Users endpoint to list all users.
$ curl "https://api.vultr.com/v2/users" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id
of the user whose API keys you want to list.
Send a GET
request to the List User API Keys endpoint to list all keys for that user.
$ curl "https://api.vultr.com/v2/users/{user-id}/apikeys" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
(Optional) Send a GET
request to the Get User API Key endpoint to retrieve details for a single key by ID.
$ curl "https://api.vultr.com/v2/users/{user-id}/apikeys/{apikey-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
No comments yet.