import requests url = "https://tmtest.trackingio.com/receive/query/touchpoint" headers = { 'Content-Type': 'application/json' } appkey = '' data = { "appkey": appkey, "device_id": "23213132132", "device_id_type": "oaid", "touchpoint_type": "click", "attribution_type": "ua" } response = requests.request("POST", url, headers=headers, data=data) print(response.text)