Sending Dynamic Messages – Push

Sending Personalised Messages

If you wish to send different message contents (personalised messages) to different numbers through a single API call like sending bill alerts , customised reminders , absentees list, personalised greetings etc then please follow the below method;

Leave “globalmessage” variable as blank

Pass each message to be send in the “message” variable against each number

We highly recommend to use this method rather than calling the single API 10 times and which increase your phone / docker load and slow down the message processing speed.

Sending Dynamic Message

POST https://pickyassist.com/app/api/v2/push

This API allows you to send Dynamic Messages

Request Body

{
    "status": 100,
    "push_id": "7478630",
    "message": "Success",
    "data": [
        {
            "msg_id": "9844217",
            "number": "934343442290",
            "credit": "0.005"
        },
        {
            "msg_id": "9844218",
            "number": "35435304220",
            "credit": "0.005"
        }
    ]
}

Sample Request Body JSON

{
  "token": "PICKY_API_TOKEN",
  "priority ": "0",
  "application": "1",
  "globalmessage": "",
  "globalmedia": "MEDIA FILE UNIQUE URL",
  "data": [
    {
      "number": "NUMBER 1",
      "message": "MESSAGE FOR NUMBER 1"
    },
    {
      "number": "NUMBER 2",
      "message": "MESSAGE FOR NUMBER 2" 
    },
    {
      "number": "NUMBER 3",
      "message": "MESSAGE FOR NUMBER 3"
    },
    {
      "number": "NUMBER 4",
      "message": "MESSAGE FOR NUMBER 4"
    },
    {
      "number": "NUMBER 5",
      "message": "MESSAGE FOR NUMBER 5"
    }
  ]
}

Sample Response

{
    "status": 100,
    "push_id": "7478630",
    "message": "Success",
    "data": [
        {
            "msg_id": "9844217",
            "number": "934343442290",
            "credit": "0.005"
        },
        {
            "msg_id": "9844218",
            "number": "35435304220",
            "credit": "0.005"
        }
    ]
}

Please note “100 -> Sucess” response doesn’t means the message has been successfully send to the user, it means your message has been accepted by our servers and pushed to your phone / docker / app for processing.

Last updated