Sending messages manually via the API

To create your API push notification, go to the dashboard to set up the template for your manual push notification. Be sure to set Delivery to "Manual."  It should appear similar to this: 

For the RESTful API, you'll need to include the following parameters.

action=sendMessage
appId=yourAppIdHere
clientKey=yourClientKeyHere
messageId=MessageId (this can be found at the end of the URL of the message page - see screenshot below)
values={{"messageText"}}

Then, you would create your API call:

https://www.leanplum.com/api?appId=yourAppIdHere&clientKey=yourClientKeyHere&action=sendMessage&apiVersion=1.0.6&messageId=messageId&values={{"messageText":Hello World!"}}

Was this article helpful?
Have more questions? Submit a request