I am attempting to create a test ticket through API but I am getting the error below:
curl -X POST -H "X-API-Key: 1xxxxxxxxxxxxxxxxxxF" -H "Content-Type: application/json" -d '{"source": "API", "name": "John Doe", "email": "email@domain.com", "subject": "Test Ticket", "message": "This is a test message."}' https://tickets.domain.com/api/tickets.json
curl: (3) URL rejected: Bad hostname
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Bad hostname
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Malformed input to a URL function
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) unmatched close brace/bracket in URL position 24:
This is a test message.}'
^
The key is enabled and matches my Public IP on my host where I am making the API calls
Admin Panel >Manage >API.
This is the contents of the "api" directory within my install path in IIS
![
](https://)
Here is my environment details:
IIS 10
Php 8.1.27
![
](https://)