Retrieve all messages in a thread
[AllowAnonymous]
Follows same access rules as GET /api/threads/
:guid (Line 197)| Flag | Visibility | Auth | Access |
|---|---|---|---|
| ON | public | No | ✅ Allowed |
| ON | unlisted | No | ✅ Allowed |
| ON | private | No | ❌ 401 |
| ON | private | Yes (owner) | ✅ Allowed |
| ON | private | Yes (other) | ❌ 403 |
| OFF | * | No | ❌ 401 |
| OFF | * | Yes (owner) | ✅ Allowed |
| OFF | * | Yes (other) | ❌ 403 |
threads table WHERE thread_id = {id}system_settings table WHERE key = 'public_sharing'thread_messages table WHERE thread_id = {id}{"items": []} (Line 253)| Code | HTTP | Cause | Controller Line |
|---|---|---|---|
NOT_FOUND | 404 | Thread doesn’t exist | 206-214 |
UNAUTHORIZED | 401 | Auth required but missing | 230-238 |
FORBIDDEN | 403 | Private thread, wrong user | 240-248 |
MESSAGES_ERROR | 500 | Service exception | 255-263 |
thread_messages.thread_id should be indexedthreads.thread_id primary keymodel1_id: Populatedmodel2_id: NULLmodel1_response: Populatedmodel2_response: NULLcomparison_id: NULLmodel1_id: Populatedmodel2_id: Populatedmodel1_response: Populatedmodel2_response: Populatedcomparison_id: Populated (links to comparisons table)