Direct Message #
You can send messages to one or more players directly using Console API’s /v1/console/message-direct
endpoint.
Using the endpoint you will need to provide following information:
- templateId: The identifier of the template used to render the message content. You can find this information on the top of the page when you open a template from Templates page
- identityIds: List of recipient identity IDs.
- integrations: List of integrations to use for sending the message. Leaving this empty will ensure the message is only delivered to identity inbox.
- persist: Boolean to indicate if the message should be stored in the recipient’s inbox.
An example of the request body is given below:
{
"templateId": "b98c0b60-61b8-4a35-b7e9-f87e5733fe79",
"identityIds": [
"00000000-0000-0000-0000-000000000001",
"00000000-0000-0000-0000-000000000002",
"00000000-0000-0000-0000-000000000003"
],
"integrations": [
"FCM",
"APNS"
],
"persist": true
}