Which url is correct? https://api.binance.com/sapi/v3/capital/withdraw/history

400Bad Request
{
“code”: -2014,
“msg”: “API-key format invalid.”
}

Hey,
The correct endpoint is https://api.binance.com/sapi/v1/capital/withdraw/history : Binance API Documentation

If you continue encountering the same error, please consider the following potential explanations and troubleshooting steps:

  • The API key you are using might be incorrect. You can try generating a new API key to resolve this issue.
  • The API key is not being included in the request header. Ensure that you are properly sending the API key in the request header when making API calls.