Now you get a 401 "Not authorized." error, which just means you have to renew the token. See other answers here to use cURL with OAuth2, like How to perform OAuth 2.0 using the Curl CLI?