---
id: "stripe_webhook_secret"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 70
url: "https://registry.apicrafter.io/datatype/stripe_webhook_secret"
---

# Stripe webhook signing secret (`stripe_webhook_secret`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Secret with which a Stripe webhook endpoint verifies the signatures of the events it receives. Stripe documents that it starts with whsec_. The vendor does not document the length or the characters after the prefix; the regexp accepts letters and digits.

- Parent datatype: `symmetric_key`
- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^whsec_[A-Za-z0-9]+$
```

## Examples

- `whsec_` (invalid example) — Prefix without the secret

## Supported by tools

- `datadogsds`
- `gitguardian`
- `githubsecretscanning`

## Sources

- doc: <https://docs.stripe.com/webhooks/stripe-events>

## Quality

Score 70/100. Missing: examples, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/stripe_webhook_secret.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/stripe_webhook_secret.yaml>
