api-keys

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.

post/api/v1/api-keys

Request body

Response

Created response.

Changes

Changed in 5 of the 31 revisions of this API.3113

  • b980153caff71111See the full diff
    • added the new required request property data

      new-required-request-property

    • removed the request property description

      request-property-removed

    • removed the request property ephemeral

      request-property-removed

    • removed the request property expiresIn

      request-property-removed

    • removed the request property name

      request-property-removed

    • removed the request property subscription

      request-property-removed

    • removed the optional property createdAt from the response with the 201 status

      response-optional-property-removed

    • removed the optional property expiresAt from the response with the 201 status

      response-optional-property-removed

    • removed the optional property id from the response with the 201 status

      response-optional-property-removed

    • removed the optional property key from the response with the 201 status

      response-optional-property-removed

    • removed the optional property keyPrefix from the response with the 201 status

      response-optional-property-removed

    • removed the optional property name from the response with the 201 status

      response-optional-property-removed

    • added the required property data to the response with the 201 status

      response-required-property-added

    • added the new optional request property ephemeral

      new-optional-request-property

    • added the new required request property subscription

      new-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