Farcaster
- User
- Fetch User Information
- Fetch User's Casts
- Register New User
- Update User Profile
- GETUser interactions
- GETFetch authorization url
- Auth Address
- Signer
- Cast
- Feed
- Reaction
- Notifications
- Channel
- Social Graph
- Storage
- Mini Apps
- Mini App Hosts
- Agents
- Fname
- Webhook
- Action
- Mute
- Block
- Ban
- Onchain
- Login
- Metrics
Onchain
Farcaster Hub API
- Info
- Casts
- Reactions
- Links
- UserData
- Fids
- Storage
- Usernames
- Verifications
- OnChainEvents
- Message
- HubEvents
Neynar SDK
- Getting Started with Neynar NodeJS SDK
- NodeJS SDK v1 to v2 migration guide
- Getting Started with Neynar Rust SDK
- Getting Started with Neynar Go SDK
Register New User
Register new account
Register account on farcaster.
Note: This API must be called within 10 minutes of the fetch FID API call (i.e., /v2/farcaster/user/fid). Otherwise, Neynar will assign this FID to another available user.
POST
/
v2
/
farcaster
/
user
/
Copy
Ask AI
curl --request POST \
--url https://api.neynar.com/v2/farcaster/user/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"signature": "<string>",
"fid": 123,
"requested_user_custody_address": "<string>",
"deadline": 123,
"fname": "<string>",
"metadata": {
"bio": "<string>",
"pfp_url": "<string>",
"url": "<string>",
"username": "<string>",
"display_name": "<string>",
"verified_accounts": {
"x": "<string>",
"github": "<string>"
},
"location": {
"latitude": 0,
"longitude": 0
}
}
}'
Copy
Ask AI
{
"success": true,
"message": "<string>",
"signer": {
"object": "signer",
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"public_key": "0x3daa8f99c5f760688a3c9f95716ed93dee5ed5d7722d776b7c4deac957755f22",
"status": "generated",
"signer_approval_url": "<string>",
"fid": 3,
"permissions": [
"WRITE_ALL"
]
},
"user": {
"object": "user",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"pro": {
"status": "subscribed",
"subscribed_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
},
"pfp_url": "<string>",
"profile": {
"bio": {
"text": "<string>",
"mentioned_profiles": [
{
"object": "user_dehydrated",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7"
}
],
"mentioned_profiles_ranges": [
{
"start": 1,
"end": 1
}
],
"mentioned_channels": [
{
"id": "<string>",
"name": "<string>",
"object": "channel_dehydrated",
"image_url": "<string>",
"viewer_context": {
"following": true,
"role": "member"
}
}
],
"mentioned_channels_ranges": [
{
"start": 1,
"end": 1
}
]
},
"location": {
"latitude": 0,
"longitude": 0,
"address": {
"city": "<string>",
"state": "<string>",
"state_code": "<string>",
"country": "<string>",
"country_code": "<string>"
},
"radius": 1
},
"banner_url": "<string>"
},
"follower_count": 123,
"following_count": 123,
"verifications": [
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
],
"verified_addresses": {
"eth_addresses": [
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
],
"sol_addresses": [
"<string>"
],
"primary": {
"eth_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"sol_address": "<string>"
}
},
"verified_accounts": [
{
"platform": "x",
"username": "<string>"
}
],
"power_badge": true,
"experimental": {
"deprecation_notice": "<string>",
"neynar_user_score": 123
},
"viewer_context": {
"following": true,
"followed_by": true,
"blocking": true,
"blocked_by": true
},
"score": 123
}
}
Related doc: Create new Farcaster account
If using developer_managed
signers, use this version of the API. If confused, you’re likely not using developer managed signers.
Authorizations
API key to authorize requests
Body
application/json
Response
200
application/json
Success
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.neynar.com/v2/farcaster/user/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"signature": "<string>",
"fid": 123,
"requested_user_custody_address": "<string>",
"deadline": 123,
"fname": "<string>",
"metadata": {
"bio": "<string>",
"pfp_url": "<string>",
"url": "<string>",
"username": "<string>",
"display_name": "<string>",
"verified_accounts": {
"x": "<string>",
"github": "<string>"
},
"location": {
"latitude": 0,
"longitude": 0
}
}
}'
Copy
Ask AI
{
"success": true,
"message": "<string>",
"signer": {
"object": "signer",
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"public_key": "0x3daa8f99c5f760688a3c9f95716ed93dee5ed5d7722d776b7c4deac957755f22",
"status": "generated",
"signer_approval_url": "<string>",
"fid": 3,
"permissions": [
"WRITE_ALL"
]
},
"user": {
"object": "user",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"pro": {
"status": "subscribed",
"subscribed_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
},
"pfp_url": "<string>",
"profile": {
"bio": {
"text": "<string>",
"mentioned_profiles": [
{
"object": "user_dehydrated",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7"
}
],
"mentioned_profiles_ranges": [
{
"start": 1,
"end": 1
}
],
"mentioned_channels": [
{
"id": "<string>",
"name": "<string>",
"object": "channel_dehydrated",
"image_url": "<string>",
"viewer_context": {
"following": true,
"role": "member"
}
}
],
"mentioned_channels_ranges": [
{
"start": 1,
"end": 1
}
]
},
"location": {
"latitude": 0,
"longitude": 0,
"address": {
"city": "<string>",
"state": "<string>",
"state_code": "<string>",
"country": "<string>",
"country_code": "<string>"
},
"radius": 1
},
"banner_url": "<string>"
},
"follower_count": 123,
"following_count": 123,
"verifications": [
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
],
"verified_addresses": {
"eth_addresses": [
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
],
"sol_addresses": [
"<string>"
],
"primary": {
"eth_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"sol_address": "<string>"
}
},
"verified_accounts": [
{
"platform": "x",
"username": "<string>"
}
],
"power_badge": true,
"experimental": {
"deprecation_notice": "<string>",
"neynar_user_score": 123
},
"viewer_context": {
"following": true,
"followed_by": true,
"blocking": true,
"blocked_by": true
},
"score": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.