v1 auth keys

Create a new API key

Create a new API key for the authenticated user.

This endpoint:
- Validates the current API key authentication
- Creates a new API key for the same user/organization
- Returns the new API key (only shown once)
- Supports optional labeling for key management

**Authentication**: Requires valid API key in Authorization header
post/v1/auth/keys

Request body

labelstring nullable

Optional label for the API key

Response

Successful Response

idstring required

Unique identifier for the API key

api_keystring required

The actual API key (only shown once)

org_idstring required

Organization ID

user_idstring required

User ID

labelstring nullable

Label for the API key

created_atstring required

Creation timestamp

successboolean

Indicates successful creation

Changes

Changed in 2 of the 29 revisions of this API.10

    • added the optional property details to the response with the 400 status

      response-optional-property-added

    • added the optional property details to the response with the 401 status

      response-optional-property-added

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • added the optional property request_id to the response with the 400 status

      response-optional-property-added

    • added the optional property request_id to the response with the 401 status

      response-optional-property-added

    • added the optional property request_id to the response with the 500 status

      response-optional-property-added

    • added the required property error_code to the response with the 400 status

      response-required-property-added

    • added the required property error_code to the response with the 401 status

      response-required-property-added

    • added the required property error_code to the response with the 500 status

      response-required-property-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog