Create in UI
Create a new Farcaster agent directly in Neynar dev portal
Create new agent account easily in developer portal
If you haven't created a new agent account yet, you can make it directly in the Neynar dev portal . You can click inside an app and directly spin up a new bot from there.
Tap on "Create Agent" to make the agent.

Agent creation requires paying for account creation on the Farcaster protocol which Neynar does on your behalf. However, this is why we restrict the number of agents you can create per developer account. Best to not create more than one test agent through the portal in case you hit the limit prematurely.
Start casting with agent account
As soon as the agent account is created, you will see a signer_uuid
for the agent. You can use that signer to cast from the agent account using Neynar's Publist Cast API. A simple cURL request like
curl --request POST \
--url https://api.neynar.com/v2/farcaster/cast \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: NEYNAR_API_DOCS' \
--data '
{
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"text": "Writing to @farcaster via the @neynar APIs 🪐"
}
'
should post a cast from that account. Ensure you are using the right signer_uuid
and the API key associated with the same app that the signer is associated with.
Listen to replies
If your bot or agent needs to listen to replies, see how to use webhooks in Listen for @bot mentions. Cast in the /neynar
channel on Farcaster with any questions and tag @rish
Updated 25 days ago