Discourse APIのドキュメントにGETリクエストの「リクエストボディ」という記載があります

GET は常にクエリ文字列を持ち、POST データを持つことはありません(そのため、413 Payload Too Large が返されるのは、POST データが予期されていないためです)。変更を加えることなくサーバーからデータを照会する場合は、(ほぼ) 必ず GET を使用し、POST は使用しません。したがって、data= の代わりに params= を使用する必要があります。

この特定の API 呼び出しのドキュメントは、悪く表現されていると思います(「リクエストボディスキーマ」は POST data を示唆しています)。そのため、これを Bug に移動します。料金は不要です。

import requests
import json

def get_post_from_topic(topic_id, post_id):
    endpoint = f"https://forum.example.com/t/{topic_id}/posts.json"
    api_username = 'system'
    api_key = 'REDACTED'
    headers = {
        "Content-Type": "application/json",
        "Api-Key": api_key,
        "Api-Username": api_username,
    }
    params = {
      "post_ids[]": post_id
    }
    response = requests.get(endpoint, headers=headers, params = params)
    if response.status_code == 200:
        return response

response = get_post_from_topic(6,8)
print(response.json())

{"post_stream": {"posts": [{"id": 8, "name": "system", "username": "system", "avatar_template": "/images/discourse-logo-sketch-small.png", "created_at": "2022-06-26T04:44:23.637Z", "cooked": "<p><a name=\"collect\"></a></p>\n<h2>\n<a name=\"what-information-do-we-collectcollect-1\" class=\"anchor\" href=\"#what-information-do-we-collectcollect-1\"></a><a href=\"#collect\">What information do we collect...
「いいね!」 5