import requests data_to_send = { 'device': 'YOUR_DEVICE_TOKEN', 'signals': {'YOUR_SIGNAL_TOKEN': {'history': [ {'value': 24.3515625, 'date': '2020-02-05T02:59:33.000+0000'}, {'value': 23.90625, 'date': '2020-02-05T02:44:33.000+0000'} ]} } } api_key = 'YOUR_API_KEY' oauth = 'YOUR_OAUTH' headers = { 'Authorization': f'Bearer {oauth}' } url = f'https://api.databoom.com/v1/signals/push' r = requests.request( 'post', url, headers=headers, json=data_to_send )