Skip to content

Instantly share code, notes, and snippets.

@kayssun
Last active April 11, 2018 13:57
Show Gist options
  • Save kayssun/ddbbaa863bfa8eaa0699 to your computer and use it in GitHub Desktop.
Save kayssun/ddbbaa863bfa8eaa0699 to your computer and use it in GitHub Desktop.
Discourse API example content

Discourse API

Beispiel-Antworten der API

User

URL: /admin/users/{username}.json
Example: /admin/users/kayssun.json

{
    "id": 1,
    "username": "kayssun",
    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/kayssun/{size}/15_1.png",
    "email": "g.visscher@core4.de",
    "active": true,
    "admin": true,
    "moderator": false,
    "last_seen_at": "2015-10-06T14:20:33.465Z",
    "last_emailed_at": "2015-09-10T13:32:49.087Z",
    "created_at": "2015-09-10T13:32:34.469Z",
    "last_seen_age": "< 1m",
    "last_emailed_age": "26d",
    "created_at_age": "26d",
    "username_lower": "kayssun",
    "trust_level": 0,
    "trust_level_locked": false,
    "flag_level": 0,
    "title": null,
    "suspended_at": null,
    "suspended_till": null,
    "suspended": null,
    "blocked": false,
    "time_read": "7m",
    "days_visited": 8,
    "posts_read_count": 5,
    "topics_entered": 3,
    "post_count": 1,
    "name": "Gerrit Visscher",
    "associated_accounts": "No accounts associated",
    "can_send_activation_email": true,
    "can_activate": false,
    "can_deactivate": false,
    "ip_address": "127.0.0.1",
    "registration_ip_address": "127.0.0.1",
    "can_grant_admin": false,
    "can_revoke_admin": false,
    "can_grant_moderation": true,
    "can_revoke_moderation": false,
    "can_impersonate": true,
    "like_count": 0,
    "like_given_count": 0,
    "topic_count": 1,
    "flags_given_count": 0,
    "flags_received_count": 0,
    "private_topics_count": 1,
    "can_delete_all_posts": false,
    "can_be_deleted": false,
    "can_be_anonymized": false,
    "suspend_reason": null,
    "primary_group_id": null,
    "badge_count": 0,
    "warnings_received_count": 0,
    "single_sign_on_record": null,
    "approved_by": null,
    "suspended_by": null,
    "tl3_requirements": {
        "time_period": 100,
        "requirements_met": false,
        "requirements_lost": true,
        "trust_level_locked": false,
        "on_grace_period": false,
        "days_visited": 1,
        "min_days_visited": 50,
        "num_topics_replied_to": 0,
        "min_topics_replied_to": 10,
        "topics_viewed": 3,
        "min_topics_viewed": 3,
        "posts_read": 4,
        "min_posts_read": 3,
        "topics_viewed_all_time": 3,
        "min_topics_viewed_all_time": 200,
        "posts_read_all_time": 4,
        "min_posts_read_all_time": 500,
        "num_flagged_posts": 0,
        "max_flagged_posts": 5,
        "num_flagged_by_users": 0,
        "max_flagged_by_users": 5,
        "num_likes_given": 0,
        "min_likes_given": 30,
        "num_likes_received": 0,
        "min_likes_received": 20,
        "num_likes_received_days": 0,
        "min_likes_received_days": 7,
        "num_likes_received_users": 0,
        "min_likes_received_users": 5
    },
    "groups": [{
        "id": 1,
        "automatic": true,
        "name": "admins",
        "user_count": 2,
        "alias_level": 0,
        "visible": true,
        "automatic_membership_email_domains": null,
        "automatic_membership_retroactive": false,
        "primary_group": false,
        "title": null,
        "grant_trust_level": null
    }, {
        "id": 3,
        "automatic": true,
        "name": "staff",
        "user_count": 2,
        "alias_level": 0,
        "visible": true,
        "automatic_membership_email_domains": null,
        "automatic_membership_retroactive": false,
        "primary_group": false,
        "title": null,
        "grant_trust_level": null
    }, {
        "id": 10,
        "automatic": true,
        "name": "trust_level_0",
        "user_count": 3,
        "alias_level": 0,
        "visible": true,
        "automatic_membership_email_domains": null,
        "automatic_membership_retroactive": false,
        "primary_group": false,
        "title": null,
        "grant_trust_level": null
    }
    ]
}

Post / Topic

URL: /t/{topic_id}/{post_id}.json
Example: /t/7/1.json

Actually a bit unsure if the second number is actually the post number. It is not the post id, though.

{
    "post_stream": {
        "posts": [{
            "id": 10,
            "name": "system",
            "username": "system",
            "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png",
            "created_at": "2015-09-10T13:28:47.363Z",
            "cooked": "<p>This is a permanent topic, visible only to staff, for storing images and files used in the site design. Don't delete it!</p>\n\n<p>Here's how:</p>\n\n<ol>\n<li>Reply to this topic.</li>\n<li>Upload all the images you wish to use for logos, favicons, and so forth here. (Use the upload toolbar icon in the post editor, or drag-and-drop or paste images.)</li>\n<li>Submit your reply to post it.</li>\n<li>Right click the images in your new post to get the path to the uploaded images, or click the edit icon to edit your post and retrieve the path to the images. Copy the image paths.</li>\n<li>Paste those image paths into <a href=\"/admin/site_settings/category/required\">basic settings</a>.</li>\n</ol>\n\n<p>If you need to enable different file type uploads, edit <code>authorized_extensions</code> in the <a href=\"/admin/site_settings/category/files\">file settings</a>.</p>",
            "post_number": 1,
            "post_type": 1,
            "updated_at": "2015-09-10T13:28:47.363Z",
            "reply_count": 0,
            "reply_to_post_number": null,
            "quote_count": 0,
            "avg_time": null,
            "incoming_link_count": 0,
            "reads": 2,
            "score": 0.2,
            "yours": false,
            "topic_id": 7,
            "topic_slug": "assets-for-the-site-design",
            "display_username": "system",
            "primary_group_name": null,
            "version": 1,
            "can_edit": true,
            "can_delete": false,
            "can_recover": true,
            "read": true,
            "user_title": null,
            "actions_summary": [{
                "id": 2,
                "can_act": true
            }, {
                "id": 3,
                "can_act": true
            }, {
                "id": 4,
                "can_act": true
            }, {
                "id": 5,
                "hidden": true,
                "can_act": true
            }, {
                "id": 6,
                "can_act": true
            }, {
                "id": 7,
                "can_act": true
            }, {
                "id": 8,
                "can_act": true
            }
            ],
            "moderator": true,
            "admin": true,
            "staff": true,
            "user_id": - 1,
            "hidden": false,
            "hidden_reason_id": null,
            "trust_level": 4,
            "deleted_at": null,
            "user_deleted": false,
            "edit_reason": null,
            "can_view_edit_history": true,
            "wiki": false
        }
        ],
        "stream": [10]
    },
    "id": 7,
    "title": "Assets for the site design",
    "fancy_title": "Assets for the site design",
    "posts_count": 1,
    "created_at": "2015-09-10T13:28:47.344Z",
    "views": 1,
    "reply_count": 0,
    "participant_count": 1,
    "like_count": 0,
    "last_posted_at": "2015-09-10T13:28:47.363Z",
    "visible": true,
    "closed": false,
    "archived": false,
    "has_summary": false,
    "archetype": "regular",
    "slug": "assets-for-the-site-design",
    "category_id": 4,
    "word_count": 138,
    "deleted_at": null,
    "pending_posts_count": 0,
    "user_id": - 1,
    "draft": null,
    "draft_key": "topic_7",
    "draft_sequence": 0,
    "posted": false,
    "unpinned": null,
    "pinned_globally": false,
    "pinned": false,
    "pinned_at": null,
    "pinned_until": null,
    "details": {
        "auto_close_at": null,
        "auto_close_hours": null,
        "auto_close_based_on_last_post": false,
        "created_by": {
            "id": - 1,
            "username": "system",
            "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
        },
        "last_poster": {
            "id": - 1,
            "username": "system",
            "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
        },
        "participants": [{
            "id": - 1,
            "username": "system",
            "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png",
            "post_count": 1
        }
        ],
        "suggested_topics": [{
            "id": 4,
            "title": "Terms of Service",
            "fancy_title": "Terms of Service",
            "slug": "terms-of-service",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:46.519Z",
            "last_posted_at": "2015-09-10T13:28:46.900Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:46.900Z",
            "unseen": false,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "archetype": "regular",
            "like_count": 0,
            "views": 0,
            "category_id": 4
        }, {
            "id": 6,
            "title": "Privacy Policy",
            "fancy_title": "Privacy Policy",
            "slug": "privacy-policy",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.193Z",
            "last_posted_at": "2015-09-10T13:28:47.311Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.311Z",
            "unseen": false,
            "last_read_post_number": 2,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 2,
            "bookmarked": false,
            "liked": false,
            "archetype": "regular",
            "like_count": 0,
            "views": 1,
            "category_id": 4
        }, {
            "id": 5,
            "title": "FAQ/Guidelines",
            "fancy_title": "FAQ/Guidelines",
            "slug": "faq-guidelines",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:46.944Z",
            "last_posted_at": "2015-09-10T13:28:47.151Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.151Z",
            "unseen": false,
            "last_read_post_number": 1,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 1,
            "bookmarked": false,
            "liked": false,
            "archetype": "regular",
            "like_count": 0,
            "views": 1,
            "category_id": 4
        }, {
            "id": 10,
            "title": "READ ME FIRST: Admin Quick Start Guide",
            "fancy_title": "READ ME FIRST: Admin Quick Start Guide",
            "slug": "read-me-first-admin-quick-start-guide",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.512Z",
            "last_posted_at": "2015-09-10T13:28:47.530Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.530Z",
            "unseen": false,
            "last_read_post_number": 1,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 1,
            "bookmarked": false,
            "liked": false,
            "archetype": "regular",
            "like_count": 0,
            "views": 1,
            "category_id": 4
        }, {
            "id": 8,
            "title": "Welcome to Discourse",
            "fancy_title": "Welcome to Discourse",
            "slug": "welcome-to-discourse",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": "/images/welcome/discourse-edit-post-animated.gif",
            "created_at": "2015-09-10T13:28:47.399Z",
            "last_posted_at": "2015-09-10T13:28:47.416Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.416Z",
            "unseen": false,
            "pinned": true,
            "unpinned": null,
            "excerpt": "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "archetype": "regular",
            "like_count": 0,
            "views": 4,
            "category_id": 1
        }
        ],
        "notification_level": 1,
        "notifications_reason_id": null,
        "can_move_posts": true,
        "can_edit": true,
        "can_delete": true,
        "can_recover": true,
        "can_remove_allowed_users": true,
        "can_invite_to": true,
        "can_create_post": true,
        "can_reply_as_new_topic": true,
        "can_flag_topic": true
    },
    "highest_post_number": 1,
    "last_read_post_number": 1,
    "deleted_by": null,
    "has_deleted": false,
    "actions_summary": [{
        "id": 4,
        "count": 0,
        "hidden": false,
        "can_act": true
    }, {
        "id": 7,
        "count": 0,
        "hidden": false,
        "can_act": true
    }, {
        "id": 8,
        "count": 0,
        "hidden": false,
        "can_act": true
    }
    ],
    "chunk_size": 20,
    "bookmarked": false
}

Latest topics

URL: /latest.json

{
    "users": [{
        "id": - 1,
        "username": "system",
        "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
    }
    ],
    "topic_list": {
        "can_create_topic": true,
        "draft": null,
        "draft_key": "new_topic",
        "draft_sequence": 0,
        "per_page": 30,
        "topics": [{
            "id": 8,
            "title": "Welcome to Discourse",
            "fancy_title": "Welcome to Discourse",
            "slug": "welcome-to-discourse",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": "/images/welcome/discourse-edit-post-animated.gif",
            "created_at": "2015-09-10T13:28:47.399Z",
            "last_posted_at": "2015-09-10T13:28:47.416Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.416Z",
            "unseen": false,
            "pinned": true,
            "unpinned": null,
            "excerpt": "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "views": 4,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 1,
            "pinned_globally": true,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 10,
            "title": "READ ME FIRST: Admin Quick Start Guide",
            "fancy_title": "READ ME FIRST: Admin Quick Start Guide",
            "slug": "read-me-first-admin-quick-start-guide",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.512Z",
            "last_posted_at": "2015-09-10T13:28:47.530Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.530Z",
            "unseen": false,
            "last_read_post_number": 1,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 1,
            "bookmarked": false,
            "liked": false,
            "views": 1,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 4,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 9,
            "title": "Welcome to the Lounge",
            "fancy_title": "Welcome to the Lounge",
            "slug": "welcome-to-the-lounge",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.448Z",
            "last_posted_at": "2015-09-10T13:28:47.464Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.464Z",
            "unseen": false,
            "pinned": true,
            "unpinned": null,
            "excerpt": "Congratulations! [:confetti_ball:] \n\nIf you can see this topic, you were recently promoted to regular (trust level 3). \n\nYou can now … \n\n\nEdit the title of any topic\nChange the category of any topic\nHave all your links f&hellip;",
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "views": 0,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 2,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 7,
            "title": "Assets for the site design",
            "fancy_title": "Assets for the site design",
            "slug": "assets-for-the-site-design",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.344Z",
            "last_posted_at": "2015-09-10T13:28:47.363Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.363Z",
            "unseen": false,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "views": 0,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 4,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 6,
            "title": "Privacy Policy",
            "fancy_title": "Privacy Policy",
            "slug": "privacy-policy",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:47.193Z",
            "last_posted_at": "2015-09-10T13:28:47.311Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.311Z",
            "unseen": false,
            "last_read_post_number": 2,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 2,
            "bookmarked": false,
            "liked": false,
            "views": 1,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 4,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 5,
            "title": "FAQ/Guidelines",
            "fancy_title": "FAQ/Guidelines",
            "slug": "faq-guidelines",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:46.944Z",
            "last_posted_at": "2015-09-10T13:28:47.151Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.151Z",
            "unseen": false,
            "last_read_post_number": 1,
            "unread": 0,
            "new_posts": 0,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "notification_level": 1,
            "bookmarked": false,
            "liked": false,
            "views": 1,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 4,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }, {
            "id": 4,
            "title": "Terms of Service",
            "fancy_title": "Terms of Service",
            "slug": "terms-of-service",
            "posts_count": 2,
            "reply_count": 0,
            "highest_post_number": 2,
            "image_url": null,
            "created_at": "2015-09-10T13:28:46.519Z",
            "last_posted_at": "2015-09-10T13:28:46.900Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:46.900Z",
            "unseen": false,
            "pinned": false,
            "unpinned": null,
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "views": 0,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 4,
            "pinned_globally": false,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }
        ]
    }
}

Categories

URL: /categories.json

{
    "featured_users": [{
        "id": - 1,
        "username": "system",
        "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
    }
    ],
    "category_list": {
        "can_create_category": true,
        "can_create_topic": true,
        "draft": null,
        "draft_key": "new_topic",
        "draft_sequence": 0,
        "categories": [{
            "id": 4,
            "name": "Staff",
            "color": "283890",
            "text_color": "FFFFFF",
            "slug": "staff",
            "topic_count": 5,
            "post_count": 8,
            "position": 2,
            "description": "Private category for staff discussions. Topics are only visible to admins and moderators.",
            "description_text": "Private category for staff discussions. Topics are only visible to admins and moderators.",
            "topic_url": "/t/about-the-staff-category/3",
            "read_restricted": true,
            "permission": 1,
            "notification_level": null,
            "logo_url": null,
            "background_url": null,
            "can_edit": true,
            "topic_template": null,
            "has_children": false,
            "topics_day": 0,
            "topics_week": 0,
            "topics_month": 5,
            "topics_year": 5,
            "posts_day": 0,
            "posts_week": 0,
            "posts_month": 8,
            "posts_year": 8,
            "description_excerpt": "Private category for staff discussions. Topics are only visible to admins and moderators.",
            "featured_user_ids": [ - 1],
            "topics": [{
                "id": 10,
                "title": "READ ME FIRST: Admin Quick Start Guide",
                "fancy_title": "READ ME FIRST: Admin Quick Start Guide",
                "slug": "read-me-first-admin-quick-start-guide",
                "posts_count": 1,
                "reply_count": 0,
                "highest_post_number": 1,
                "image_url": null,
                "created_at": "2015-09-10T13:28:47.512Z",
                "last_posted_at": "2015-09-10T13:28:47.530Z",
                "bumped": true,
                "bumped_at": "2015-09-10T13:28:47.530Z",
                "unseen": false,
                "last_read_post_number": 1,
                "unread": 0,
                "new_posts": 0,
                "pinned": false,
                "unpinned": null,
                "visible": true,
                "closed": false,
                "archived": false,
                "notification_level": 1,
                "bookmarked": false,
                "liked": false,
                "last_poster": {
                    "id": - 1,
                    "username": "system",
                    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
                }
            }, {
                "id": 7,
                "title": "Assets for the site design",
                "fancy_title": "Assets for the site design",
                "slug": "assets-for-the-site-design",
                "posts_count": 1,
                "reply_count": 0,
                "highest_post_number": 1,
                "image_url": null,
                "created_at": "2015-09-10T13:28:47.344Z",
                "last_posted_at": "2015-09-10T13:28:47.363Z",
                "bumped": true,
                "bumped_at": "2015-09-10T13:28:47.363Z",
                "unseen": false,
                "pinned": false,
                "unpinned": null,
                "visible": true,
                "closed": false,
                "archived": false,
                "bookmarked": null,
                "liked": null,
                "last_poster": {
                    "id": - 1,
                    "username": "system",
                    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
                }
            }, {
                "id": 6,
                "title": "Privacy Policy",
                "fancy_title": "Privacy Policy",
                "slug": "privacy-policy",
                "posts_count": 2,
                "reply_count": 0,
                "highest_post_number": 2,
                "image_url": null,
                "created_at": "2015-09-10T13:28:47.193Z",
                "last_posted_at": "2015-09-10T13:28:47.311Z",
                "bumped": true,
                "bumped_at": "2015-09-10T13:28:47.311Z",
                "unseen": false,
                "last_read_post_number": 2,
                "unread": 0,
                "new_posts": 0,
                "pinned": false,
                "unpinned": null,
                "visible": true,
                "closed": false,
                "archived": false,
                "notification_level": 2,
                "bookmarked": false,
                "liked": false,
                "last_poster": {
                    "id": - 1,
                    "username": "system",
                    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
                }
            }
            ]
        }, {
            "id": 1,
            "name": "Uncategorized",
            "color": "AB9364",
            "text_color": "FFFFFF",
            "slug": "uncategorized",
            "topic_count": 1,
            "post_count": 1,
            "position": 0,
            "description": "Topics that don't need a category, or don't fit into any other existing category.",
            "description_text": "",
            "topic_url": null,
            "read_restricted": false,
            "permission": 1,
            "notification_level": null,
            "logo_url": null,
            "background_url": null,
            "can_edit": true,
            "topic_template": null,
            "has_children": false,
            "topics_day": 0,
            "topics_week": 0,
            "topics_month": 1,
            "topics_year": 1,
            "posts_day": 0,
            "posts_week": 0,
            "posts_month": 1,
            "posts_year": 1,
            "description_excerpt": "Topics that don&#39;t need a category, or don&#39;t fit into any other existing category.",
            "is_uncategorized": true,
            "featured_user_ids": [ - 1],
            "topics": [{
                "id": 8,
                "title": "Welcome to Discourse",
                "fancy_title": "Welcome to Discourse",
                "slug": "welcome-to-discourse",
                "posts_count": 1,
                "reply_count": 0,
                "highest_post_number": 1,
                "image_url": "/images/welcome/discourse-edit-post-animated.gif",
                "created_at": "2015-09-10T13:28:47.399Z",
                "last_posted_at": "2015-09-10T13:28:47.416Z",
                "bumped": true,
                "bumped_at": "2015-09-10T13:28:47.416Z",
                "unseen": false,
                "pinned": true,
                "unpinned": null,
                "excerpt": "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
                "visible": true,
                "closed": false,
                "archived": false,
                "bookmarked": null,
                "liked": null,
                "last_poster": {
                    "id": - 1,
                    "username": "system",
                    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
                }
            }
            ]
        }, {
            "id": 2,
            "name": "Lounge",
            "color": "EEEEEE",
            "text_color": "652D90",
            "slug": "lounge",
            "topic_count": 1,
            "post_count": 1,
            "position": 3,
            "description": "A category exclusive to members with trust level 3 and higher.",
            "description_text": "A category exclusive to members with trust level 3 and higher.",
            "topic_url": "/t/about-the-lounge-category/1",
            "read_restricted": true,
            "permission": 1,
            "notification_level": null,
            "logo_url": null,
            "background_url": null,
            "can_edit": true,
            "topic_template": null,
            "has_children": false,
            "topics_day": 0,
            "topics_week": 0,
            "topics_month": 1,
            "topics_year": 1,
            "posts_day": 0,
            "posts_week": 0,
            "posts_month": 1,
            "posts_year": 1,
            "description_excerpt": "A category exclusive to members with trust level 3 and higher.",
            "featured_user_ids": [ - 1],
            "topics": [{
                "id": 9,
                "title": "Welcome to the Lounge",
                "fancy_title": "Welcome to the Lounge",
                "slug": "welcome-to-the-lounge",
                "posts_count": 1,
                "reply_count": 0,
                "highest_post_number": 1,
                "image_url": null,
                "created_at": "2015-09-10T13:28:47.448Z",
                "last_posted_at": "2015-09-10T13:28:47.464Z",
                "bumped": true,
                "bumped_at": "2015-09-10T13:28:47.464Z",
                "unseen": false,
                "pinned": true,
                "unpinned": null,
                "excerpt": "Congratulations! [:confetti_ball:] \n\nIf you can see this topic, you were recently promoted to regular (trust level 3). \n\nYou can now … \n\n\nEdit the title of any topic\nChange the category of any topic\nHave all your links f&hellip;",
                "visible": true,
                "closed": false,
                "archived": false,
                "bookmarked": null,
                "liked": null,
                "last_poster": {
                    "id": - 1,
                    "username": "system",
                    "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
                }
            }
            ]
        }, {
            "id": 3,
            "name": "Site Feedback",
            "color": "808281",
            "text_color": "FFFFFF",
            "slug": "site-feedback",
            "topic_count": 0,
            "post_count": 0,
            "position": 1,
            "description": "Discussion about this site, its organization, how it works, and how we can improve it.",
            "description_text": "Discussion about this site, its organization, how it works, and how we can improve it.",
            "topic_url": "/t/about-the-site-feedback-category/2",
            "read_restricted": false,
            "permission": 1,
            "notification_level": null,
            "logo_url": null,
            "background_url": null,
            "can_edit": true,
            "topic_template": null,
            "has_children": false,
            "topics_day": 0,
            "topics_week": 0,
            "topics_month": 0,
            "topics_year": 0,
            "posts_day": 0,
            "posts_week": 0,
            "posts_month": 0,
            "posts_year": 0,
            "description_excerpt": "Discussion about this site, its organization, how it works, and how we can improve it.",
            "featured_user_ids": [ - 1]
        }
        ]
    }
}

Topic list in a category

URL: /c/{category_name}/l/latest.json
Example: /c/uncategorized/l/latest.json

{
    "users": [{
        "id": - 1,
        "username": "system",
        "avatar_template": "/user_avatar/discourse.luebbe.core4dev.de/system/{size}/12_1.png"
    }
    ],
    "topic_list": {
        "can_create_topic": true,
        "draft": null,
        "draft_key": "new_topic",
        "draft_sequence": 0,
        "per_page": 30,
        "topics": [{
            "id": 8,
            "title": "Welcome to Discourse",
            "fancy_title": "Welcome to Discourse",
            "slug": "welcome-to-discourse",
            "posts_count": 1,
            "reply_count": 0,
            "highest_post_number": 1,
            "image_url": "/images/welcome/discourse-edit-post-animated.gif",
            "created_at": "2015-09-10T13:28:47.399Z",
            "last_posted_at": "2015-09-10T13:28:47.416Z",
            "bumped": true,
            "bumped_at": "2015-09-10T13:28:47.416Z",
            "unseen": false,
            "pinned": true,
            "unpinned": null,
            "excerpt": "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
            "visible": true,
            "closed": false,
            "archived": false,
            "bookmarked": null,
            "liked": null,
            "views": 4,
            "like_count": 0,
            "has_summary": false,
            "archetype": "regular",
            "last_poster_username": "system",
            "category_id": 1,
            "pinned_globally": true,
            "posters": [{
                "extras": "latest single",
                "description": "Original Poster, Most Recent Poster",
                "user_id": - 1
            }
            ]
        }
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment