List discussions
List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/[email protected]/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.
/orgs/{org}/teams/{team_slug}/discussions- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
- team_slug stringrequired
team_slug parameter
Query Parameters
- direction stringoptional
One of `asc` (ascending) or `desc` (descending).
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
- pinned stringoptional
Pinned discussions only filter
Responses
Response
Headers
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last" items Team Discussion objectA team discussion is a persistent record of a free-form conversation within a team.
A team discussion is a persistent record of a free-form conversation within a team.
author Simple User objectrequirednullable Simple User
Simple User
Example: https://github.com/images/error/octocat_happy.gif
Example: https://api.github.com/users/octocat/events{/privacy}
Example: https://api.github.com/users/octocat/followers
Example: https://api.github.com/users/octocat/following{/other_user}
Example: https://api.github.com/users/octocat/gists{/gist_id}
Example: 41d064eb2195891e12d0413f63227ea7
Example: https://github.com/octocat
Example: 1
Example: octocat
Example: MDQ6VXNlcjE=
Example: https://api.github.com/users/octocat/orgs
Example: https://api.github.com/users/octocat/received_events
Example: https://api.github.com/users/octocat/repos
Example: "2020-07-09T00:17:55Z"
Example: https://api.github.com/users/octocat/starred{/owner}{/repo}
Example: https://api.github.com/users/octocat/subscriptions
Example: User
Example: https://api.github.com/users/octocat
The main text of the discussion.
Example: Please suggest improvements to our workflow in comments.
Example: <p>Hi! This is an area for us to collaborate as a team</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example: 0307116bbf7ced493b8d8a346c650b71
Example: 0
Example: https://api.github.com/organizations/1/team/2343027/discussions/1/comments
Example: 2018-01-25T18:56:31Z
Example: https://github.com/orgs/github/teams/justice-league/discussions/1
Example: MDE0OlRlYW1EaXNjdXNzaW9uMQ==
The unique sequence number of a team discussion.
Example: 42
Whether or not this discussion should be pinned for easy retrieval.
Example: true
Whether or not this discussion should be restricted to team members and organization administrators.
Example: true
reactions Reaction Rollup objectoptional
Example: https://api.github.com/organizations/1/team/2343027
The title of the discussion.
Example: How can we improve our workflow?
Example: 2018-01-25T18:56:31Z
Example: https://api.github.com/organizations/1/team/2343027/discussions/1