DewaVPS

Create API Token

API tokens allow you to programmatically access and manage your DewaVPS resources securely.

Steps to Create an API Token

  1. Log in to your DewaVPS control panel.

  2. Navigate to Key ManagementAPI Token section.

    API Token List

  3. Click the Create button.

    Create API Token Form

  4. Enter a name for the token (e.g., CI/CD Pipeline or Monitoring Script).

  5. Select a scope for the token permissions.

    Scope Options

    Available scopes:

    • super - Full access to all resources
    • read_instance - Read-only access to instances
    • write_instance - Read and write access to instances
    • billing - Access to billing information
    • read_network - Read-only access to network resources
    • write_network - Read and write access to network resources
  6. Select an expiration date (e.g., 31-12-2026).

    Filled API Token Form

  7. Click Confirm.

  8. Copy the token immediately — it will only be shown once!

    API Token Created

Using Your API Token

Use this token in your API requests with the x-apikey header:

curl -H "x-apikey: YOUR_TOKEN_HERE" https://api.dewavps.com/v1/instances

Security Note: Treat your API token like a password. Never commit it to version control or share it publicly.

On this page