---
title: "Authorise a Pusher presence subscription to a note's realtime channel"
method: POST
path: "/projects/{project_id}/notes/{note_id}/realtime-auth"
tags: ["project-notes"]
---

# Authorise a Pusher presence subscription to a note's realtime channel

`POST /projects/{project_id}/notes/{note_id}/realtime-auth`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/projects/{project_id}/notes/{note_id}/realtime-auth`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, uuid, required
- `note_id` string, uuid, required

## Request body

- RealtimeAuthDto
  - `socket_id` string, required: The Pusher connection's socket id, supplied by the client SDK.

## Response `200`

- RealtimeAuthResponseDto
  - `auth` string, required: Signed Pusher auth token for the requested channel.
  - `channel_data` string: JSON-encoded Pusher presence metadata.

---

[API](https://skmtc.dev/focusbear/apis/focusbear-api.md) - [All operations](https://skmtc.dev/focusbear/apis/focusbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/focusbear/apis/focusbear-api/revisions/3a83a3b9a811?raw)
