Send PUSH notification{accountSID}/push


To create a push notification message you need to make a POST request to /accounts/{accountSID}/push.

Input parameters

ParameterRequiredDescriptionDefault value

Request example

The following cURL example demonstrates sending a message.

curl –X POST{accountSID}/push \
-H ‘Content-Type: application/json’ \
-d ‘{
    “from”: “883140347007966”
    “to”: ”883140347007307”,
    “text”: “Test PUSH message”
  }’ \
-u {accountSID}:{authToken}

Response example

  "sid": "pus19289ca7-6300-3075-b4a6-c679a1d10c34",
  "status": "sent",
  "from": "883140347007966",
  "to": "883140347007307",
  "account_sid": "{accountSID}",
  "number_sid": "{numberSID}",
  "device_type": "android",
  "token": "token",
  "text": "Test PUSH message",
  "created": "Fri, 21 Jul 2017 13:14:21 +0000",
  "updated": "Fri, 21 Jul 2017 13:14:21 +0000"

Apifonica request parameters being sent to controller url

The following parameters are sent to controller URL if it is provided in the request.


Apifonica request example

  "account_sid": "{accountSID}",
  "from": "883140445566",
  "to": "883140112244",
  "text": "Apifonica API provides a really cool PUSH messaging service",
  "status": "sent",
  "push_sid": "{pushSID}"

Possible message statuses