{
  "opencollection": "1.0.0",
  "info": {
    "name": "Gleap AI content Messages API",
    "version": "14.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Find messages by query",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.gleap.io/v3/messages",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "paginated",
                "value": "",
                "type": "query"
              },
              {
                "name": "before",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "50",
                "type": "query",
                "description": "- Maximum number of messages to return (default: no limit, max: 10000)"
              },
              {
                "name": "showHistory",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get messages by query with support for filtering, sorting, and pagination.\n\n**Filtering:**\n- Filter by ticket: `ticket=507f1f77bcf86cd799439011`\n- Filter by type: `type=COMMENT` or `type=COMMENT,NOTE`\n- Filter by bot messages: `bot=true` or `bot=false`\n- Filter by date range: `createdAt>=2024-01-01&createdAt<=2024-12-31`\n\n**Sorting:**\n- Sort by creation date: `sort=-createdAt` (newest first) or `sort=createdAt` (oldest first)\n- Sort by updated date: `sort=-updatedAt`\n\n**Pagination:**\n- Limit res"
        },
        {
          "info": {
            "name": "Create a new message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/messages",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a new message"
        },
        {
          "info": {
            "name": "Search messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.gleap.io/v3/messages/search",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "searchTerm",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Search messages"
        },
        {
          "info": {
            "name": "Update a message",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.gleap.io/v3/messages/:messageId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "messageId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a message"
        },
        {
          "info": {
            "name": "Delete a comment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/messages/:messageId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "messageId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a message"
        },
        {
          "info": {
            "name": "FAQ suggestion",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/messages/:messageId/faq",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "messageId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Suggest a FAQ from a message"
        }
      ]
    }
  ],
  "bundled": true
}