# Get Instagram conversation

> Read the newest messages of the conversation with one person, live.

Canonical: <https://www.tryadeli.com/docs/api/messages/get-instagram-conversation>

`GET https://app.tryadeli.com/api/v1/messages/instagram/conversations/{igsid}`

Authorization: `Bearer <API key>` — see [Authentication](https://www.tryadeli.com/docs/authentication)

Read the newest messages of an Instagram account's conversation with one
person, newest first. Use it to check a single thread for something you are
waiting on, such as a reply or a button tap, without listing the whole inbox.

The answer comes live from Instagram on every call, so a message sent a moment
ago shows up straight away.

**Path parameters**

| Name    | Type     | Required | Description                                                                                                                                                                                                            |
| ------- | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `igsid` | `string` | Yes      | The person's Instagram-scoped id: `from.id` on a [`message.created`](https://www.tryadeli.com/docs/api/webhooks#direct-messages) event, `senderId` on a `message.postback`, or the recipient id you sent a message to. |

**Query parameters**

| Name        | Type      | Required | Description                                                                       |
| ----------- | --------- | -------- | --------------------------------------------------------------------------------- |
| `accountId` | `uuid`    | Yes      | The connected Instagram account.                                                  |
| `profileId` | `uuid`    |          | Optional, because accountId names its profile. If you pass both, they must agree. |
| `limit`     | `integer` |          | How many of the newest messages to return, 1 to 20. Defaults to 5.                |

Each message has its Instagram `id`, a `direction` (`outbound` when the account
sent it), the sender's `fromId`, its `text` (null for a message with no text,
such as a photo) and `createdAt`. When the account has no conversation with the
person, `conversationId` is null and `messages` is empty.

> **Note: Button taps**
>
> When someone taps a postback button, Instagram also posts the button's title
> into the conversation as a message from them. If a `message.postback` webhook
> never arrives for a tap, an inbound message here whose text equals the
> button's title tells you the tap happened.

**Errors**: `401 unauthorized`, `400 invalid_request`, `404 profile_not_found`,
`404 account_not_found`, `403 permission_required` with missing permission and
reconnect details, `422 connection_expired`, `502 provider_error`.

## Request examples

**cURL**

```bash
curl "https://app.tryadeli.com/api/v1/messages/instagram/conversations/17841400000000001?accountId=00000000-0000-0000-0000-000000000000&limit=3" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/messages/instagram/conversations/17841400000000001?accountId=00000000-0000-0000-0000-000000000000&limit=3", {
  headers: {
    Authorization: `Bearer ${process.env.ADELI_API_KEY}`,
  },
});
console.log(await response.json());
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.tryadeli.com/api/v1/messages/instagram/conversations/17841400000000001",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
    params={
        "accountId": "00000000-0000-0000-0000-000000000000",
        "limit": "3",
    },
)
print(response.json())
```

## Responses

### 200

```json
{
  "platform": "instagram",
  "accountId": "00000000-0000-0000-0000-000000000000",
  "profileId": "00000000-0000-4000-8000-000000000001",
  "conversationId": "aWdfZAG06MTpJR01lc3NhZA2VUaHJlYWQ6MTc4NDE0MDAwMDAwMDAwMDA",
  "messages": [
    { "id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjM", "direction": "inbound", "fromId": "17841400000000001", "text": "Send me the link", "createdAt": "2026-11-25T15:21:04.000Z" },
    { "id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjI", "direction": "outbound", "fromId": "17841400000000009", "text": "Thanks for commenting! Tap below for the link.", "createdAt": "2026-11-25T15:20:31.000Z" }
  ]
}
```

### 404

```json
{
  "error": {
    "code": "account_not_found",
    "message": "Instagram account not found"
  }
}
```
