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

# Slack token (`slack_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 the Slack API. The prefix names the token type, for example xoxb- for bot tokens and xoxp- for user tokens.

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

## Detection

Regular expression (Python `re`):

```
^xox[abeoprs]-[0-9A-Za-z-]+$
```

## Mappings

- purview: `Slack access token`, `All Credential Types`, `All credentials`

## Supported by tools

- `detectsecrets`
- `gitleaks`
- `microsoftpurview`
- `nightfall`
- `semgrep`
- `trufflehog`

## Sources

- doc: <https://learn.microsoft.com/en-us/purview/sit-defn-slack-access-token>
- doc: <https://api.slack.com/authentication/token-types>

## Quality

Score 75/100. Missing: examples, negative example, translation.

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