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

# Square access token (`square_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.

Personal or OAuth access token of the Square APIs. Square does not document the format; secret scanners such as gitleaks recognize it by the prefix EAAA or the older prefix sq0atp- followed by 22 to 60 letters, digits, underscores or hyphens.

- 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`):

```
^(?:EAAA|sq0atp-)[A-Za-z0-9_-]{22,60}$
```

## Examples

- `EAAAExampleTokenExampleTokenExampleTokenExampleTokenExampleToken` — Constructed, non-functional value

## Supported by tools

- `gitleaks`
- `semgrep`
- `trufflehog`

## Sources

- doc: <https://developer.squareup.com/docs/build-basics/access-tokens>
- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>

## Quality

Score 73/100. Missing: second example, negative example, mapping (Wikidata, Schema.org, ...), translation.

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