Webhook API call failing with error 415

I’m trying to register for a webhook callback. POST call via python requests library.

URL: https://api.rach.io/1/public/notification/webhook

Data: {‘device’: {‘id’: u’6b7ef9ad-0aad-4ac4-b785-f71a1e891221’}, ‘url’: ‘http://webhook.site/dd498940-b054-4dbc-b871-297103a3884f’, ‘externalId’: ‘bigus data’, ‘eventTypes’: [{‘id’: 5}]}

HTTPError: 415 Client Error: Unsupported Media Type for url: https://api.rach.io/1/public/notification/webhook

Any ideas?

Never mind. I was missing the “Content-Type: application/json” header.