Create a new Vultr current user API key securely via portal or API.
Creating a new API Key for the current user allows you to manage access more securely, issue separate credentials for different integrations, and support key rotation without disrupting existing workflows.
Follow this guide to create a new API key for the current user in the Vultr Customer Portal or via Vultr API..
Send a POST
request to the Create API Key endpoint to generate a new API key for your current user account.
$ curl "https://api.vultr.com/v2/apikeys" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"name": "<api-key-name>",
"expire": true,
"date_expire": "2030-01-01T00:00:00Z"
}'
The response returns the new API key in plain text. Copy and store it securely, as you cannot view or recover it later from the portal or API.
No comments yet.