---
title: "Submit the labeled text from the user"
method: POST
path: "/interaction"
tags: ["Labelling 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` 0 | 1 | 2 | 3 — The type of the condition. Available types can be fetched with a get request to \keytype
    - `TYPE_` 'TOKEN' | 'REGEXP' | 'CONCEPT' | 'NER' — String description of the condition type
    - `case_sensitive` boolean

## Changes

- **2020-10-23** `48abc59a8b40` — 1 info
  - api operation id `idea2.submit_interaction` removed and replaced with `endpoints.submit_interaction`
- **2020-10-07** `bad24ffe5ea2` — 2 info
  - api tag `Labelling Interaction` added
  - api tag `Interaction` removed
- **2020-02-20** `5e2e07fbaa35` — 3 info
  - api operation id `endpoints.submit_interaction` removed and replaced with `idea2.submit_interaction`
  - api tag `Interaction` added
  - api tag `Labelling Interaction` removed

[Change history](https://skmtc.dev/megagonlabs/apis/ruler-api-specification/changes/interaction/post.md)

---

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