> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Visitor Navigation History

> Retrieves the pages your visitor navigated on your website.

## OpenAPI

````json POST /api/v1/livechat/page.visited
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Omnichannel"
  },
  "servers": [
    {
      "url": "https://apiexplorer.support.rocket.chat"
    }
  ],
  "tags": [
    {
      "name": "Omnichannel Users"
    },
    {
      "name": "Omnichannel Agents"
    },
    {
      "name": "Omnichannel Monitors"
    },
    {
      "name": "Omnichannel Visitors"
    },
    {
      "name": "Omnichannel Contacts"
    },
    {
      "name": "Omnichannel Rooms"
    },
    {
      "name": "Omnichannel Departments"
    },
    {
      "name": "Omnichannel Custom Fields"
    },
    {
      "name": "Omnichannel Business Hours"
    },
    {
      "name": "Omnichannel Priorities"
    },
    {
      "name": "Omnichannel Tags"
    },
    {
      "name": "Omnichannel Units"
    },
    {
      "name": "SLA Policies"
    },
    {
      "name": "Canned Responses"
    },
    {
      "name": "Omnichannel Transcript"
    },
    {
      "name": "Omnichannel Statistics"
    },
    {
      "name": "Omnichannel Agent Stats"
    },
    {
      "name": "Omnichannel Dashboards"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Omnichannel Inquiries"
    },
    {
      "name": "Omnichannel Webhooks"
    },
    {
      "name": "Livechat"
    },
    {
      "name": "Livechat Appearance"
    },
    {
      "name": "Livechat Triggers"
    },
    {
      "name": "Livechat Messages"
    },
    {
      "name": "Livechat Page Visited"
    }
  ],
  "paths": {
    "/api/v1/livechat/page.visited": {
      "post": {
        "tags": [
          "Livechat Page Visited"
        ],
        "summary": "Send Visitor Navigation History",
        "description": "Retrieves the pages your visitor navigated on your website.",
        "operationId": "post-api-v1-livechat-page.visited",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "pageInfo"
                ],
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "Enter the visitor token."
                  },
                  "rid": {
                    "type": "string",
                    "description": "Enter the room ID."
                  },
                  "pageInfo": {
                    "type": "object",
                    "required": [
                      "change",
                      "title",
                      "location"
                    ],
                    "description": "Enter the page information",
                    "properties": {
                      "change": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "location": {
                        "type": "object",
                        "required": [
                          "href"
                        ],
                        "properties": {
                          "href": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "token": "iNKE8a6k6cjbqWhWd",
                    "rid": "vp3D9H8ud6HYvRpvq",
                    "pageInfo": {
                      "change": "url",
                      "title": "",
                      "location": {
                        "href": "http://localhost:3000/packages/rocketchat_livechat/assets/demo.html#page-4"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "page": {
                      "type": "object",
                      "properties": {
                        "msg": {
                          "type": "string"
                        },
                        "navigation": {
                          "type": "object",
                          "properties": {
                            "page": {
                              "type": "object",
                              "properties": {
                                "change": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "location": {
                                  "type": "object",
                                  "properties": {
                                    "href": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "token": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "success": {
                      "type": "boolean"
                    }
                  }
                },
                "examples": {
                  "Success Example": {
                    "value": {
                      "page": {
                        "msg": " - file:///C:/Users/xyz/livechat/helloWorld.html",
                        "navigation": {
                          "page": {
                            "change": "url",
                            "title": "",
                            "location": {
                              "href": "file:///C:/Users/xyz/livechat/helloWorld.html"
                            }
                          },
                          "token": "38cc8c765bf77e943f6e4319c5891f6c40d8538ce83473c8987562ea1d762d04"
                        }
                      },
                      "success": "true"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "errorType": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "success": "false",
                      "error": "must have required property 'token' [invalid-params]",
                      "errorType": "invalid-params"
                    }
                  },
                  "Example 2": {
                    "value": {
                      "success": "false",
                      "error": "must have required property 'pageInfo' [invalid-params]",
                      "errorType": "invalid-params"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
````

