> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1panelauthrecovery codes

> Replaces the whole set, invalidating any unused code.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/auth/recovery-codes
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/auth/recovery-codes:
    post:
      tags:
        - panel
      description: Replaces the whole set, invalidating any unused code.
      operationId: regeneratePanelRecoveryCodes
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      responses:
        '200':
          description: New codes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecoveryCodes'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    RecoveryCodes:
      type: object
      required:
        - recoveryCodes
      properties:
        recoveryCodes:
          type: array
          items:
            type: string
          description: Returned exactly once. Only digests are stored.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.