Getting an error " Valid API key required"
Not sure what to do
payload= { "source": "API",
"name": "Angry User",
"email": "test@hotmail.com",
"subject": "Testing API",
"message": "testing yo",
}
headers = {'X-API-Key': 'One I made in the UI'}
response = requests.post("http://localhost:8012/osticket/osTicket/api/http.php/tickets.json", data=payload, headers=headers)
print(response.content)