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

# Create Session

`POST /api/v1/sessions`

This API is used to create index fund session for deposit and withdrawal transaction.

## Request body

- SessionDto
  - `product` string, required — Product symbol of the transaction. It can be found from https://securo.readme.io/reference/get-all-products.
  - `type` string, required — Transaction type. E.g. 'deposit', 'withdraw'
  - `amount` number, required — Transaction amount in shares (index tokens) of the product
  - `userEmail` string, required — Email address of the Securo user.
  - `successURL` string — Upon completing transaction in the native browser, the user will be redirected to this URL to return to your app. If no value is set, its default value is https://securo.finance.
  - `cancelURL` string — Upon cancelling transaction in the native browser, the user will be redirected to this URL to return to your app. If no value is set, its default value is https://securo.finance.

## Response `201`

Session is created.

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

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden Resources

---

[API](https://skmtc.dev/securo/apis/securo-api-2.md) · [All operations](https://skmtc.dev/securo/apis/securo-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/securo/securo-api-2/revisions/03fc70fdf6ad/schema)
