401 while Getting installation access token

I am using following url to get the app installtion access token, sometime I see 401 with same private key while other times I get the access token, below url I use

https://api.github.com/app/installations/20210074/access_tokens

Can you suggest what could be the reason?

Thanks,
Yougal BISHT