---
title: "Latest posts of an Instagram account or a Facebook Page"
method: GET
path: "/v1/comment-dm-rules/media"
---

# Latest posts of an Instagram account or a Facebook Page

`GET /v1/comment-dm-rules/media`

## Request

- Base URL: `https://api.breakreach.com`
- URL: `https://api.breakreach.com/v1/comment-dm-rules/media`
- Auth: HTTP bearer

The account's latest posts with their ids, to pick the mediaId of a rule.

## Query parameters

- `accountId` string, required
- `limit` integer
- `workspace` string

## Response `200`

OK

## Other responses

- `400`: Not an Instagram account or a Facebook Page
- `401`: Missing, invalid or expired API key
- `402`: No active Breakreach subscription or trial
- `403`: Not a member of the requested workspace
- `404`: Workspace not found
- `502`: The network did not return the posts

---

[API](https://skmtc.dev/breakreach/apis/breakreach-api.md) · [All operations](https://skmtc.dev/breakreach/apis/breakreach-api/llms.txt) · [OpenAPI document](https://skmtc.dev/breakreach/apis/breakreach-api/revisions/290d285f8d73?raw)
