Flambe docs
API referenceNotifications

Create a notification

Writes a notification to the caller's own feed. Most notifications are produced by the platform — import completions and household invites — so this is mainly for a client that wants to surface something locally.

POST
/api/notifications

Writes a notification to the caller's own feed. Most notifications are produced by the platform — import completions and household invites — so this is mainly for a client that wants to surface something locally.

Authorization

bearerAuth
AuthorizationBearer <token>

A Clerk session JWT. Obtain one with a Clerk frontend SDK (session.getToken()) or, for server-to-server use, with a Clerk machine token. The token's sub claim is the Flambe user id that scopes every request.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/notifications" \  -H "Content-Type: application/json" \  -d '{    "title": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "title": "string",  "subtitle": "string",  "link": "string",  "type": "import_complete",  "read_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z"}