Skip to main content

Add app push events

Description

Adds application push events.

Request URL

Method: POST

https://example.com/api/v1.1/pushes/post_events

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
eventsint1 - delivered
2 - opened
3 - delivered and opened
YesEvents
launch_idint1YesIs sent alongside push from Altcraft to Data payload.
providerstring"android-firebase"YesPush provider
subscription_idstring"subscriptionid"Yessubscription ID
uidstring"uid"YesIs sent alongside push from Altcraft to Data payload.

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"events": 1,
"launch_id": "launch_id",
"provider": "android-firebase",
"subscription_id": "subscriptionid",
"uid": "uid"
}

Request example with uid in special format

{
"token": "abcdefghijklmnqrstuvwxyz",
"events": 1,
"uid": "e|2_4S_4HFn8RDhhmA|w4HFn8RPDFUi_2_4S_S_3___6.2NvyN8Hb67wmzJshM_6BuFTt|ios-apns"
}

Response example

{
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text