# Count a view of a shared page (no auth)

The shared page sends this after it has been on screen a few seconds, so
a crawler, a link preview or a tab nobody looked at is not counted.
Reading the page (`GET /v1/public/pages/{token}`) changes nothing.
Opening again within 10 minutes is the same view, so a repeat is not an
error: the answer is 204 either way. Nothing that identifies the reader
is kept, only a one-way hash. The count shows as `publicViews` on the
page's views (`GET /v1/pages/{id}/views`).


Canonical: https://easerix.com/docs/developers/api/notes/sharing/recordPublicPageView

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="notes" operations={[{"path":"/v1/public/pages/{token}/views","method":"post"}]} />
    </>
  );
}
