---
title: "Submit the labeled text from the user"
method: POST
path: "/interaction"
tags: ["Interaction"]
---

# Submit the labeled text from the user

`POST /interaction`

## Request body

- object
  - `text` string — The original text
  - `annotations` Annotation[] — The annotations over the text
    - `end_offset` integer
    - `start_offset` integer
  - `label` integer — User selected label

## Response `200`

A list of LF explanation generated from user interaction

- Instance[]
  - `Connective` integer
  - `CONNECTIVE_` string — String explanation of the connective type
  - `Direction` boolean
  - `Label` integer
  - `Weight` integer
  - `Conditions` Condition[]
    - `string` string
    - `type` integer
    - `case_sensitive` boolean

---

[API](https://skmtc.dev/megagonlabs/apis/idea2-api-specification.md) · [All operations](https://skmtc.dev/megagonlabs/apis/idea2-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/megagonlabs/idea2-api-specification/revisions/98450d0705a2/schema)
