POST
/
v2
/
farcaster
/
cast
/
Post a cast
curl --request POST \
  --url https://api.neynar.com/v2/farcaster/cast/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
  "text": "<string>",
  "embeds": [
    {
      "cast_id": {
        "hash": "<string>",
        "fid": 3
      }
    }
  ],
  "parent": "<string>",
  "channel_id": "neynar",
  "idem": "<string>",
  "parent_author_fid": 3
}'
{
  "success": true,
  "cast": {
    "hash": "0x71d5225f77e0164388b1d4c120825f3a2c1f131c",
    "author": {
      "fid": 3
    },
    "text": "<string>"
  }
}

Easiest way to start is to clone our repo that has sign in w/ Farcaster and writes. Ensure you’re using a signer_uuid that was made with the same API key.

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Body

application/json
signer_uuid
string
required

UUID of the signer. signer_uuid is paired with API key, can't use a uuid made with a different API key.

Example:

"19d0c5fd-9b33-4a48-a0e2-bc7b0555baec"

text
string
embeds
PostCastReqBodyEmbeds · object[]
Maximum length: 2
parent
string

parent_url of the channel the cast is in, or hash of the cast

channel_id
string

Channel ID of the channel where the cast is to be posted. e.g. neynar, farcaster, warpcast

Example:

"neynar"

idem
string

An Idempotency key is a unique identifier for the request. Note:

  1. This is used to prevent duplicate requests. Use the same idem key on retry attempts.
  2. This should be a unique identifier for each request.
  3. Recommended format is a 16-character string generated by the developer at the time of making this request.
parent_author_fid
integer

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

Required range: x >= 0
Example:

3

Response

Success

success
boolean
required
cast
object
required