Neynar webhooks are a way to receive real-time updates about events on the Farcaster protocol. You can use webhooks to build integrations that respond to events on the protocol, such as when a user creates a cast or when a user updates their profile. This guide will show you how to set up a webhook in the Neynar developer portal and how to integrate it into your application. To create a new webhook without writing any code, head to the neynar dashboard and go to the webhooks tab. Click on the new webhook and enter the details as such:Documentation Index
Fetch the complete documentation index at: https://docs.neynar.com/llms.txt
Use this file to discover all available pages before exploring further.
target_url. To test it out, we are using a service like ngrok to create a public URL that will forward requests to your local server. However, we recommend using your own domain to avoid interruptions.
Let’s create a simple server that logs out the event. We will be using Bun JavaScript.
bun serve index.ts, and run ngrok with ngrok http 3000. Copy the ngrok URL and paste it into the “Target URL” field in the Neynar developer portal. The webhook will call the target URL every time the selected event occurs. Here, I’ve chosen all the casts created with farcasterframesbot present in the text.
Now the server will log out the event when it is fired. It will look something like this: