---
id: "shopify_access_token"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 63
url: "http://registry.apicrafter.io/datatype/shopify_access_token"
---

# Shopify access token (`shopify_access_token`)

> **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.

Access token of a Shopify app. The prefix tells the kind of token: shpat_ for an app access token, shpca_ for a custom app and shppa_ for a private app. 32 hexadecimal digits follow.

- Parent datatype: `access_token`
- 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`):

```
^shp(?:at|ca|pa)_[a-fA-F0-9]{32}$
```

## Examples

- `shpat_ExampleTokenNotReal` (invalid example) — Not hexadecimal and too short
- `shpss_0123456789abcdef` (invalid example) — Prefix of a shared secret

## Supported by tools

- `gitleaks`
- `trufflehog`

## Sources

- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>
- other: <https://github.com/trufflesecurity/trufflehog/blob/main/pkg/detectors/shopify/shopify.go>

## Quality

Score 63/100. Missing: examples, authoritative source link, mapping (Wikidata, Schema.org, ...), translation.

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