Neynar Documentation
Update user profile
cURL
curl --request PATCH \
--url https://api.neynar.com/v2/farcaster/user/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: NEYNAR_API_DOCS' \
--data '
{
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"banner": "<string>",
"bio": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"primary_eth_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"primary_sol_address": "<string>",
"url": "<string>",
"username": "<string>",
"verified_accounts": {
"github": "<string>",
"x": "<string>"
}
}
'
import requests
url = "https://api.neynar.com/v2/farcaster/user/"
payload = {
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"banner": "<string>",
"bio": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"primary_eth_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"primary_sol_address": "<string>",
"url": "<string>",
"username": "<string>",
"verified_accounts": {
"github": "<string>",
"x": "<string>"
}
}
headers = {
"x-api-key": "NEYNAR_API_DOCS",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)
Response Codes
- 200: Success
- 207: Multi-Status
- 400: Bad Request
- 403: Forbidden
- 404: Not Found
- 500: Internal Server Error
Response Structure
Success:
{
"message": "<string>",
"success": true
}
Error:
{
"errors": [
{
"message": "<string>"
}
],
"success": false
}
Node.js SDK
🔗 SDK Method: updateUser
Authorizations
- x-api-key: String (required) - API key to authorize requests, default:
NEYNAR_API_DOCS
Body Parameters
- signer_uuid: String (required) - UUID of the signer. Example:
"19d0c5fd-9b33-4a48-a0e2-bc7b0555baec" - banner: String (optional) - Requires pro subscription.
- bio: String (optional)
- display_name: String (optional)
- pfp_url: String (optional)
- primary_eth_address: String (required) - Must be one of the verified addresses. Example:
"0x5a927ac639636e534b678e81768ca19e2c6280b7" - primary_sol_address: String (required) - Must be one of the verified addresses.
- url: String (optional)
- username: String (optional)
- verified_accounts: Object (optional) - Contains:
- github:
- x:
- github: