---
title: "Get the previous interaction from history"
method: GET
path: "/interaction/{idx}"
tags: ["Interaction"]
---

# Get the previous interaction from history

`GET /interaction/{idx}`

## Path parameters

- `idx` integer, required

## Response `200`

OK

- object
  - `id` integer — The index of this interaction
  - `text` string — The original text
  - `annotations` Annotation[]
    - `end_offset` integer
    - `start_offset` integer
  - `label` integer — User selected labels
  - `lf_exp` Instance[] — The user selected LF explanations
    - `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)
