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

# Execute swap



## OpenAPI

````yaml /api-reference/openapi.yaml post /swap/execute
openapi: 3.1.0
info:
  title: Onbeam API
  version: 1.0.0
servers:
  - url: https://api.onbeam.io
  - url: http://localhost:3004
security: []
paths:
  /swap/execute:
    post:
      summary: Execute swap
      operationId: swapExecute
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteRequest'
      responses:
        '200':
          description: Swap submitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    ExecuteRequest:
      type: object
      properties:
        quoteId:
          type: string
        permitsSigned:
          type: array
          items:
            type: string
        idempotencyKey:
          type: string
      required:
        - quoteId
    ExecuteResponse:
      type: object
      properties:
        status:
          type: string
          examples:
            - submitted
        transactionId:
          type: string
      required:
        - status
    Error:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````