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

# Build transactions to create pool of the given asset pair



## OpenAPI

````yaml https://backend.swap.coffee/openapi post /v1/dex/pool
openapi: 3.0.3
info:
  title: Swap Coffee API
  version: 1.0.0
servers:
  - url: https://backend.swap.coffee/
  - url: http://localhost:8080/
security:
  - {}
  - ApiKey: []
tags:
  - name: Entity
    description: Tokens, pools, DEXes, etc.
  - name: Routing
    description: >-
      Core functionality of the aggregation service. Build routes, get
      transactions, etc.
  - name: Strategies
    description: Limit orders, DCA, VCA, etc.
  - name: Yield
    description: >-
      Yield aggregator functionality. Provides and handles routes to pools with
      the best yield.
  - name: Referral
    description: Everything related to the referral program of swap.coffee.
  - name: Cashback
    description: Cashback programs conducted on swap.coffee.
  - name: Claim
    description: Claiming various rewards available on swap.coffee.
  - name: Contests
    description: Timed contests based on trading volumes for certain token-pairs.
  - name: Staking
    description: Responsible of managing staked funds, corresponding rewards, etc.
  - name: DEX
    description: Core functionality of the Coffee DEX service.
  - name: LiquidityProvisioning
    description: Everything related to liquidity provisioning in DEXes.
  - name: Boosts
    description: >-
      Functionality to support incentives and rewards for liquidity providers
      among all DEXes.
  - name: Profile
    description: Retrieve information about user profiles.
  - name: Partnership
    description: Various functionality for our partners.
  - name: Statistics
    description: Retrieve information about dex aggregation stats.
  - name: Ton
    description: Retrieve information about TON entities.
  - name: Auth
    description: Auth operations. For internal usage only.
paths:
  /v1/dex/pool:
    post:
      tags:
        - DEX
      summary: Build transactions to create pool of the given asset pair
      operationId: createDexPool
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiDexPoolCreationRequest'
      responses:
        '200':
          description: Transactions to be sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiDexPoolCreationResponse'
        default:
          $ref: '#/components/responses/ApiError'
components:
  schemas:
    ApiDexPoolCreationRequest:
      type: object
      required:
        - user_wallet
        - asset_1
        - asset_2
        - asset_1_amount
        - asset_2_amount
      properties:
        user_wallet:
          type: string
          example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
        asset_1:
          type: string
          example: native
        asset_2:
          type: string
          example: EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
        asset_1_amount:
          type: string
          description: Absolute value
        asset_2_amount:
          type: string
          description: Absolute value
    ApiDexPoolCreationResponse:
      type: object
      required:
        - transactions
      properties:
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/ApiTransactionResponse'
    ApiTransactionResponse:
      type: object
      required:
        - query_id
        - message
      properties:
        query_id:
          type: integer
          format: int64
        message:
          $ref: '#/components/schemas/ApiTransactionBoc'
    ApiTransactionBoc:
      type: object
      required:
        - payload_cell
        - address
        - value
      properties:
        payload_cell:
          type: string
          description: >-
            Base64-encoded cell. Treated as a payload field in TonConnect
            transaction.
          format: base64
        address:
          type: string
          example: EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez
        value:
          type: string
          format: int128
          description: >-
            Amount of nanotons to be sent. Can be passed to TonConnect
            transaction.
        state_init:
          type: string
          format: base64
          description: >-
            Base64-encoded cell. Treated as a stateInit field in TonConnect
            transaction.
        extra:
          type: array
          items:
            $ref: '#/components/schemas/ApiExtraCurrency'
    ApiExtraCurrency:
      type: object
      required:
        - id
        - amount
      properties:
        id:
          type: integer
          format: int64
        amount:
          type: string
          format: int128
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````