Added plaintext random to API for curl
Send anything but json back as plain text