Price alert api

what should be the header and data format for

I am getting below error
{“message”:“'access_token” not a valid key=value pair (missing equal-sign) in Authorization header: 'Bearer access_token."}, In the error message it would print the actual access code.

url = “

# Upstox API credentials
API_KEY = "api_key"
ACCESS_TOKEN = "api_key"

headers = {
    "x-api-key": API_KEY,
    "Authorization": "Bearer " + ACCESS_TOKEN,
    "Content-Type": "application/json"
# Body of the request
data = {
    "symbol": symbol,
    "price": price,
    "type": "Above"

# Make HTTP POST request to set the alert
response =, headers=headers, json=data)

The API mentioned above is not available in the Upstox API. For a list of all supported APIs, please consult the Upstox Open API documentation.

Please let us know if you are experiencing issues with any API integrations. We are here to assist you in resolving them.