---
title: "Create interaction ID"
method: POST
path: "/backend/{gatewayname}/v1/interaction"
---

# Create interaction ID

`POST /backend/{gatewayname}/v1/interaction`

## Request

- Base URL: `https://api.unity.smallcase.com`
- URL: `https://api.unity.smallcase.com/backend/{gatewayname}/v1/interaction`
- Auth: none required

An Interaction ID is a one-time identifier used to initialise the Gateway SDK and launch a journey for a user. Every interaction is created with an `intent` that determines what the SDK does.

## Path parameters

- `gatewayname` string, required

## Headers

- `x-gateway-secret` string, required
- `x-gateway-authtoken` string, required

## Request body

- object
  - `intent` 'LOAN_APPLICATION' | 'LAUNCH' | 'PAYMENT' | 'WITHDRAW' | 'SERVICE', required: Required | Define the type of Interaction to create
  - `config` object, required: Required | Additional information on the Interaction to create
    - `type` 'bounced_interest' | 'principal' | 'shortfall' | 'loan_closure': Optional | Required only with the "PAYMENT" intent
    - `amount` string: Optional | Required only with the "WITHDRAW" intent
    - `lender` string, required: The lender for the LAMF journey. Fixed to `sib`.
    - `userId` string: Optional | Existing Unity User ID if applicable
    - `opaqueId` string: Optional | To attribute your system identifier with the Interaction
    - `lid` string: Optional | Required only with "PAYMENT" and "WITHDRAW" intents
    - `loans` unknown[]
      - unknown
  - `referrer` string: Optional | Only if part of the LAMF referrer program and Guest journey

## Response `200`

200

- union
  - object
    - `code` integer
    - `data` object
      - `createdAt` integer
      - `expireAt` integer
      - `guest` boolean
      - `intent` string
      - `interactionId` string
      - `lender` string
      - `partner` string
      - `status` string
      - `userId` string
    - `message` string
  - object
    - `code` integer
    - `data` object
      - `createdAt` integer
      - `expireAt` integer
      - `guest` boolean
      - `intent` string
      - `interactionId` string
      - `lender` string
      - `partner` string
      - `status` string
    - `message` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/smallcase/apis/sib-lsp.md) - [All operations](https://skmtc.dev/smallcase/apis/sib-lsp/llms.txt) - [OpenAPI document](https://skmtc.dev/smallcase/apis/sib-lsp/revisions/e943c44c35f5?raw)
