Skip to content

Get a single forum thread including some of its messages.

GET
/api/forum/thread/{threadId}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

threadId*

which ID to return threads for

Typeinteger
Required

Responses

Success
Authorization
api_key
Variables
Key
Value
threadId*
cURL
curl -X GET \
'http://localhost/api/forum/thread/{threadId}'

Samples

cURL
curl -X GET http://localhost/api/forum/thread/{threadId}
JavaScript
fetch("http://localhost/api/forum/thread/{threadId}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/forum/thread/{threadId}");
Python
import requests
response = requests.get("http://localhost/api/forum/thread/{threadId}")
print(response.json())