Hi @mtajmouati, there is no field/key called metadata in API response for sql query history. 
https://docs.databricks.com/api/azure/workspace/queryhistory/list