Datatypes

Stripe secret or restricted API key

ID stripe_api_key

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Server-side API key of Stripe. Secret keys start with sk_ and restricted keys with rk_, followed by test_ for a sandbox or live_ for live mode. Publishable keys (pk_) are meant to be public and are not covered.

Parent datatype
API key or client secret api_key
Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
70/100 · missing: examples, mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
Amazon Macie, detect-secrets, Gitleaks, Nightfall AI, Semgrep, TruffleHog

Regular expression

^(?:sk|rk)_(?:test|live)_[0-9A-Za-z]{10,99}$

Python re syntax.

Examples

ValueDescription
pk_test_ExampleKeyExampleKeyExam invalidPublishable key

Sources

Use this record