Api level error while updating the option chain in excel

1st time API connect with excel and print data in sheets, but failed to update ,getting error-"Error in display ‘data’ " . time interval 15 sec

Response JSON: {‘status’: ‘error’, ‘errors’: [{‘errorCode’: ‘UDAPI100050’, ‘message’: ‘Invalid token used to access API’, ‘propertyPath’: None, ‘invalidValue’: None, ‘error_code’: ‘UDAPI100050’, ‘property_path’: None, ‘invalid_value’: None}]}
Request failed with status code: 401

Hi @san1200

The error message indicates that your access token is invalid. Could tou please regenerate your access token and try again.

Could you check which API you used for the first call? If you used the Historical Candle API, keep in mind it’s an open API and doesn’t require an access token. This means you’d still receive data even if the access token is invalid.

Please checkout our documentation for authentication.

Thank you.