provider notebooks POST /api/projects/{project_id}/notebooks/{short_id}/collab/presence/
@utdk/posthog /api/projects/{project_id}/notebooks/{short_id}/collab/presence/
notebooks_collab_presence_create
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
short_id path required
string

Try it

Authentication
Configure credentials for PostHog API
notebooksCollabPresenceCreate
POST/api/projects/{project_id}/notebooks/{short_id}/collab/presence/
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Input

required

Unique identifier for the client session, used to skip self-echo on the update stream.

required

The notebook version the cursor position is relative to.

required

The caller's caret position, broadcast to other clients on this notebook's collab stream.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.notebooksCollabPresenceCreate()