Create a new hash-based API key
Creates a new OpenAI-compatible API key (sk-oai-* format). Supports both permanent keys (no expiration) and expiring keys (with expiresIn parameter). The plaintext key is shown ONLY ONCE at creation time and cannot be retrieved again.
Request body
Response
Created response.
Changes
Changed in 5 of the 31 revisions of this API.3113
- ▲
added the new required request property
datanew-required-request-property
- ●
removed the request property
descriptionrequest-property-removed
- ●
removed the request property
ephemeralrequest-property-removed
- ●
removed the request property
expiresInrequest-property-removed
- ●
removed the request property
namerequest-property-removed
- ●
removed the request property
subscriptionrequest-property-removed
- ●
removed the optional property
createdAtfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
expiresAtfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
idfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
keyfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
keyPrefixfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
namefrom the response with the201statusresponse-optional-property-removed
- ○
added the required property
datato the response with the201statusresponse-required-property-added
- ▲
- ○
added the new optional request property
ephemeralnew-optional-request-property
- ○
- ▲
added the new required request property
subscriptionnew-required-request-property
- ▲
- ○
endpoint added
endpoint-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api removed without deprecation
api-removed-without-deprecation
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲