{
  "id": "heroku_oauth_token",
  "kind": "datatype",
  "status": "draft",
  "name": "Heroku API OAuth access token",
  "doc": "OAuth access token of the Heroku Platform API, which the Heroku CLI also uses. Tokens granted from April 2024 start with HRKU-: until April 2025 the prefix was followed by a UUID (41 characters in all), and newer tokens have 65 characters. Older tokens are a bare UUID and cannot be told from other UUIDs, so the regexp covers only the prefixed forms.",
  "parent": "access_token",
  "is_pii": false,
  "categories": [
    "secrets"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^HRKU-(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|AA[0-9A-Za-z_-]{58})$",
  "examples": [
    {
      "value": "HRKU-AAExampleTokenExampleTokenExampleTokenExampleTokenExampleTok",
      "description": "Constructed, non-functional value in the 65-character form",
      "valid": true
    },
    {
      "value": "57dce771-afad-4c41-a8a5-d10b7fbc743c",
      "description": "Token in the old format without the prefix",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://devcenter.heroku.com/changelog-items/2842"
    },
    {
      "type": "doc",
      "url": "https://devcenter.heroku.com/changelog-items/3176"
    },
    {
      "type": "other",
      "url": "https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml"
    }
  ],
  "detected_by": {
    "tools": [
      "gitleaks",
      "semgrep",
      "trufflehog"
    ]
  },
  "quality": {
    "score": 78,
    "missing": [
      "second example",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/heroku_oauth_token.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/heroku_oauth_token.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/heroku_oauth_token.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/heroku_oauth_token",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/heroku_oauth_token.json"
  }
}