Can I query the API to get a list of Personal Access Tokens for the authenticated user?

I want to query the API to get a list of PATs for the authenticated user along with the time they were last updated. Is there an API I can use for this?

Hey @magnus-longva-bouvet

Unfortunately, there is no public API endpoint to retrieve this information. To that end, I highly encourage you to submit this as a feature request through our form, here:

These requests go directly to our Product Management team and while we can’t guarantee it’ll end up on our roadmap:

…I would recommend you use this in the future to see what’s progressing.

All that said, there is a method to acquire this information programmatically only on GitHub Enterprise instances, where you can directly query the MySQL database for the locally hosted appliance.

Thanks so much for your post, and be well! :bow: