---
title: "Create Liquidity Session"
method: POST
path: "/api/v1/sessions/liquidity"
tags: ["DeX Swap"]
---

# Create Liquidity Session

`POST /api/v1/sessions/liquidity`

This API is used to create DeX liqudity session for liqudity providing transaction.

## Request body

- CreateLiquiditySessionDexDto
  - `successURL` string — URL to redirect user after completing a transaction
  - `cancelURL` string — URL to redirect user after cancelling a transaction
  - `userEmail` string, required — An existing user email needs to be provided when creating a transaction session
  - `pair` string, required — Symbol of pair used for manage liquidity
  - `amount0` number, required — Amount of pool token0
  - `amount1` number, required — Amount of pool token1
  - `chain` string, required — Blockchain to which the transaction will be sent. See https://thirdfi.readme.io/reference/dexswap-overview#list-of-chains-we-supported for more information.
  - `isNative` boolean, required — If true, native token will be used. If false, wrapped tokens (E.g. WETH) will be used. defaults to false
  - `addLiquidity` boolean, required — Indicate whether to add or remove liquidity.

## Response `201`

Session is created.

- object
  - `statusCode` number
  - `message` string
  - `data` object — Session object. See https://thirdfi.readme.io/reference/the-session-object for more information.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden Resources

---

[API](https://skmtc.net/thirdfi/apis/thirdfi-api.md) · [All operations](https://skmtc.net/thirdfi/apis/thirdfi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thirdfi/thirdfi-api/versions/4d70807293f6/schema)
