Preview the new Team Discussions REST API

Today, we released the REST API that allows you to read and manage team discussions programmatically, and we'll be announcing GraphQL support soon. You can access the REST API during the preview period by providing a custom media type in the Accept header:

application/vnd.github.echo-preview+json

During the preview period, we may change aspects of the API based on developer feedback. If we do, we will not provide any advance notice of the changes, but we will announce them here on the developer blog.

We are really excited to see what integrations you develop around this API! If you have any questions or feedback, please let us know.

New REST API endpoints

List discussions

Get a single discussion

Create a discussion

Edit a discussion

Delete a discussion

List comments

Get a single comment

Create a comment

Edit a comment

Delete a comment

Updates to the Teams API documentation

We've also updated the location of our Teams REST API documentation. You'll now find the Teams API at the top level in the v3 documentation sidebar (no longer nested under Organizations). The team members, team discussions, and team discussion comments APIs are in the Teams section.