Our documentation is changing, please click here to enjoy it!
This API route allows you to create a message on Accengage.
Operations
|
|
Parameter | Model |
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 | |
returnCode | Description |
| Message has been created |
1 | A database error occured |
2 | No createMessage |
3 | No or bad user |
4 | No or bad partner |
5 | No or bad message |
6 | Bad custom params |
9 | No or bad appId |
13 | Cannot have message & messages |
14 | Bad message language code |
15 | External ID already exists |
16 | CampaignId and partner mismatch |
23 | No or bad template for buttons |
24 | No or bad button id |
25 | Bad custom params for buttons |
Examples
Request | Body | Description |
---|---|---|
| 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 |