Posts
List Posts
Retrieve a paginated list of posts with filtering and sorting.
Endpoint
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
status | string | — | Filter by status: "draft", "scheduled", "published", "failed", or "partial" |
platform | string[] | — | Filter by platform (repeatable, OR logic). e.g. ?platform=twitter&platform=instagram |
createdAfter | string | — | ISO 8601 lower bound on createdAt |
createdBefore | string | — | ISO 8601 upper bound on createdAt |
scheduledAfter | string | — | ISO 8601 lower bound on scheduledFor |
scheduledBefore | string | — | ISO 8601 upper bound on scheduledFor |
limit | integer | 20 | Page size (1–100) |
offset | integer | 0 | Number of posts to skip |
sort | string | "desc" | Sort by createdAt: "asc" or "desc" |
Example
Response
Status Codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Invalid query parameters |