Chat / Platform API
Current version: v3
    Chat Platform API v3
    Chat Platform API
    Chat
    Platform API
    Home
    /
    Chat
    /
    Platform API

    List push notification content templates

    Retrieves a list of push notification content templates of an application.


    HTTP request

    GET https://api-{application_id}.sendbird.com/v3/applications/push/message_templates
    

    Response

    If successful, this action returns a list of push notification content templates in the response body.

    {
        "push_message_templates": [
            {
                "template_name": "default",
                "template": {   // For each message type.
                    "MESG": "{sender_name}: {message}",
                    "FILE": "{filename}",
                    "ADMM": "{message}"
                }
            },
            {
                "template_name": "alternative",
                "template": {   // For each message type.
                    "MESG": "New message arrived!",
                    "FILE": "New file delivered!",
                    "ADMM": "New announcement!"
                }
            }
        ]
    }
    

    List of response properties

    Property nameTypeDescription

    push_message_templates[]

    array of strings

    A list of push notification content templates.

    In the case of an error, an error object is returned. A detailed list of error codes is available here.