> ## 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.

# Get atomic swap status

> Where an atomic swap stands.



## OpenAPI

````yaml /openapi.json get /v2/swap/atomic/{id}
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/atomic/{id}:
    get:
      tags:
        - Atomic RGB swaps
      summary: Get atomic swap status
      description: Where an atomic swap stands.
      operationId: status
      parameters:
        - name: id
          in: path
          description: Atomic swap id (ULID).
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Swap status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtomicSwapStatusResponse'
        '400':
          description: Malformed id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Unknown swap.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Database unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AtomicSwapStatusResponse:
      type: object
      required:
        - id
        - pair
        - status
        - state
        - fromAmount
        - toAmount
        - assetId
        - networkFeeSat
        - confirmations
        - expiresAt
        - offerExpiresAt
        - createdAt
      properties:
        assetId:
          type: string
        confirmations:
          type: integer
          format: int32
          minimum: 0
        createdAt:
          type: integer
          format: int64
        expiresAt:
          type: integer
          format: int64
        fromAmount:
          type: integer
          format: int64
          minimum: 0
        id:
          type: string
        networkFeeSat:
          type: integer
          format: int64
          minimum: 0
        offerExpiresAt:
          type: integer
          format: int64
        pair:
          type: string
        state:
          type: string
          description: Internal state (`quoted` … `settled`).
        status:
          type: string
          description: Wire status (`swap.created` … `transaction.claimed`).
        toAmount:
          type: integer
          format: int64
          minimum: 0
        txid:
          type:
            - string
            - 'null'
    ErrorResponse:
      type: object
      description: Boltz-shaped error envelope.
      required:
        - error
      properties:
        details:
          type:
            - string
            - 'null'
          description: Optional human-readable detail. Present on 4xx; absent on 5xx.
        error:
          type: string
          description: Stable machine-readable error code, e.g. `pair_hash_mismatch`.

````

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