OpenAI API key
ID openai_api_key
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Secret key of the OpenAI API. Keys start with sk-; project, service account and admin keys start with sk-proj-, sk-svcacct- or sk-admin-. Secret scanners recognise them by the fixed marker T3BlbkFJ in the middle of the key. Examples are left out because GitHub push protection rejects token-shaped values, even constructed ones.
- Parent datatype
- API key or client secret
api_key - Categories
- Secrets and credentials (passwords, keys, tokens)
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 63/100 · missing: examples, authoritative source link, mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- detect-secrets, Gitleaks, Semgrep, TruffleHog
Regular expression
^(?:sk-(?:proj|svcacct|admin)-(?:[A-Za-z0-9_-]{74}|[A-Za-z0-9_-]{58})T3BlbkFJ(?:[A-Za-z0-9_-]{74}|[A-Za-z0-9_-]{58})|sk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20})$
Python re syntax.
Examples
| Value | Description |
|---|---|
| sk-ExampleKeyNotReal000ExampleKeyNotReal000 invalid | The T3BlbkFJ marker is missing |
Sources
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/openai_api_key - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/openai_api_key.yamlon GitHub