> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing inbox

> Read, respond to, and organize messages across all your connected platforms.

The Posttu inbox unifies messages, comments, and mentions from every connected platform into a single API. This guide covers common patterns.

## List inbox items

Fetch the unified inbox. Filter by type to separate conversations from comments and mentions:

```bash All items theme={null}
curl "https://posttu.com/api/v1/inbox?type=MESSAGE,COMMENT,MENTION" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```bash Messages only theme={null}
curl "https://posttu.com/api/v1/inbox?type=MESSAGE" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```bash Comments and mentions theme={null}
curl "https://posttu.com/api/v1/inbox?type=COMMENT,MENTION" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Filter and sort

Combine query parameters to narrow results:

```bash theme={null}
curl "https://posttu.com/api/v1/inbox?\
type=MESSAGE&\
isRead=false&\
isPinned=true&\
sort=desc&\
limit=20" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Reply to a message

Send a message in an existing conversation:

```bash theme={null}
curl -X POST "https://posttu.com/api/v1/inbox/send-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "INSTAGRAM",
    "channelId": "ch_ig_brand",
    "chatId": "conv_abc123",
    "messageData": {
      "text": "Thanks for reaching out! We will look into this."
    }
  }'
```

## Organize conversations

Use the item management endpoints to keep your inbox organized:

> [tab] Mark as read
>
> ```bash theme={null}
> curl -X PATCH "https://posttu.com/api/v1/inbox/mark-read" \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "inboxItemId": "item_abc123", "type": "MESSAGE", "read": true }'
> ```

> [tab] Set priority
>
> ```bash theme={null}
> curl -X PATCH "https://posttu.com/api/v1/inbox/update-priority" \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "inboxItemId": "item_abc123", "priority": "HIGH" }'
> ```
>
> Priority levels: `LOW`, `NORMAL`, `MEDIUM`, `HIGH`, `URGENT`

> [tab] Pin
>
> ```bash theme={null}
> curl -X PATCH "https://posttu.com/api/v1/inbox/update-pin" \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "inboxItemId": "item_abc123", "isPinned": true }'
> ```

> [tab] Archive
>
> ```bash theme={null}
> curl -X PATCH "https://posttu.com/api/v1/inbox/update-archived" \
>   -H "Authorization: Bearer YOUR_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "inboxItemId": "item_abc123", "isArchived": true }'
> ```

## View message history

Retrieve the full thread for a conversation:

```bash theme={null}
curl -X POST "https://posttu.com/api/v1/inbox/message-history" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "INSTAGRAM",
    "channelId": "ch_ig_brand",
    "platformId": "ig_12345",
    "chatId": "conv_abc123",
    "filters": { "limit": 50, "sort": "asc" }
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.