{
  "opencollection": "1.0.0",
  "info": {
    "name": "Chatwork API v2 Contacts Messages API",
    "version": "2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-ChatWorkToken",
      "value": "{{X-ChatWorkToken}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List messages in a room",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "force",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List messages in a room"
        },
        {
          "info": {
            "name": "Post a new message in a room",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "body",
                  "value": ""
                },
                {
                  "name": "self_unread",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Post a new message in a room"
        },
        {
          "info": {
            "name": "Mark messages in a room as read",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages/read",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Mark messages in a room as read"
        },
        {
          "info": {
            "name": "Mark messages in a room as unread from a message",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages/unread",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Mark messages in a room as unread from a message"
        },
        {
          "info": {
            "name": "Retrieve a message",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages/:message_id",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a message"
        },
        {
          "info": {
            "name": "Update a message",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages/:message_id",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "body",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Update a message"
        },
        {
          "info": {
            "name": "Delete a message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.chatwork.com/v2/rooms/:room_id/messages/:message_id",
            "params": [
              {
                "name": "room_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a message"
        }
      ]
    }
  ],
  "bundled": true
}