The GitHub API is used by thousands of developers and applications to programmatically interact with GitHub data and services. Because so much of the GitHub.com functionality is exposed in the API, security has always been a high priority.
The API is exposed via the original v3 REST interface and the newer v4 GraphQL interface.
repo
-scoped tokenread:discussion
-scoped token