action discourse_get_topic { label: "Get a single topic" provider: discourse method: GET path: "/t/{id}.json" encoding: json input: { type: "object" properties: { "Api-Key": { type: "string" } "Api-Username": { type: "string" } id: { type: "string" } } required: ["Api-Key", "Api-Username", "id"] additionalProperties: false } output: { required: ["actions_summary", "archetype", "archived", "bookmarked", "bookmarks", "category_id", "chunk_size", "closed", "created_at", "deleted_at", "deleted_by", "details", "draft", "draft_key", "draft_sequence", "fancy_title", "featured_link", "has_deleted", "has_summary", "highest_post_number", "id", "image_url", "last_posted_at", "like_count", "message_bus_last_id", "participant_count", "pinned", "pinned_at", "pinned_globally", "pinned_until", "post_stream", "posts_count", "reply_count", "show_read_indicator", "slow_mode_enabled_until", "slow_mode_seconds", "slug", "suggested_topics", "tags", "tags_descriptions", "thumbnails", "timeline_lookup", "title", "topic_timer", "unpinned", "user_id", "views", "visible", "word_count"] properties: { actions_summary: { type: "array" items: { type: "object" required: ["id", "count", "hidden", "can_act"] properties: { can_act: { type: "boolean" } count: { type: "integer" } hidden: { type: "boolean" } id: { type: "integer" } } additionalProperties: false } } archetype: { type: "string" } archived: { type: "boolean" } bookmarked: { type: "boolean" } bookmarks: { type: "array" items: { type: "object" } } category_id: { type: "integer" } chunk_size: { type: "integer" } closed: { type: "boolean" } created_at: { type: "string" } current_post_number: { type: "integer" } deleted_at: { type: ["string", "null"] } deleted_by: { type: ["string", "null"] } details: { type: "object" required: ["can_archive_topic", "can_close_topic", "can_convert_topic", "can_create_post", "can_delete", "can_edit", "can_edit_staff_notes", "can_moderate_category", "can_move_posts", "can_pin_unpin_topic", "can_remove_allowed_users", "can_remove_self_id", "can_reply_as_new_topic", "can_review_topic", "can_split_merge_topic", "can_toggle_topic_visibility", "created_by", "last_poster", "notification_level"] properties: { can_archive_topic: { type: "boolean" } can_close_topic: { type: "boolean" } can_convert_topic: { type: "boolean" } can_create_post: { type: "boolean" } can_delete: { type: "boolean" } can_edit: { type: "boolean" } can_edit_staff_notes: { type: "boolean" } can_flag_topic: { type: "boolean" } can_invite_to: { type: "boolean" } can_invite_via_email: { type: "boolean" } can_moderate_category: { type: "boolean" } can_move_posts: { type: "boolean" } can_pin_unpin_topic: { type: "boolean" } can_remove_allowed_users: { type: "boolean" } can_remove_self_id: { type: "integer" } can_reply_as_new_topic: { type: "boolean" } can_review_topic: { type: "boolean" } can_split_merge_topic: { type: "boolean" } can_toggle_topic_visibility: { type: "boolean" } created_by: { type: "object" required: ["avatar_template", "id", "name", "username"] properties: { avatar_template: { type: "string" } id: { type: "integer" } name: { type: "string" } username: { type: "string" } } additionalProperties: false } last_poster: { type: "object" required: ["avatar_template", "id", "name", "username"] properties: { avatar_template: { type: "string" } id: { type: "integer" } name: { type: "string" } username: { type: "string" } } additionalProperties: false } notification_level: { type: "integer" } participants: { type: "array" items: { type: "object" required: ["id", "username", "name", "avatar_template", "post_count", "primary_group_name", "flair_name", "flair_url", "flair_color", "flair_bg_color", "admin", "moderator", "trust_level"] properties: { admin: { type: "boolean" } avatar_template: { type: "string" } flair_bg_color: { type: ["string", "null"] } flair_color: { type: ["string", "null"] } flair_name: { type: ["string", "null"] } flair_url: { type: ["string", "null"] } id: { type: "integer" } moderator: { type: "boolean" } name: { type: "string" } post_count: { type: "integer" } primary_group_name: { type: ["string", "null"] } trust_level: { type: "integer" } username: { type: "string" } } additionalProperties: false } } } additionalProperties: false } draft: { type: ["string", "null"] } draft_key: { type: "string" } draft_sequence: { type: "integer" } fancy_title: { type: "string" } featured_link: { type: ["string", "null"] } has_deleted: { type: "boolean" } has_summary: { type: "boolean" } highest_post_number: { type: ["integer", "null"] } id: { type: "integer" } image_url: { type: ["string", "null"] } last_posted_at: { type: ["string", "null"] } like_count: { type: "integer" } message_bus_last_id: { type: "integer" } participant_count: { type: "integer" } pinned: { type: "boolean" } pinned_at: { type: ["string", "null"] } pinned_globally: { type: "boolean" } pinned_until: { type: ["string", "null"] } post_stream: { type: "object" required: ["posts", "stream"] properties: { posts: { type: "array" items: { type: "object" required: ["id", "name", "username", "avatar_template", "created_at", "cooked", "post_number", "post_type", "updated_at", "reply_count", "reply_to_post_number", "quote_count", "incoming_link_count", "reads", "readers_count", "score", "yours", "topic_id", "topic_slug", "display_username", "primary_group_name", "flair_name", "flair_url", "flair_bg_color", "flair_color", "version", "can_edit", "can_delete", "can_recover", "can_wiki", "link_counts", "read", "user_title", "bookmarked", "actions_summary", "moderator", "admin", "staff", "user_id", "hidden", "trust_level", "deleted_at", "user_deleted", "edit_reason", "can_view_edit_history", "wiki", "reviewable_id", "reviewable_score_count", "reviewable_score_pending_count"] properties: { actions_summary: { type: "array" items: { type: "object" required: ["id", "can_act"] properties: { can_act: { type: "boolean" } id: { type: "integer" } } additionalProperties: false } } admin: { type: "boolean" } avatar_template: { type: "string" } bookmarked: { type: "boolean" } can_delete: { type: "boolean" } can_edit: { type: "boolean" } can_recover: { type: "boolean" } can_view_edit_history: { type: "boolean" } can_wiki: { type: "boolean" } cooked: { type: "string" } created_at: { type: "string" } deleted_at: { type: ["string", "null"] } display_username: { type: "string" } edit_reason: { type: ["string", "null"] } flair_bg_color: { type: ["string", "null"] } flair_color: { type: ["string", "null"] } flair_name: { type: ["string", "null"] } flair_url: { type: ["string", "null"] } hidden: { type: "boolean" } id: { type: "integer" } incoming_link_count: { type: "integer" } link_counts: { type: "array" items: { type: "object" required: ["url", "internal", "reflection", "title", "clicks"] properties: { clicks: { type: "integer" } internal: { type: "boolean" } reflection: { type: "boolean" } title: { type: "string" } url: { type: "string" } } additionalProperties: false } } moderator: { type: "boolean" } name: { type: "string" } post_number: { type: "integer" } post_type: { type: "integer" } primary_group_name: { type: ["string", "null"] } quote_count: { type: "integer" } read: { type: "boolean" } readers_count: { type: "integer" } reads: { type: "integer" } reply_count: { type: "integer" } reply_to_post_number: { type: ["string", "null"] } reviewable_id: { type: "integer" } reviewable_score_count: { type: "integer" } reviewable_score_pending_count: { type: "integer" } score: { type: "integer" } staff: { type: "boolean" } topic_id: { type: "integer" } topic_slug: { type: "string" } trust_level: { type: "integer" } updated_at: { type: "string" } user_deleted: { type: "boolean" } user_id: { type: "integer" } user_title: { type: ["string", "null"] } username: { type: "string" } version: { type: "integer" } wiki: { type: "boolean" } yours: { type: "boolean" } } additionalProperties: false } } stream: { type: "array" items: { type: "object" } } } additionalProperties: false } posts_count: { type: "integer" } reply_count: { type: "integer" } show_read_indicator: { type: "boolean" } slow_mode_enabled_until: { type: ["string", "null"] } slow_mode_seconds: { type: "integer" } slug: { type: "string" } suggested_topics: { type: "array" items: { type: "object" required: ["id", "title", "fancy_title", "slug", "posts_count", "reply_count", "highest_post_number", "image_url", "created_at", "last_posted_at", "bumped", "bumped_at", "archetype", "unseen", "pinned", "unpinned", "excerpt", "visible", "closed", "archived", "bookmarked", "liked", "tags", "tags_descriptions", "like_count", "views", "category_id", "featured_link", "posters"] properties: { archetype: { type: "string" } archived: { type: "boolean" } bookmarked: { type: ["string", "null"] } bumped: { type: "boolean" } bumped_at: { type: "string" } category_id: { type: "integer" } closed: { type: "boolean" } created_at: { type: "string" } excerpt: { type: "string" } fancy_title: { type: "string" } featured_link: { type: ["string", "null"] } highest_post_number: { type: "integer" } id: { type: "integer" } image_url: { type: ["string", "null"] } last_posted_at: { type: ["string", "null"] } like_count: { type: "integer" } liked: { type: ["string", "null"] } pinned: { type: "boolean" } posters: { type: "array" items: { type: "object" required: ["extras", "description", "user"] properties: { description: { type: "string" } extras: { type: "string" } user: { type: "object" required: ["id", "username", "name", "avatar_template"] properties: { avatar_template: { type: "string" } id: { type: "integer" } name: { type: "string" } username: { type: "string" } } additionalProperties: false } } additionalProperties: false } } posts_count: { type: "integer" } reply_count: { type: "integer" } slug: { type: "string" } tags: { type: "array" items: { type: "object" } } tags_descriptions: { type: "object" properties: {} additionalProperties: false } title: { type: "string" } unpinned: { type: ["string", "null"] } unseen: { type: "boolean" } views: { type: "integer" } visible: { type: "boolean" } } additionalProperties: false } } tags: { type: "array" items: { type: "object" } } tags_descriptions: { type: "object" properties: {} additionalProperties: false } thumbnails: { type: ["string", "null"] } timeline_lookup: { type: "array" items: { type: "object" } } title: { type: "string" } topic_timer: { type: ["string", "null"] } unpinned: { type: ["string", "null"] } user_id: { type: "integer" } views: { type: "integer" } visible: { type: "boolean" } word_count: { type: ["integer", "null"] } } additionalProperties: false } }