Skip to main content

Create Application to Send Push Notifications

This request adds an application for sending out push notifications.

post /push/applications

Sample

A sample POST request to create an application:

curl -X POST \
'https://api.carrierx.com/core/v2/push/applications' \
-H 'Content-Type: application/json' \
--data-binary '{"google_credentials": "L2hvbWUvdXNlci9Eb3dubG9hZHMvc2VydmljZS1hY2NvdW50LWZpbGUuanNvbgo=", "apns_id":"", "apns_key_id":"", "apns_p8":"", "apns_p12":"", "apns_p12_password":"", "apns_team_id":""}' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a serialized copy of the Application object:

{
"apns_id": null,
"apns_key_id": null,
"apns_p8": null,
"apns_p12": null,
"apns_p12_expiration": null,
"apns_p12_password": null,
"apns_team_id": null,
"apns_topic": null,
"application_sid": "8b03edc1-5378-4c4e-a480-9015206089dc",
"google_credentials": "L2hvbWUvdXNlci9Eb3dubG9hZHMvc2VydmljZS1hY2NvdW50LWZpbGUuanNvbgo=",
"name": "N/A",
"partner_sid": "e00430c3-a7d0-4666-ab5c-f7202448382f"
}

Required Scopes

To create an Application object, the partner must have one of the following scopes enabled:

  • push.manage
  • push.create

Body Arguments

JSON representation of the fields and values of the Application object to be created.

No fields are required to create an application, an empty object can be passed.

Refer to this table to view all fields that appear in the Application object.