Passo Developers
Api

Set a notification preference

PATCH
/notification-preferences

Turns one notification type on or off for you. Body: notificationType (e.g. video_ready_to_review), enabled (true to receive the email, false to stop) and optional channel (email only today). Preferences are per-user and apply across every workspace you belong to. Turning a type off drops you from that notification's recipients; turning it on (the default) adds you back. Returns your full updated preference list.

Authorization

oauthJwt
AuthorizationBearer <token>

A Supabase-issued OAuth user access token. On collection endpoints, pair with a Passo-Workspace header to pick a workspace.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/notification-preferences" \  -H "Content-Type: application/json" \  -d '{    "notificationType": "video_ready_to_review",    "enabled": true  }'
{  "preferences": [    {      "type": "video_ready_to_review",      "audience": "brand",      "channel": "email",      "label": "string",      "description": "string",      "enabled": true    }  ],  "total": -9007199254740991}