Fetches thread data.
GET /threads/{thread_id}
Fetches data for the specified thread.
Authorizations
Section titled “Authorizations ”- firebase
- None
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The id of the thread to fetch.
Examples
A thread with a comments thread.
8b2646af-2778-487e-8e44-7ae530c2549c
Responses
Section titled “ Responses ”The thread data.
object
A contribution to a thread.
object
Types of tags associated to a contribution.
object
A map from post_id to its comments.
object
object
The contribution that starts the thread.
object
Types of tags associated to a contribution.
object
Whether the thread is new. False when the user is logged out.
Whether the thread is muted. False when the user is logged out.
Whether the thread is hidden. False when the user is logged out.
Whether the thread is starred.
Examples
A thread with a comments thread with nested comments.
{ "id": "8b2646af-2778-487e-8e44-7ae530c2549c", "parent_board_slug": "gore", "parent_board_id": "c6d3d10e-8e49-4d73-b28a-9d652b41beec", "parent_realm_slug": "twisted-minds", "parent_realm_id": "76ef4cc3-1603-4278-95d7-99c59f481d2e", "starter": { "id": "ff9f2ae2-a254-4069-9791-3ac5e6dff5bb", "parent_thread_id": "8b2646af-2778-487e-8e44-7ae530c2549c", "parent_post_id": null, "created_at": "2020-09-25T05:42:00.00Z", "content": "[{\"insert\":\"Remember to be excellent to each other and only be mean to fictional characters!\"}]", "secret_identity": { "name": "GoreMaster5000", "avatar": "https://firebasestorage.googleapis.com/v0/b/bobaboard-fb.appspot.com/o/images%2Fbobaland%2Fc26e8ce9-a547-4ff4-9486-7a2faca4d873%2F6518df53-2031-4ac5-8d75-57a0051ed924?alt=media&token=23df54b7-297c-42ff-a0ea-b9862c9814f8", "color": "red", "accessory": null }, "user_identity": null, "friend": false, "own": false, "new": false, "tags": { "whisper_tags": [ "An announcement from your headmaster!" ], "index_tags": [], "category_tags": [], "content_warnings": [] }, "total_comments_amount": 2, "new_comments_amount": 0 }, "posts": [ { "id": "ff9f2ae2-a254-4069-9791-3ac5e6dff5bb", "parent_thread_id": "8b2646af-2778-487e-8e44-7ae530c2549c", "parent_post_id": null, "created_at": "2020-09-25T05:42:00.00Z", "content": "[{\"insert\":\"Remember to be excellent to each other and only be mean to fictional characters!\"}]", "secret_identity": { "name": "GoreMaster5000", "avatar": "https://firebasestorage.googleapis.com/v0/b/bobaboard-fb.appspot.com/o/images%2Fbobaland%2Fc26e8ce9-a547-4ff4-9486-7a2faca4d873%2F6518df53-2031-4ac5-8d75-57a0051ed924?alt=media&token=23df54b7-297c-42ff-a0ea-b9862c9814f8", "color": "red", "accessory": null }, "user_identity": null, "friend": false, "own": false, "new": false, "tags": { "whisper_tags": [ "An announcement from your headmaster!" ], "index_tags": [], "category_tags": [], "content_warnings": [] }, "total_comments_amount": 2, "new_comments_amount": 0 } ], "comments": { "ff9f2ae2-a254-4069-9791-3ac5e6dff5bb": [ { "id": "d3c21e0c-7ab9-4cb6-b1ed-1b7e558ba375", "parent_comment_id": null, "chain_parent_id": null, "parent_post_id": "ff9f2ae2-a254-4069-9791-3ac5e6dff5bb", "created_at": "2020-10-02T05:43:00.00Z", "content": "[{\"insert\":\"But can we be mean to you?\"}]", "secret_identity": { "name": "DragonFucker", "avatar": "https://pbs.twimg.com/profile_images/473496567366705152/JyHRKG7g.jpeg", "color": null, "accessory": null }, "user_identity": null, "friend": false, "own": false, "new": false }, { "id": "146d4087-e11e-4912-9d67-93065b9a0c78", "parent_comment_id": "d3c21e0c-7ab9-4cb6-b1ed-1b7e558ba375", "chain_parent_id": null, "parent_post_id": "ff9f2ae2-a254-4069-9791-3ac5e6dff5bb", "created_at": "2020-10-04T05:44:00.00Z", "content": "[{\"insert\":\"BobaNitro users can be mean to the webmaster once a month.\"}]", "secret_identity": { "name": "GoreMaster5000", "avatar": "https://firebasestorage.googleapis.com/v0/b/bobaboard-fb.appspot.com/o/images%2Fbobaland%2Fc26e8ce9-a547-4ff4-9486-7a2faca4d873%2F6518df53-2031-4ac5-8d75-57a0051ed924?alt=media&token=23df54b7-297c-42ff-a0ea-b9862c9814f8", "color": "red", "accessory": null }, "user_identity": null, "friend": false, "own": false, "new": false } ] }, "default_view": "thread", "muted": false, "hidden": false, "starred": false, "new": false, "last_activity_at": "2020-10-04T05:44:00.00Z", "new_posts_amount": 0, "new_comments_amount": 0, "total_comments_amount": 2, "total_posts_amount": 1, "direct_threads_amount": 0}
User was not found and thread requires authentication.
Generic response object
object
Examples
No authentication token given.
{ "message": "No authenticated user found."}
Expired authentication token given.
{ "message": "Authentication token expired."}
User is not authorized to access thread.
Generic response object
object
Examples
User does not have required permissions to access thread.
{ "message": "User does not have required permissions to access thread."}
The specified thread could not be found.
Generic response object
object
Examples
Thread not found.
{ "message": "The thread with id 29d1b2da-3289-454a-9089-2ed47db4967b was not found."}