Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
    • Processing and adding a subscription
    • Add app push events
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Application push notifications
  • Add app push events
Documentation for version v74

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​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"events": 1,
"launch_id": "launch_id",
"provider": "android-firebase",
"subscription_id": "subscriptionid",
"uid": "uid"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<events>1</events>
<launch_id>launch_id</launch_id>
<provider>android-firebase</provider>
<subscription_id>subscriptionid</subscription_id>
<uid>uid</uid>
</xml>

Request example with uid in special format​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"events": 1,
"uid": "e|2_4S_4HFn8RDhhmA|w4HFn8RPDFUi_2_4S_S_3___6.2NvyN8Hb67wmzJshM_6BuFTt|ios-apns"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<events>1</events>
<uid>e|2_4S_4HFn8RDhhmA|w4HFn8RPDFUi_2_4S_S_3___6.2NvyN8Hb67wmzJshM_6BuFTt|ios-apns</uid>
</xml>

Response example​

  • JSON
  • XML
{
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
Last updated on Feb 27, 2024
Previous
Processing and adding a subscription
Next
Market
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Request example with uid in special format
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.