Searches discussions filtered by author identifier with pagination.

GET /api/v1/discussions

Query parameters

  • authorId string(uuid)

    Optional author identifier to filter discussions (when null, returns all discussions).

  • offset integer(int32) Required

    The number of items to skip before starting to return results (pagination offset).

  • count integer(int32) Required

    The maximum number of items to return (pagination limit).

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • total_count integer(int32) Required
    • items array[object] Required
      Hide items attributes Show items attributes object
      • id string Required
      • title string Required
      • content string Required
      • author object | null Required

        Additional properties are NOT allowed.

        Hide author attributes Show author attributes object | null
        • id string(uuid) Required
        • username string Required
        • display_name string Required
        • avatar_url string | null Required
      • created_at string(date-time) Required
      • comment_count integer(int32) Required
      • last_comments_authors array[object] Required
        Hide last_comments_authors attributes Show last_comments_authors attributes object
        • id string(uuid) Required
        • username string Required
        • display_name string Required
        • avatar_url string | null Required
      • reaction_counters object Required
        Hide reaction_counters attribute Show reaction_counters attribute object
        • * integer(int32) Additional properties
      • viewer_reactions array[string] Required
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
GET /api/v1/discussions
curl \
 --request GET 'https://crowdparlay.com/api/v1/discussions?offset=42&count=42'
Response examples (200)
{
  "total_count": 42,
  "items": [
    {
      "id": "string",
      "title": "string",
      "content": "string",
      "author": {
        "id": "string",
        "username": "string",
        "display_name": "string",
        "avatar_url": "string"
      },
      "created_at": "2025-05-04T09:42:00Z",
      "comment_count": 42,
      "last_comments_authors": [
        {
          "id": "string",
          "username": "string",
          "display_name": "string",
          "avatar_url": "string"
        }
      ],
      "reaction_counters": {
        "additionalProperty1": 42,
        "additionalProperty2": 42
      },
      "viewer_reactions": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}