Sign in
Home  >>  Documentation  >>  REST API

Offline messages

Posted on Mar 04, 2016 16:58

With this API call you can get your Offline messages.

 

JSON Format

 

Each Offline message is represented as JSON object with the following properties:

Name Type Description
 Id  number  The id of the message
 Email  string  The email of the visitor
 Message  string  The message
 Date  string  The date of the message
 IsRead  boolean  Shows is the message has been read
 URI  string  The page from which the message has been sent
 Phone  string  The phone of the visitor

 

 

Get All Offline messages

 

GET /api/offlinemessages?page=1

Get all offline messages for your account. You have to provide the ?page= parameter and specify the number of the page.

 

Example response

{

    "Data": [

        {

            "Id": 158203,

            "Email": "kate@myemail.com",

            "Message": "I have a question about your product.",

            "Date": "2015-06-09T13:00:15.62Z",

            "IsRead": true,

            "URI": "http://mywebsite.com/products/123",

            "Phone": "555-555-5555"

        },

        {

            "Id": 158204,

            "Email": "carlos@myemail.com",

            "Message": "Do you have Free plan?",

            "Date": "2015-06-09T13:01:13.74Z",

            "IsRead": false,

            "URI": "http://mywebsite.com",

            "Phone": null

        },

................................................

    ],

    "Paging": {

        "PageNo": 1,

        "PageSize": 20,

        "PageCount": 2,

        "TotalRecordCount": 39

    }

}

 

 

Get Offline message by Id

 

GET /api/offlinemessages/{message_id}

Get an offline message from your account by specified id.

 

Example response

{

    "Id": 120,

    "Email": "kate@myemail.com",

    "Message": "I need more information about your product.",

    "Date": "2015-06-09T13:00:15.62Z",

    "IsRead": true,

    "URI": "http://mywebsite.com",

    "Phone": null

}