# in-thread (/catalog/edges/in-thread)

Joins a message to the thread it belongs to, such as a reply in an email thread.



## in-thread [#in-thread]

Says that an item is a message in a thread, such as a reply in a conversation.

| Property | Kind | Description |
| - | - | - |
| `position` | `number` | Where the message comes in the thread. |

A message is **In thread** in at most one thread, and the thread lists its **Messages**. `position` orders them. [Edges](/build/edges#edge-types) says when to use it and when another edge type fits.

## In the bin [#in-the-bin]

Either end can go to the bin, or be purged, and the other stays where it is.

## In a folder [#in-a-folder]

The message's file writes the edge as an `in-thread` line.

## Example [#example]

The first message in a thread:

```json
{
  "edge_type": "in-thread",
  "from_id": "01a1f139-e0c7-703d-9a80-e4edfc0a1b2c",
  "to_id": "01a1f139-e0bf-7d21-8e3a-5f6b7c8d9e0f",
  "properties": { "position": 0 }
}
```
