Creating API Credentials
Generate API keys for programmatic access
Creating API Credentials
Create API credentials to access the OpusDNS API programmatically for domain management, DNS operations, and automation.
Where to Find It
Path: Left sidebar → Developer → API Credentials
Direct URL: /developer/api-credentials
What You'll See
The API Credentials page shows a table of existing credentials with columns: Name, API Key ID, Status (Active/Revoked), Created, Expires, and Last Used. Above the table is a button to create new credentials.
An informational alert at the top explains the three values you'll receive:
- API Key — Use in the
x-api-keyHTTP header for direct API access - Client ID — Your organization's unique identifier for OAuth authentication
- Client Secret — Used to authenticate OAuth requests
Step-by-Step
- Navigate to Developer in the left sidebar.
- Go to the API Credentials section.
- Click the create button.
- Fill in the form:
- Name (required) — A descriptive name for this credential (e.g., "Production API Key", "WHMCS Integration")
- Description (optional) — Additional notes about the credential's purpose
- Expiration Date (optional) — Set an expiry date or leave blank for no expiration
- Submit the form.
- ⚠️ CRITICAL: Copy your credentials immediately!

After Creation — Copy Your Secrets
A success dialog displays three values:
- API Key — The full API key for the
x-api-keyheader - Client ID — Your organization identifier
- Client Secret — The OAuth client secret
⚠️ Important Security Notice: The API Key and Client Secret are shown only once during creation. If you close this dialog without copying them, you cannot retrieve them later. You will need to create new credentials.
Using Your Credentials
Option 1: API Key (Direct Access)
Include the API key in your HTTP request headers:
x-api-key: your-api-key-here
Option 2: OAuth Client Credentials
Use the Client ID and Client Secret for OAuth 2.0 client credentials flow to obtain an access token.
Managing Existing Credentials
In the credentials table, you can:
- See when a key was last used
- Check if it's Active or Revoked
- See the expiration date (or "Never" if not set)
- Revoke a credential when it's no longer needed (this cannot be undone)
Restricting API Access by IP
For additional security, navigate to Developer → API Security to configure IP address restrictions that limit which IPs can use your API credentials.
Common Mistakes
- Not copying the secret — The most common issue. The secret is shown only once.
- Using an expired credential — Check the expiration date in the table.
- Forgetting to revoke compromised keys — If a key is exposed, revoke it immediately and create a new one.