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

# Get swap

> Requires `api:read` scope. Syncs Relay status before returning.



## OpenAPI

````yaml /openapi.yaml get /swaps/{swapId}
openapi: 3.1.0
info:
  title: Remitflex API
  version: 1.0.0
  description: >
    Programmatic access to Remitflex payment routes, fiat rates, customers, and
    transactions.


    **Dashboard:** Create API keys at https://dashboard.remitflex.io


    **Authentication:** Send your API key as `Authorization: Bearer
    rmf_live_...` or `rmf_test_...`.


    **Idempotency:** Mutating requests (`POST`, `PUT`, `PATCH`, `DELETE`)
    require an `Idempotency-Key` header when authenticated with an API key.
servers:
  - url: http://localhost:4000/v1
    description: Local development
  - url: https://api.remitflex.io/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /swaps/{swapId}:
    get:
      tags:
        - Swaps
      summary: Get swap
      description: Requires `api:read` scope. Syncs Relay status before returning.
      operationId: getSwap
      parameters:
        - name: swapId
          in: path
          required: true
          description: RemitFlex swap UUID (`id` from `POST /swaps` or `GET /swaps`).
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Swap fetched
          content:
            application/json:
              examples:
                success:
                  $ref: a6ce9375-7e6b-490b-832e-d3f66804fa10
                failed:
                  $ref: 8132553a-8e13-473e-9ace-08aff114d11a
        '404':
          description: Swap not found
          content:
            application/json:
              examples:
                error:
                  value:
                    status: error
                    message: Swap not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >
        API key created in the Remitflex Dashboard at dashboard.remitflex.io
        (`rmf_live_...` or `rmf_test_...`).

        Key management endpoints require a dashboard JWT and are not part of
        this reference.

````