{
  "opencollection": "1.0.0",
  "info": {
    "name": "Matrix Client-Server Account Rooms API",
    "version": "v3"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Rooms",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Leave a room",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{homeserver}/_matrix/client/v3/rooms/:roomId/leave",
            "params": [
              {
                "name": "roomId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Leave a room"
        },
        {
          "info": {
            "name": "Invite a user to a room",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{homeserver}/_matrix/client/v3/rooms/:roomId/invite",
            "params": [
              {
                "name": "roomId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Invite a user to a room"
        },
        {
          "info": {
            "name": "Send a message event to a room",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{homeserver}/_matrix/client/v3/rooms/:roomId/send/:eventType/:txnId",
            "params": [
              {
                "name": "roomId",
                "value": "",
                "type": "path"
              },
              {
                "name": "eventType",
                "value": "",
                "type": "path"
              },
              {
                "name": "txnId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a message event to a room"
        },
        {
          "info": {
            "name": "Get message history for a room",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{homeserver}/_matrix/client/v3/rooms/:roomId/messages",
            "params": [
              {
                "name": "roomId",
                "value": "",
                "type": "path"
              },
              {
                "name": "from",
                "value": "",
                "type": "query"
              },
              {
                "name": "to",
                "value": "",
                "type": "query"
              },
              {
                "name": "dir",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get message history for a room"
        }
      ]
    }
  ],
  "bundled": true
}