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

# Rotate the company API key

> Issues a new secret API key and immediately invalidates the current one. The new key is returned once and is not retrievable again.



## OpenAPI

````yaml /openapi-v1.json post /v1/companies/me/rotate-key
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/companies/me/rotate-key:
    post:
      tags:
        - v1 - companies
      summary: Rotate the company API key
      description: >-
        Issues a new secret API key and immediately invalidates the current one.
        The new key is returned once and is not retrievable again.
      operationId: V1CompaniesController_rotateApiKey
      parameters: []
      responses:
        '200':
          description: New API key issued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ApiKeyResultDto'
        '403':
          description: Invalid or missing API key
      security:
        - bearer: []
components:
  schemas:
    V1ApiKeyResultDto:
      type: object
      properties:
        apiKey:
          type: string
          description: >-
            The new company secret API key. The previous key is now invalid;
            store this value, it is not retrievable again.
      required:
        - apiKey
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````