Plus user, but expired API is not available to me ?
Hi @Nitesh_42315103
Expired Instruments APIs are available to all users.
Please ensure that you are using a valid access token. Once verified, you should be able to access the expired contracts APIs without any issues.
Thanks!
Exception when calling expired instrument api: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 18 Dec 2025 13:10:03 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'CF-RAY': '9afee5eebff27937-AMD', 'reqid': 'a82d2d05-37ca-4a59-956e-bb44675bf438', 'x-content-type-options': 'nosniff', 'x-xss-protection': '0', 'pragma': 'no-cache', 'strict-transport-security': 'max-age=0; includeSubDomains', 'x-frame-options': 'DENY', 'Cache-Control': 'must-revalidate,no-cache,no-store', 'vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'message': 'request failed', 'cf-cache-status': 'DYNAMIC', 'Set-Cookie': '__cf_bm=xLoUT.BOQb.pgToMF83cVgZzBLX1CgaEMop42Gm9BbM-1766063403-1.0.1.1-nuXUopy1KuFx0yheDQ5oa3rHjgPlCuo5LV_n8V466QwdxsbYafFRJNG3yQPH3b3m; path=/; expires=Thu, 18-Dec-25 13:40:03 GMT; domain=.upstox.com; HttpOnly; Secure; SameSite=None, _cfuvid=IvhFH1V7fvldHWraFqdXRu2toYSiyA5itY9J3Rgb3Q0-1766063403397-0.0.1.1-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None', 'Server': 'cloudflare', 'alt-svc': 'h3=":443"; ma=86400'})
HTTP response body: b'{"status":"error","errors":[{"errorCode":"UDAPI100050","message":"Invalid token used to access API","propertyPath":null,"invalidValue":null,"error_code":"UDAPI100050","property_path":null,"invalid_value":null}]}'
same token giving Nifty Index data correctly
keep it more simple, or update the python sdk examples to be more elaborative
Improper reply. Steps to generate a “valid access token”?

