Skip to main content
POST
Send notifications

See guide on setting this up easily Send Notifications to Mini App Users

Node.js SDK

🔗 SDK Method: publishFrameNotifications Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Body

application/json
notification
object
required
filters
object

Filters to apply to the target_fids set. All filters are additive, so only users matching all filters will be notified.

Example:
target_fids
integer[]

An array of target FIDs to whom the notifications should be sent. Each FID must be a positive integer. Pass an empty array to send notifications to all FIDs with notifications enabled for the mini app.

Maximum array length: 100
Required range: x >= 1
Example:

Response

Success

campaign_id
string<uuid>
required

The unique identifier for the notification campaign.

failure_count
integer<int32>
required

The number of notifications that failed to deliver.

not_attempted_count
integer<int32>
required

The number of notifications not attempted (e.g., disabled tokens, invalid tokens).

success_count
integer<int32>
required

The number of notifications successfully delivered.

retryable_fids
integer<int32>[]

List of FIDs that failed due to retryable errors (rate_limited, failed, http_error). Can be used to retry sending notifications to these users.

The unique identifier of a farcaster user or app (unsigned integer)

Required range: x >= 0