Access toke invalid UDAPI100050

Hi,
im error the below error.

{“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}]}

kindly help to resolve this access token issue.

below python code is used to generate access token which is given in the API documentation:

import requests

url = ‘https://api.upstox.com/v2/market-quote/ltp?instrument_key=NSE_EQ|INE848E01016
headers = {
‘Accept’: ‘application/json’,
‘Authorization’: ‘Bearer {your_access_token}’,
}
response = requests.get(url, headers=headers)

print(response.text)

Note: your_access_token = it is replaced with generated access token