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

> ## Agent Instructions
> Treat the published Augustus OpenAPI specification (https://app.stainless.com/api/spec/documented/augustus/openapi.documented.yml) and the current API-reference pages as the source of truth for endpoints, request/response schemas, enum values, webhook event names, and required headers.
> Prefer the 2026-05-01 Banking API and @augustusbank/typescript-sdk for all new integrations. The 2023-01-01 API is a separate, older surface covering two products — Open Banking (instant bank transfer) checkout and refunds, and Manual Bank Transfer (MBT); use it only when one of those products is specifically required.
> Cite or link the relevant docs.augustus.com page when answering integration questions.
> Do not infer support for currencies, networks, scopes, account types, or operations that are not present in the current documentation.
> Use the sandbox base URL (https://api.sandbox.augustus.com) and placeholder credentials in examples. Never include or request a real API key.
> The Augustus docs MCP server (https://docs.augustus.com/mcp) provides documentation search and retrieval only; it does not execute authenticated Augustus API actions.

# Execute FX

> Execute a standalone foreign exchange transaction.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/getivy/openapi.documented.yml post /api/service/fx/execute
openapi: 3.0.0
info:
  title: Ivy API
  description: Ivy API schema
  version: '1.0'
  contact:
    name: Ivy
    url: https://www.getivy.io
    email: help@getivy.io
servers:
  - url: https://api.getivy.de
    description: Production
  - url: https://api.sand.getivy.de
    description: Sandbox
security: []
tags: []
paths:
  /api/service/fx/execute:
    post:
      tags:
        - FX
      summary: Execute FX
      description: Execute a standalone foreign exchange transaction.
      operationId: FxController_execute
      parameters:
        - name: Idempotency-Key
          in: header
          description: >-
            Idempotency key for safe retries. Takes precedence over the
            deprecated body field.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteFxDto'
      responses:
        '200':
          description: FX executed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetrieveFxDetailsResponseDto'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Ivy from '@getivy/node-sdk';

            const client = new Ivy({
              apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.fx.execute({
              sourceAccountId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
              sourceAmount: 'sourceAmount',
              targetAccountId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
            });

            console.log(response.id);
components:
  schemas:
    ExecuteFxDto:
      type: object
      properties:
        idempotencyKey:
          description: 'Deprecated: use the Idempotency-Key request header instead.'
          type: string
        sourceAmount:
          description: 'The amount of source currency to convert. Minimum: 10'
          type: string
        sourceAccountId:
          description: The source account id.
          type: string
          format: uuid
        targetAccountId:
          description: The target account id.
          type: string
          format: uuid
        metadata:
          description: Additional metadata.
          type: object
          additionalProperties: {}
      required:
        - sourceAmount
        - sourceAccountId
        - targetAccountId
    RetrieveFxDetailsResponseDto:
      type: object
      properties:
        id:
          description: The fxId attached to the transfer.
          type: string
        rate:
          description: The exchange rate for the given currency pair.
          type: string
        targetAmount:
          description: The amount of the target currency for the given source amount.
          type: string
        sourceAmount:
          description: The amount of source currency to convert.
          type: string
        sourceCurrency:
          description: The source currency code
          type: string
          enum:
            - EUR
            - GBP
            - USDC
        targetCurrency:
          description: The target currency code
          type: string
          enum:
            - EUR
            - GBP
            - USDC
        metadata:
          description: Additional metadata.
          type: object
          additionalProperties: {}
        status:
          description: The status of the FX transaction.
          type: string
          enum:
            - initiated
            - succeeded
            - failed
      required:
        - id
        - rate
        - sourceCurrency
        - targetCurrency
        - status
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Ivy-Api-Key
      description: API key for authentication

````