Skip to content

REST API for discussions appears to be missing #44098

Closed

Description

@jsoref

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/repos/repos?apiVersion=2026-03-10#get-a-repository

What part(s) of the article would you like to see updated?

Add REST API documentation for discussions

https://api.github.com/repos/community/community has:

  "has_discussions": true,

And you can visit something like:

https://api.github.com/repos/community/community/discussions/176086/comments

which yields some json like:

[
  {
    "id": 14683292,
    "node_id": "DC_kwDOEfmk4M4A4Ayc",
    "html_url": "https://github.com/orgs/community/discussions/176086#discussioncomment-14683292",
    "parent_id": null,
    "child_comment_count": 0,
    "repository_url": "community/community",
    "discussion_id": 8996253,
    "author_association": "NONE",
    "user": {
      "login": "armydy",
      "id": 238113827,
      "node_id": "U_kgDODjFUIw",
      "avatar_url": "https://avatars.githubusercontent.com/u/238113827?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/armydy",
      "html_url": "https://github.com/armydy",
      "followers_url": "https://api.github.com/users/armydy/followers",
      "following_url": "https://api.github.com/users/armydy/following{/other_user}",
      "gists_url": "https://api.github.com/users/armydy/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/armydy/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/armydy/subscriptions",
      "organizations_url": "https://api.github.com/users/armydy/orgs",
      "repos_url": "https://api.github.com/users/armydy/repos",
      "events_url": "https://api.github.com/users/armydy/events{/privacy}",
      "received_events_url": "https://api.github.com/users/armydy/received_events",
      "type": "User",
      "user_view_type": "public",
      "site_admin": false
    },
    "created_at": "2025-10-15T06:09:38Z",
    "updated_at": "2025-10-15T06:09:39Z",
    "body": "-我参加Hacktoberfest!",
    "reactions": {
      "url": "https://api.github.com/repos/community/community/discussions/comments/14683292/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    }
  },
...

If you visit https://api.github.com/repos/community/community/discussions/comments/14683292/reactions, you get:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest",
  "status": "404"
}

https://docs.github.com/en/search?search-overlay-input=discussions&query=discussions&toplevel=REST+API does not yield anything remotely useful.

Additional information

I'm trying to figure out what happened to a comment. I received a notification for it, but when I followed the link from the notification, I get the discussion minus the comment.

I can't tell if @minanagehsalalma wrote it and then deleted it, or something else... the notification url was: https://github.com/orgs/community/discussions/176086#discussioncomment-16816602

Activity

  1. added
    content
    on May 5, 2026
  2. added
    triage
    on May 5, 2026
  3. Sharra-writes commented on May 11, 2026

    @Sharra-writes
    Contributor

    @jsoref I think if this weren't REST it would be a support question, but since it is REST we may as well let the team in charge figure it out. If you want an answer on a timeline, though, I would definitely talk to support.

  4. added
    rest
    and removed
    triage
    on May 11, 2026
  5. jsoref commented on May 11, 2026

    @jsoref
    ContributorAuthor

    I don't actually care about the specific instance, at this point I'm only interested in the documentation.

  6. added
    fix-internally
    on May 11, 2026
  7. docs-bot commented on May 11, 2026

    @docs-bot
    Collaborator

    Thank you for opening this issue! Updates to this documentation must be made internally. I have copied your issue to an internal issue, so I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentfix-internallyrest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions