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

# SendGrid API key (`sendgrid_api_key`)

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

API key of Twilio SendGrid, also used as the SMTP password. Keys are always 69 characters long and start with SG. followed by letters, digits and the characters . _ - and =.

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

```
^SG\.[A-Za-z0-9_.=-]{66}$
```

## Examples

- `SG.ExampleKeyExampleKeyEx` (invalid example) — Too short

## Supported by tools

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

## Sources

- doc: <https://support.sendgrid.com/hc/en-us/articles/44146758703387-Can-I-Use-a-Reduced-Shorter-API-Key-Size-in-SendGrid>
- doc: <https://www.twilio.com/docs/sendgrid/ui/account-and-settings/api-keys>
- 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/sendgrid_api_key.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/sendgrid_api_key.yaml>
