Webhook signatures are strings used to verify the validity of an incoming webhook event. This signature is passed as header values in the format: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.
X-Neynar-Signature.
The validation is an important process to prevent exploitation and malicious webhook requests.
Verification Process
Create a new signature string
Use an HMAC library of your choice to create a sha512 digest with the following:
- Shared secret - Find this on the Developer Portal
- Encoding format - This is always
hex - Request payload - The request body object of the webhook POST
Example
Here’s an example of a Next.js API handler validating a signature from a request.Appendix
- Caveats and additional details can be found here: Verification of simple signatures