Getting Response [401] from REST API

Anyone know why I always get HTTP 401 Unauthorized response if I add any parameter to the REST URL

for example
https://api.coinbase.com/api/v3/brokerage/accounts works fine but
https://api.coinbase.com/api/v3/brokerage/accounts?limit=100 returns 401 error. I got similar errors on every REST API that I am using.

It doesn’t seem to be a permission problem because the URL without parameter works. and it only fails when I add parameters after the ?

Do not include query params when you are generating signature for Advanced Trade API requests. For more information check documentation:

2 Likes

Thanks for the tip. it worked :slight_smile: