Skip to content

Get messages

aris alexis edited this page Feb 25, 2016 · 1 revision

Fetches messages from a chat with pagination

  • URL

    /chats/:chat_id/messages

  • Method:

    GET

  • URL Params

    Optional:

    offset=[numeric]
    limit=[numeric]

  • Success Response:

    • Code: 200
      Content:
    [{
      sender,
      tstamp,
      body
    }]  
  • Error Response:

    • Code: 401 UNAUTHORIZED
    • Code: 404 NOT FOUND
Clone this wiki locally