action discourse_get_site { label: "Get site info" description: "Can be used to fetch all categories and subcategories" provider: discourse method: GET path: "/site.json" encoding: json output: { required: ["anonymous_top_menu_items", "archetypes", "auth_providers", "can_create_tag", "can_tag_pms", "can_tag_topics", "categories", "censored_regexp", "custom_emoji_translation", "default_archetype", "default_dark_color_scheme", "filters", "groups", "notification_types", "periods", "post_action_types", "post_types", "tags_filter_regexp", "top_menu_items", "top_tags", "topic_featured_link_allowed_category_ids", "topic_flag_types", "trust_levels", "uncategorized_category_id", "user_color_schemes", "user_field_max_length", "user_fields", "user_themes", "watched_words_link", "watched_words_replace"] properties: { anonymous_top_menu_items: { type: "array" items: { type: "object" } } archetypes: { type: "array" items: { type: "object" required: ["id", "name", "options"] properties: { id: { type: "string" } name: { type: "string" } options: { type: "array" items: { type: "object" } } } additionalProperties: false } } auth_providers: { type: "array" items: { type: "object" } } can_associate_groups: { type: "boolean" } can_create_tag: { type: "boolean" } can_tag_pms: { type: "boolean" } can_tag_topics: { type: "boolean" } categories: { type: "array" items: { type: "object" required: ["id", "name", "color", "text_color", "slug", "topic_count", "post_count", "position", "topic_url", "read_restricted", "permission", "notification_level", "topic_template", "has_children", "sort_order", "sort_ascending", "show_subcategory_list", "num_featured_topics", "default_view", "subcategory_list_style", "default_top_period", "default_list_filter", "minimum_required_tags", "navigate_to_first_post_after_read", "allowed_tags", "allowed_tag_groups", "allow_global_tags", "required_tag_groups", "read_only_banner", "uploaded_logo", "uploaded_logo_dark", "uploaded_background", "can_edit"] properties: { allow_global_tags: { type: "boolean" } allowed_tag_groups: { type: "array" items: { type: "object" } } allowed_tags: { type: "array" items: { type: "object" } } can_edit: { type: "boolean" } color: { type: "string" } custom_fields: { type: ["object", "null"] } default_list_filter: { type: "string" } default_top_period: { type: "string" } default_view: { type: ["string", "null"] } description: { type: ["string", "null"] } description_excerpt: { type: ["string", "null"] } description_text: { type: ["string", "null"] } form_template_ids: { type: "array" items: { type: "object" } } has_children: { type: "boolean" } id: { type: "integer" } minimum_required_tags: { type: "integer" } name: { type: "string" } navigate_to_first_post_after_read: { type: "boolean" } notification_level: { type: "integer" } num_featured_topics: { type: "integer" } parent_category_id: { type: "integer" } permission: { type: "integer" } position: { type: "integer" } post_count: { type: "integer" } read_only_banner: { type: ["string", "null"] } read_restricted: { type: "boolean" } required_tag_groups: { type: "array" items: { type: "object" required: ["name", "min_count"] properties: { min_count: { type: "integer" } name: { type: "string" } } additionalProperties: false } } show_subcategory_list: { type: "boolean" } slug: { type: "string" } sort_ascending: { type: ["string", "null"] } sort_order: { type: ["string", "null"] } subcategory_list_style: { type: "string" } text_color: { type: "string" } topic_count: { type: "integer" } topic_template: { type: ["string", "null"] } topic_url: { type: "string" } uploaded_background: { type: ["string", "null"] } uploaded_logo: { type: ["string", "null"] } uploaded_logo_dark: { type: ["string", "null"] } } additionalProperties: false } } censored_regexp: { type: "array" items: { type: "object" } } custom_emoji_translation: { type: "object" properties: {} additionalProperties: false } default_archetype: { type: "string" } default_dark_color_scheme: { type: ["object", "null"] } displayed_about_plugin_stat_groups: { type: "array" } filters: { type: "array" items: { type: "object" } } groups: { type: "array" items: { type: "object" required: ["id", "name", "flair_url", "flair_bg_color", "flair_color"] properties: { flair_bg_color: { type: ["string", "null"] } flair_color: { type: ["string", "null"] } flair_url: { type: ["string", "null"] } id: { type: "integer" } name: { type: "string" } } additionalProperties: false } } hashtag_configurations: { type: "object" } hashtag_icons: { type: "array" } markdown_additional_options: { type: "object" } notification_types: { type: "object" required: ["bookmark_reminder", "chat_group_mention", "chat_invitation", "chat_mention", "chat_message", "code_review_commit_approved", "custom", "edited", "event_invitation", "event_reminder", "granted_badge", "group_mentioned", "group_message_summary", "invited_to_private_message", "invited_to_topic", "invitee_accepted", "liked", "liked_consolidated", "linked", "membership_request_accepted", "membership_request_consolidated", "mentioned", "moved_post", "post_approved", "posted", "private_message", "quoted", "reaction", "replied", "topic_reminder", "votes_released", "watching_category_or_tag", "watching_first_post"] properties: { assigned: { type: "integer" } bookmark_reminder: { type: "integer" } chat_group_mention: { type: "integer" } chat_invitation: { type: "integer" } chat_mention: { type: "integer" } chat_message: { type: "integer" } chat_quoted: { type: "integer" } circles_activity: { type: "integer" } code_review_commit_approved: { type: "integer" } custom: { type: "integer" } edited: { type: "integer" } event_invitation: { type: "integer" } event_reminder: { type: "integer" } following: { type: "integer" } following_created_topic: { type: "integer" } following_replied: { type: "integer" } granted_badge: { type: "integer" } group_mentioned: { type: "integer" } group_message_summary: { type: "integer" } invited_to_private_message: { type: "integer" } invited_to_topic: { type: "integer" } invitee_accepted: { type: "integer" } liked: { type: "integer" } liked_consolidated: { type: "integer" } linked: { type: "integer" } membership_request_accepted: { type: "integer" } membership_request_consolidated: { type: "integer" } mentioned: { type: "integer" } moved_post: { type: "integer" } new_features: { type: "integer" } post_approved: { type: "integer" } posted: { type: "integer" } private_message: { type: "integer" } question_answer_user_commented: { type: "integer" } quoted: { type: "integer" } reaction: { type: "integer" } replied: { type: "integer" } topic_reminder: { type: "integer" } votes_released: { type: "integer" } watching_category_or_tag: { type: "integer" } watching_first_post: { type: "integer" } } additionalProperties: false } periods: { type: "array" items: { type: "object" } } post_action_types: { type: "array" items: { type: "object" required: ["id", "name_key", "name", "description", "short_description", "is_flag", "is_custom_flag"] properties: { description: { type: "string" } id: { type: ["integer", "null"] } is_custom_flag: { type: "boolean" } is_flag: { type: "boolean" } name: { type: "string" } name_key: { type: ["string", "null"] } short_description: { type: "string" } } additionalProperties: false } } post_types: { type: "object" required: ["moderator_action", "regular", "small_action", "whisper"] properties: { moderator_action: { type: "integer" } regular: { type: "integer" } small_action: { type: "integer" } whisper: { type: "integer" } } additionalProperties: false } show_welcome_topic_banner: { type: "boolean" } tags_filter_regexp: { type: "string" } top_menu_items: { type: "array" items: { type: "object" } } top_tags: { type: "array" items: { type: "object" } } topic_featured_link_allowed_category_ids: { type: "array" items: { type: "object" } } topic_flag_types: { type: "array" items: { type: "object" required: ["id", "name_key", "name", "description", "short_description", "is_flag", "is_custom_flag"] properties: { description: { type: "string" } id: { type: ["integer", "null"] } is_custom_flag: { type: "boolean" } is_flag: { type: "boolean" } name: { type: "string" } name_key: { type: ["string", "null"] } short_description: { type: "string" } } additionalProperties: false } } trust_levels: { type: "object" required: ["basic", "leader", "member", "newuser", "regular"] properties: { basic: { type: "integer" } leader: { type: "integer" } member: { type: "integer" } newuser: { type: "integer" } regular: { type: "integer" } } additionalProperties: false } uncategorized_category_id: { type: "integer" } user_color_schemes: { type: "array" items: { type: "object" required: ["id", "name", "is_dark"] properties: { id: { type: "integer" } is_dark: { type: "boolean" } name: { type: "string" } } additionalProperties: false } } user_field_max_length: { type: "integer" } user_fields: { type: "array" items: { type: "object" } } user_themes: { type: "array" items: { type: "object" required: ["theme_id", "name", "default", "color_scheme_id"] properties: { color_scheme_id: { type: ["integer", "null"] } default: { type: "boolean" } name: { type: "string" } theme_id: { type: "integer" } } additionalProperties: false } } watched_words_link: { type: ["string", "null"] } watched_words_replace: { type: ["string", "null"] } whispers_allowed_groups_names: { type: "array" } wizard_required: { type: "boolean" } } additionalProperties: false } }