| name | instantly-security-basics |
| description | Apply Instantly.ai security best practices for API keys, scopes, and access control.
Use when securing API keys, implementing least-privilege access,
or auditing Instantly workspace permissions.
Trigger with phrases like "instantly security", "instantly api key safety",
"instantly least privilege", "secure instantly", "instantly access control".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","instantly","security","access-control"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Instantly Security Basics
Overview
Secure your Instantly.ai integration with scoped API keys, least-privilege access, secret management, webhook validation, and audit logging. Instantly API v2 uses Bearer token auth with granular scope-based permissions.
Prerequisites
- Instantly account with API access
- Understanding of environment variable management
- Access to Instantly dashboard Settings > Integrations
Instructions
Step 1: Least-Privilege API Key Scopes
Create separate API keys for different use cases with minimal required scopes.
const ANALYTICS_KEY_SCOPES = ["campaigns:read", "accounts:read"];
const AUTOMATION_KEY_SCOPES = ["campaigns:all", "leads:all"];
const WEBHOOK_KEY_SCOPES = ["leads:read"];
| Use Case | Recommended Scopes | Risk Level |
|---|
| Analytics dashboard | campaigns:read, accounts:read | Low |
| Lead import tool | leads:update | Medium |
| Campaign launcher | campaigns:all, leads:all, accounts:read |