api_keys

Create API key

Create a new API key.

Args: params: The parameters for creating the API key.

Returns: ApiKeyCreated: The response containing the details of the created API key.

post/v1/api-keys

Request body

namestring

A name/description for the API key

expires_atstring date-time nullable

Optional expiration datetime

Response

The created API key details

idstring required

The ID of the API key

namestring required

The name of the API key

redacted_valuestring required

The redacted value of the API key

expires_atstring date-time nullable

The expiration datetime of the API key

created_atstring date-time required

The creation datetime of the API key

updated_atstring date-time required

The last update datetime of the API key

last_active_atstring date-time nullable

The last active datetime of the API key

object'api_key'

The type of the object

valuestring required

The value of the API key

Changes

Changed in 1 of the 17 revisions of this API.223

  • 88bcf0a5d27e223See the full diff
    • request property //// was restricted to a list of enum values

      request-property-became-enum

    • the response property const value store was removed for the status

      response-property-const-removed

    • added the new completions enum value to the //// response property for the response status

      response-property-enum-value-added

    • added the new store enum value to the //// response property for the response status

      response-property-enum-value-added

    • the request property const value store was removed

      request-property-const-removed

    • added the new completions enum value to the request property ////

      request-property-enum-value-added

    • added the new store enum value to the request property ////

      request-property-enum-value-added