/ Platform API
Platform API
    Chat Platform API v3
    Chat Platform API
    Chat Platform API
    Version 3

    List push notification content templates

    Copy link

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


    HTTP request

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

    Response

    Copy link

    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

    Copy link
    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.