Count the caller's view of a page
Counts one view of the page by the caller (EAS-738). The page sends this when it opens and does not wait for the answer. Opening the same page again within 10 minutes is the same view, so a repeat is not an error: the answer is 204 either way. A trashed page is not counted. The page sends this only after it has been on screen a few seconds. Views of a page through a public link are reported to `/v1/public/pages/{token}/views` instead.
View as MarkdownAuthorization
bearer In: header
Path Parameters
uuidResponse Body
application/json
curl -X POST "https://example.com/v1/pages/497f6eca-6276-4993-bfeb-53cbbbba6f08/views"How many times a page was viewed in the last 30 days
Total views and the number of different people, from signed-in viewers, plus views through public share links counted apart as `publicViews`. Counts only by default. The list of who viewed (`viewers`) is included only when the workspace owner or an admin has turned `showViewerNames` on in the Notes settings; it then shows to everyone who can open the page. `canManage` says whether the caller may change that setting.
Which workspace an attachment's page is in
The Notes app's image route (`/notes/attachments/<id>`) holds only the session's default-workspace token, so an image on a page in another workspace would not be found (EAS-271). With this it finds that workspace and exchanges the token for one there. The same rules and answers as locatePage, applied to the attachment's page: it answers only when the caller could read that page in its own workspace. Every other case, including an attachment on no page, gets the same 404, byte for byte. Shares locatePage's rate limits.