Send a request to the URL https://www.example.com/api/random with a header of 'Content-Type: application/json' and a body of '{"key":"$(shuf -i1000-9999 -n1)"}' using the curl command.
curl -H 'Content-Type: application/json' -d '{"key":"$(shuf -i1000-9999 -n1)"}' https://www.example.com/api/random