Could you provide the specific curl command you’re using for your request?
Based on the error message, it seems clear that the authentication code is invalid. It’s important to remember that the authentication code can only be used once, as indicated in the note section of the authentication guide here: Authentication | Upstox Developer API