Read POSTed JSON data from the request body Is there a way with the request service to read POSTed JSON from php://input?
Yes, you can use getRestParams() like so: $input = craft()-&gt;request-&gt;getRestParams()

A bit confusing naming there, which is why it's changing to getBodyParams() in Yii 2.