Our documentation is changing, please click here to enjoy it!

Skip to end of metadata
Go to start of metadata

This API route allows you to create a message on Accengage.

Operations

POST

/createMessage.php

ParameterModel
body
Data

 


 

 

Messages

 


 

 

Message

 


 

 

Popup

 


 

 

CustomParam

 


 

 

InteractiveButtons

 

The value of the template can be found in the category on the interface or here for the Accengage's templates.

 

 

 

Buttons
  

(1) Only available for Android push messages

(2) Only available for iOS push messages

(3) The name of the image must be provided by the uploadImage API

Response
body
Return code
returnCodeDescription

0

Message has been created

1A database error occured
2No createMessage
3No or bad user
4No or bad partner
5No or bad message
6Bad custom params
9No or bad appId
13Cannot have message & messages
14Bad message language code
15External ID already exists
16CampaignId and partner mismatch
23No or bad template for buttons
24No or bad button id
25Bad custom params for buttons

Examples

RequestBodyDescription

POST /createMessage.php

 

Create a message "Api test message" with a custom sound "test.wav" and badge "1", with a richpush in a webview and custom params, for campaign 123
POST /createMessage.php
Create several messages for different language IDs with the same externalId "externalName"
POST /createMessage.php
Create one message with interactive buttons

  • No labels