Change configuration for not change token

I have a private repository and access of the by API is using the ?token=????? in the end of the file name. But this token change during the time (10 -15 days) and this is not so good for my purposes. I don’t find any way to do not change the token information. Please, this kind of configuration is possible?

You need to create a PAT or OAuth token (technically the PAT is an OAuth token, but one you can get without implementing an OAuth client) and send it in the Authorization header instead of in the URL, as described in the “Authentication” section of the API documentation. That will work as long as the token is valid.

1 Like