How to fork repo with the access token generated via an Github OAuth App?

We have an app that with repo and user permissions and we would like to fork a public repo to the user’s account. I have the access token but when I use it with the URL endpoint POST []( the API returns the following exception:

    "message": "Resource not accessible by integration",
    "documentation_url": ""

Is it possible to create or fork repos to the user account using OAuth apps? My understanding is that these APIs only work with personal access tokens but the documentation is not clear about it.

Hi @buremba,

Thank you for being here!  For forking public repositories, the token will need to have public_repo or repo scope. 

Could you ensure the scopes above are applied and let us know how you get on?