---
title: "List all Discussions"
method: GET
path: "/discussions/"
tags: ["discussions"]
---

# List all Discussions

`GET /discussions/`

## Request

- Base URL: `https://data.public.lu/api/1`
- URL: `https://data.public.lu/api/1/discussions/`
- Auth: none declared

## Query parameters

- `sort` 'created' | 'title' | 'closed' | 'discussion.posted_on' | '-created' | '-title' | '-closed' | '-discussion.posted_on'
- `closed` boolean
- `for` string[]
- `org` string
- `user` string
- `page` integer
- `page_size` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- DiscussionPage
  - `data` Discussion[]: The page data
    - `class` string, required: The object class
    - `closed` string, date-time: The discussion closing date
    - `closed_by` UserReference
      - `class` string, required: The object class
      - `id` string, required: The object unique identifier
      - `avatar` string: The user avatar URL
      - `avatar_thumbnail` string: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
      - `first_name` string: The user first name
      - `last_name` string: The user larst name
      - `page` string: The user profile page URL
      - `slug` string, required: The user permalink string
      - `uri` string, required: The user API URI
    - `created` string, date-time: The discussion creation date
    - `discussion` DiscussionMessage
      - `content` string: The message body
      - `posted_by` UserReference
        - `class` string, required: The object class
        - `id` string, required: The object unique identifier
        - `avatar` string: The user avatar URL
        - `avatar_thumbnail` string: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
        - `first_name` string: The user first name
        - `last_name` string: The user larst name
        - `page` string: The user profile page URL
        - `slug` string, required: The user permalink string
        - `uri` string, required: The user API URI
      - `posted_on` string, date-time: The message posting date
      - `spam` Spam
        - `status` 'not_checked' | 'potential_spam' | 'no_spam': Status
    - `extras` object: Extra attributes as key-value pairs
    - `id` string: The discussion identifier
    - `spam` Spam
      - `status` 'not_checked' | 'potential_spam' | 'no_spam': Status
    - `subject` ModelReference
      - `class` string, required: The model class
      - `id` string, required: The object identifier
    - `title` string: The discussion title
    - `url` string: The discussion API URI
    - `user` UserReference
      - `class` string, required: The object class
      - `id` string, required: The object unique identifier
      - `avatar` string: The user avatar URL
      - `avatar_thumbnail` string: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
      - `first_name` string: The user first name
      - `last_name` string: The user larst name
      - `page` string: The user profile page URL
      - `slug` string, required: The user permalink string
      - `uri` string, required: The user API URI
  - `next_page` string: The next page URL if exists
  - `page` integer, required: The current page
  - `page_size` integer, required: The page size used for pagination
  - `previous_page` string: The previous page URL if exists
  - `total` integer, required: The total paginated items

---

[API](https://skmtc.dev/public/apis/udata-api.md) - [All operations](https://skmtc.dev/public/apis/udata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/public/apis/udata-api/revisions/3f583ca74f7e?raw)
