I\'m trying to pass the cat output to curl:
cat
$ cat file | curl --data \'{\"title\":\"mytitle\",\"input\":\"-\"}\' http://api
Bu
Try
curl --data '{"title":"mytitle","input":"'$(cat file)'-"}' http://api