> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ionworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Regenerate My Api Key

> Generate a new API key for the caller in the active organization.

Any existing key for this (user, organization) is replaced and stops
working immediately. The response is the only time the full key is
available.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /users/me/api-key
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /users/me/api-key:
    post:
      tags:
        - users
      summary: Regenerate My Api Key
      description: |-
        Generate a new API key for the caller in the active organization.

        Any existing key for this (user, organization) is replaced and stops
        working immediately. The response is the only time the full key is
        available.
      operationId: regenerate_my_api_key_users_me_api_key_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneratedApiKey'
components:
  schemas:
    GeneratedApiKey:
      properties:
        api_key:
          type: string
          title: Api Key
        key_prefix:
          type: string
          title: Key Prefix
      type: object
      required:
        - api_key
        - key_prefix
      title: GeneratedApiKey
      description: A freshly minted key. The only response that ever contains the secret.

````