2Way allows you to receive push messages from mobile app directly on your own server through a HTTP GET / POST call.
You can setup the endpoint url and the call method for each app in the Receive Push 2Way section inside your panel:
You can choose between GET and POST method. Depending on this choice parameters will be sent as an HTTP Get Query or in the Raw Request Body.
Catapush will send following parameters:
An example of the parameters received is:
Incoming messages with attachment will always be sent as an HTTP POST with a multipart/form-data body, that includes the attachment’s binary content and meta information, together with the set of key-value pairs described above.
We provide an easy way to test the call request you will receive. Simply compile the following form to get a CURL Example: