| name | deepgram-security-basics |
| description | Apply Deepgram security best practices for API key management and data protection.
Use when securing Deepgram integrations, implementing key rotation,
or auditing security configurations.
Trigger: "deepgram security", "deepgram API key security", "secure deepgram",
"deepgram key rotation", "deepgram data protection", "deepgram PII redaction".
|
| allowed-tools | Read, Write, Edit, Grep, Bash(curl:*) |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","deepgram","api","security","compliance"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Deepgram Security Basics
Overview
Security best practices for Deepgram integration: scoped API keys, key rotation, Deepgram's built-in PII redaction feature, client-side temporary keys, SSRF prevention for audio URLs, and audit logging.
Security Checklist
Instructions
Step 1: Scoped API Keys
Create keys with minimal permissions in Console > Settings > API Keys:
const sttKey = process.env.DEEPGRAM_STT_KEY;
const ttsKey = process.env.DEEPGRAM_TTS_KEY;
const monitorKey = process.env.DEEPGRAM_MONITOR_KEY;
const adminKey = process.env.DEEPGRAM_ADMIN_KEY;
Step 2: Deepgram Built-in PII Redaction
import { createClient } ;
deepgram = (process..!);
{ result } = deepgram...(
{ : audioUrl },
{
: ,
: ,
: [, , ],
}
);
.(result..[].[].);