{
  "opencollection": "1.0.0",
  "info": {
    "name": "Chatwoot Account AgentBots Messages API",
    "version": "1.1.0"
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/conversations/:conversation_id/messages",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "conversation_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the conversation"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Fetch messages after the message with this ID. Returns up to 100 messages in ascending order."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Fetch messages before the message with this ID. Returns up to 20 messages in ascending order."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "List all messages of a conversation"
        },
        {
          "info": {
            "name": "Create New Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/conversations/:conversation_id/messages",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "conversation_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the conversation"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Create a new message in the conversation.\n\nUse `application/json` for text messages and `multipart/form-data` when the\nmessage includes file attachments.\n\n### Multipart attachment request\n\nSend files with the `attachments[]` form field. `curl -F` sets the\n`multipart/form-data` content type and boundary automatically.\n\n```bash\ncurl -X POST \"https://app.chatwoot.com/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages\" \\\n  -H \"api_access_token: <your-api-token>\" \\\n  -F \"content=He"
        },
        {
          "info": {
            "name": "Delete a message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "conversation_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the conversation"
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the message"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Delete a message and it's attachments from the conversation."
        }
      ]
    }
  ],
  "bundled": true
}