v1

latestOpenAPI 3.0.42026-07-26159287356.1 KB
Webhook

Create a webhook

Create a webhook

post/v2/farcaster/webhook/

Request body

namestring required
urlstring required

Example request

{
  "subscription": {
    "cast.created": {
      "embeds": "\b(farcaster|neynar)\b",
      "text": "(?i)\\$degen"
    },
    "cast.deleted": {
      "embeds": "\b(farcaster|neynar)\b",
      "text": "(?i)\\$degen"
    },
    "reaction.created": {
      "target_cast_hashes": [
        "0x71d5225f77e0164388b1d4c120825f3a2c1f131c"
      ]
    },
    "reaction.deleted": {
      "target_cast_hashes": [
        "0x71d5225f77e0164388b1d4c120825f3a2c1f131c"
      ]
    }
  }
}

Response

Success

messagestring
successboolean

Example response

{
  "webhook": {
    "subscription": {
      "filters": {
        "cast.created": {
          "embeds": "\b(farcaster|neynar)\b",
          "text": "(?i)\\$degen"
        },
        "cast.deleted": {
          "embeds": "\b(farcaster|neynar)\b",
          "text": "(?i)\\$degen"
        },
        "reaction.created": {
          "target_cast_hashes": [
            "0x71d5225f77e0164388b1d4c120825f3a2c1f131c"
          ]
        },
        "reaction.deleted": {
          "target_cast_hashes": [
            "0x71d5225f77e0164388b1d4c120825f3a2c1f131c"
          ]
        }
      }
    }
  }
}