---
title: "List posts"
method: GET
path: "/api/posts"
tags: ["Posts"]
---

# List posts

`GET /api/posts`

## Request

- Base URL: `https://www.fuxux.com`
- URL: `https://www.fuxux.com/api/posts`
- Auth: none declared

## Query parameters

- `month` string
- `status` 'scheduled' | 'published' | 'draft' | 'failed' | 'all'
- `limit` integer
- `offset` integer
- `order` 'published_at_desc' | 'created_at_desc' | 'updated_at_desc'
- `include` 'updated_at'

## Response `200`

OK

- PostsListResponse
  - `posts` PostRow[]
    - `id` string, uuid
    - `status` 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed'
    - `raw_prompt` string, nullable
    - `scheduled_at` string, date-time, nullable
    - `published_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time: When the post last changed. Only present on GET /api/posts when `include=updated_at` is sent.
    - `post_variants` PostVariant[]
      - `id` string, uuid
      - `platform` string
      - `content` string
      - `status` string
      - `error_message` string, nullable
      - `platform_post_id` string, nullable
      - `published_at` string, date-time, nullable
  - `hasMore` boolean: Whether another page exists.
  - `nextOffset` integer: The `offset` to send for the next page.
  - `counts` object
    - `total` integer
    - `scheduled` integer
    - `published` integer
    - `drafts` integer
    - `failed` integer

## Other responses

- `401`: Unauthorized
- `429`: Too many requests
- `500`: Server error

---

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