import requests
headers ={"authtoken":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}
input_data = '''{
"notification": {
"subject": "Re: [Request ID :##1##] : Unable to fetch mails",
"description": "Description : I am unable to fetch mails from the mail server",
"to": [
{
}
],
"cc": [],
"type": "reply"
}
}'''
data = {'input_data': input_data}
response = requests.post(url,headers=headers,data=data,verify=False)
I don't know to add attachments in json