I’m able to make requests to all other account endpoints successfully but when I make a POST request to https://api.coinbase.com/v2/accounts/:account_id/addresses
I get a 401 response with the following error:
[ { id: 'invalid_token', message: 'The access token is invalid' } ]
When I make a GET request to https://api.coinbase.com/v2/accounts/:account_id/addresses
the response contains one receive address that I haven’t used before. Is it possible that I’m forced to use previously created receive addresses before being able to create new ones?
I’m also getting 401 responses with the same error when making POST requests to https://api.coinbase.com/v2/accounts/:account_id/transactions
.
I’ve completed the OAuth flow with the wallet:addresses:create
and wallet:transactions:send
permission scopes so not sure why I’m getting this error for both endpoints.
Any help would be appreciated. Thank you.