Resend API Key
Detects Resend transactional email API keys, formatted as re_ followed by 8 alphanumeric characters, an underscore, and 24 alphanumeric characters (36 characters total). A compromised key allows an attacker to send spoofed emails from verified organizational domains and manage audiences or webhooks.
- Type
- regex
- Engine
- boost_regex
- Confidence
- high
- Confidence justification
- High confidence: while re_ alone is short, the exact two-segment structure re_[A-Za-z0-9]{8}_[A-Za-z0-9]{24} with mixed-case high-entropy alphanumeric segments is specific to Resend and pinned by TruffleHog and GitHub secret scanning.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth)
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, CrowdStrike DLP: Unsupported, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?-i)(?<![A-Za-z0-9_-])(re_[A-Za-z0-9]{8}_[A-Za-z0-9]{24})(?![A-Za-z0-9_-])
Corroborative evidence keywords
resend, RESEND_API_KEY, api.resend.com, resend.com, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie, credential, database, host, [object Object] (+37 more)
Proximity: 300 characters
Should not match
RESEND_API_KEY=re_12345_short— Segments shorter than required 8+24 charactersre_try_count_exceeded_maximum_threshold_val— Snake_case identifier with extra underscores does not match fixed 8+24 alphanumeric structureConfigure RESEND_API_KEY to send transactional emails via api.resend.com.— Documentation prose without a key valuetemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Sending-restricted keys scoped to a staging subdomain. Mitigation: Inspect key permission (Full access vs Sending access) and domain scope in Resend dashboard.
- Example re_12345678_... keys in SDK documentation. Mitigation: Excluded on every tier by template-exclusion.
References
- Resend API Reference authentication documentation (re_ Bearer API keys)
- TruffleHog production Resend detector