Neynar · Schema

CastAndConversations

Neynar Farcaster API schema for CastAndConversations

FarcasterSocialDecentralizedWeb3BlockchainSocial GraphCastsChannelsFeedsReactionsNotificationsWebhooksOnchain

Properties

Name Type Description
app object
author object
author_channel_context object
channel object
direct_replies array note: This is recursive. It contains the direct replies to the cast and their direct replies up to n reply_depth.
embeds array
hash string
mentioned_channels array
mentioned_channels_ranges array Positions within the text (inclusive start, exclusive end) where each mention occurs. Each index within this list corresponds to the same-numbered index in the mentioned_channels list.
mentioned_profiles array
mentioned_profiles_ranges array Positions within the text (inclusive start, exclusive end) where each mention occurs. Each index within this list corresponds to the same-numbered index in the mentioned_profiles list.
object string
parent_author object
parent_hash string
parent_url string
reactions object
replies object
root_parent_url string
text string
thread_hash string
timestamp string
type object
viewer_context object
View JSON Schema on GitHub

JSON Schema

castandconversations.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://neynar.com/schemas/CastAndConversations",
  "title": "CastAndConversations",
  "description": "Neynar Farcaster API schema for CastAndConversations",
  "properties": {
    "app": {
      "allOf": [
        {
          "$ref": "#/components/schemas/UserDehydrated"
        }
      ],
      "nullable": true
    },
    "author": {
      "$ref": "#/components/schemas/User"
    },
    "author_channel_context": {
      "$ref": "#/components/schemas/ChannelUserContext"
    },
    "channel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ChannelOrChannelDehydrated"
        }
      ],
      "nullable": true
    },
    "direct_replies": {
      "description": "note: This is recursive. It contains the direct replies to the cast and their direct replies up to n reply_depth.",
      "items": {
        "$ref": "#/components/schemas/CastAndConversationsRef"
      },
      "type": "array"
    },
    "embeds": {
      "items": {
        "$ref": "#/components/schemas/Embed"
      },
      "type": "array"
    },
    "hash": {
      "type": "string"
    },
    "mentioned_channels": {
      "items": {
        "$ref": "#/components/schemas/ChannelDehydrated"
      },
      "type": "array"
    },
    "mentioned_channels_ranges": {
      "description": "Positions within the text (inclusive start, exclusive end) where each mention occurs.\nEach index within this list corresponds to the same-numbered index in the mentioned_channels list.",
      "items": {
        "$ref": "#/components/schemas/TextRange"
      },
      "type": "array"
    },
    "mentioned_profiles": {
      "items": {
        "$ref": "#/components/schemas/User"
      },
      "type": "array"
    },
    "mentioned_profiles_ranges": {
      "description": "Positions within the text (inclusive start, exclusive end) where each mention occurs.\nEach index within this list corresponds to the same-numbered index in the mentioned_profiles list.",
      "items": {
        "$ref": "#/components/schemas/TextRange"
      },
      "type": "array"
    },
    "object": {
      "enum": [
        "cast"
      ],
      "type": "string"
    },
    "parent_author": {
      "properties": {
        "fid": {
          "allOf": [
            {
              "$ref": "#/components/schemas/Fid"
            }
          ],
          "nullable": true
        }
      },
      "required": [
        "fid"
      ],
      "type": "object"
    },
    "parent_hash": {
      "nullable": true,
      "type": "string"
    },
    "parent_url": {
      "nullable": true,
      "type": "string"
    },
    "reactions": {
      "$ref": "#/components/schemas/CastReactions"
    },
    "replies": {
      "$ref": "#/components/schemas/CastReplies"
    },
    "root_parent_url": {
      "nullable": true,
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "thread_hash": {
      "nullable": true,
      "type": "string"
    },
    "timestamp": {
      "format": "date-time",
      "type": "string"
    },
    "type": {
      "$ref": "#/components/schemas/CastNotificationType"
    },
    "viewer_context": {
      "$ref": "#/components/schemas/CastViewerContext"
    }
  },
  "required": [
    "object",
    "hash",
    "parent_hash",
    "parent_url",
    "root_parent_url",
    "parent_author",
    "author",
    "text",
    "timestamp",
    "embeds",
    "reactions",
    "replies",
    "thread_hash",
    "mentioned_profiles",
    "mentioned_profiles_ranges",
    "mentioned_channels",
    "mentioned_channels_ranges",
    "channel",
    "direct_replies"
  ],
  "type": "object"
}