Here’s exactly how to get your Datadog Application Key (DD_APP_KEY).
🔐 What is DD_APP_KEY?
In Datadog:
- API Key → used for sending data (metrics, logs, traces)
- Application Key (APP Key) → used for accessing the API (read dashboards, manage monitors, etc.)
If you're calling Datadog APIs, you need both:
DD_API_KEY
DD_APP_KEY
✅ How to Generate DD_APP_KEY (Step-by-Step)
1️⃣ Log into Datadog
Go to your Datadog site (example):
https://app.datadoghq.com
(Replace with .eu, us3, us5, etc. depending on your region.)
2️⃣ Go to Organization Settings
- Click your profile icon (bottom-left)
- Click Organization Settings
3️⃣ Open Application Keys Section
Inside Organization Settings:
👉 Click Application Keys
You’ll see:
- Existing keys (if any)
- Button to create new one
4️⃣ Create New Application Key
Click New Key
Enter:
Choose scopes (recommended — do not use full access unless needed)
Common scopes:
monitors_read
dashboards_read
logs_read
metrics_read
Click Create
5️⃣ Copy the Key Immediately
⚠️ Important:
You can only see the full key once after creation.
It will look like:
1234567890abcdef1234567890abcdef
Store it securely.
💻 How to Set It as Environment Variable
Linux / macOS
export DD_APP_KEY="your_generated_key_here"
Add to .bashrc or .zshrc for persistence:
echo 'export DD_APP_KEY="your_generated_key_here"' >> ~/.zshrc
🧪 Test It (Example API Call)
curl -X GET "https://api.datadoghq.com/api/v1/validate" \
-H "DD-API-KEY: $DD_API_KEY" \
-H "DD-APPLICATION-KEY: $DD_APP_KEY"
If correct → returns {"valid": true}
🔎 If You Don’t See “Application Keys” Option
Possible reasons:
- You are not an Admin
- Your role does not allow key creation
Ask your Datadog org admin to:
- Grant permission
- Or create the key for you
🎯 Best Practice
For production systems:
If you're using:
- Terraform
- Kubernetes
- CI/CD
- Custom scripts