Expired Gold Future using API

Tried my best for to get GOLD future historical data. For example I want to get GOLDM future data for expired contracts. Can someone suggest what to pass in this api : curl --location ‘https://api.upstox.com/v2/expired-instruments/future/contract?instrument_key=NSE_INDEX|Nifty%2050&expiry_date=2025-12-30’ --header ‘Content-Type: application/json’ --header ‘Accept: application/json’ --header ‘Authorization: Bearer XYZ’ while for live contracts it works fine as : curl --location ‘https://api.upstox.com/v3/historical-candle/MCX_FO|472780/minutes/1/2026-01-23/2026-01-23’ --header ‘Content-Type: application/json’ --header ‘Accept: application/json’ --header ‘Authorization: Bearer XYZ’