OAuth2 App authentication for REST API

Hi,
We are creating REST API to query GitHub repo (with No UI). Can the REST api authenticate to GitHub using OAuth2 App to call GitHub’s API or is the only option to authenticate is Personal Access Token?

Thanks

Hey there @dag101!

Welcome to the community and thank you for the question!

You most definitely do not want to use a PAT for your application. We cover this in our documentation, here:

Please let us know if you have any other questions or concerns! :bow: