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

# 1Password service account token (`onepassword_service_account_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.

Token of a 1Password service account. 1Password gives it the prefix ops_ so that code analyzers can find it; the rest is a Base64-encoded JSON object with the account's sign-in details and keys, so the token starts with ops_eyJ and is several hundred characters long.

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

```
^ops_eyJ[A-Za-z0-9+/]{250,}={0,3}$
```

## Examples

- `ops_eyJExampleTokenNotReal` (invalid example) — Too short

## Supported by tools

- `gitleaks`

## Sources

- doc: <https://www.1password.dev/service-accounts/security>
- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>

## Quality

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

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