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

# Recover swapAuth

> Return the swap's existing `swapAuth` after a signed proof that you hold the swap's key.



## OpenAPI

````yaml /openapi.json post /v2/swap/{id}/auth/recover
openapi: 3.1.0
info:
  title: KaleidoSwap Maker API
  version: v2
  description: >-
    Public HTTP API of the KaleidoSwap maker. Wire-compatible with the Boltz
    `/v2` protocol for submarine, reverse, and chain swaps, with KaleidoSwap
    additions (RGB, atomic swaps, pay-through, LSPS1, swap credentials).
    Integrate through the Swap SDK where possible: it verifies every swap the
    maker proposes.
  contact:
    name: KaleidoSwap
    url: https://kaleidoswap.com
servers:
  - url: https://maker.signet.kaleidoswap.com
    description: Signet (Mutinynet)
security: []
tags:
  - name: Service
    description: Maker identity, version, and capabilities.
  - name: Pairs and quotes
    description: Routes the maker trades, their limits and fees, and quotes.
  - name: Submarine swaps
    description: On-chain → Lightning. You lock on chain; the maker pays your invoice.
  - name: Reverse swaps
    description: >-
      Lightning → on-chain. You pay a hold invoice; the maker locks on chain;
      you claim.
  - name: Chain swaps
    description: On-chain → on-chain. Both sides lock; you claim the maker's lockup.
  - name: Swap status
    description: Swap status over HTTP and WebSocket.
  - name: Recovery
    description: Restore swaps from an xpub and recover swap credentials.
  - name: Atomic RGB swaps
    description: BTC ↔ RGB asset swaps in a single transaction.
  - name: Pay-through
    description: Lightning payment → on-chain payout to any address.
  - name: Lightning channels (LSPS1)
    description: Buy inbound Lightning channels (LSPS1).
  - name: Chain data
    description: The maker's view of chain tips and fees.
paths:
  /v2/swap/{id}/auth/recover:
    post:
      tags:
        - Recovery
      summary: Recover swapAuth
      description: >-
        Return the swap's existing `swapAuth` after a signed proof that you hold
        the swap's key.
      operationId: recover
      parameters:
        - name: id
          in: path
          description: Swap ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthRecoveryProof'
        required: true
      responses:
        '200':
          description: >-
            Existing swap credential recovered after verifying taker key
            ownership
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthRecoveryResponse'
        '401':
          description: Invalid, expired or replayed proof
        '503':
          description: Auth or storage unavailable
components:
  schemas:
    AuthRecoveryProof:
      type: object
      required:
        - challenge
        - signature
      properties:
        challenge:
          type: string
        signature:
          type: string
          description: >-
            BIP340 Schnorr signature (64 bytes hex) over SHA256(domain ||
            canonical

            26-byte uppercase swap ID || decoded 72-byte challenge). Domain is

            `kaleidoswap/swap-auth-recovery/v1` followed by one zero byte.
      additionalProperties: false
    AuthRecoveryResponse:
      type: object
      required:
        - swapAuth
      properties:
        swapAuth:
          type: string

````

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