curl --location --request POST 'https://nostrapi.com/api/v1/account/update' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://nostr.mutinywallet.com", "wss://relay.damus.io"],
"name": "Test Account Rocks!",
"about": "Oh yeah, this is a test account alright -- https://zbd.gg",
"picture": "https://cdn.zebedee.io/zbdgg/social/zbd-pfp-default.png",
"banner": "https://pbs.twimg.com/profile_banners/1443505072705576963/1686076926/1500x500",
"lightning": "zbd@zbd.gg",
"nip05": "zbd@zbd.gg",
"website": "https://zbd.gg"
}'
{
"success": true,
"message": "Successfully published b4edd89a1c06c1aced80ed799090c418685939b3fe8778f8e76cc7ff1f2e36d7 event."
}
{
"success": false,
"message": "You must pass a valid API key to use this endpoint."
}
Account APIs
Update Metadata
Update metadata information of a Nostr account
POST
/
api
/
v1
/
account
/
update
curl --location --request POST 'https://nostrapi.com/api/v1/account/update' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://nostr.mutinywallet.com", "wss://relay.damus.io"],
"name": "Test Account Rocks!",
"about": "Oh yeah, this is a test account alright -- https://zbd.gg",
"picture": "https://cdn.zebedee.io/zbdgg/social/zbd-pfp-default.png",
"banner": "https://pbs.twimg.com/profile_banners/1443505072705576963/1686076926/1500x500",
"lightning": "zbd@zbd.gg",
"nip05": "zbd@zbd.gg",
"website": "https://zbd.gg"
}'
{
"success": true,
"message": "Successfully published b4edd89a1c06c1aced80ed799090c418685939b3fe8778f8e76cc7ff1f2e36d7 event."
}
{
"success": false,
"message": "You must pass a valid API key to use this endpoint."
}
Body
string
Public-facing name for this Nostr account.
string
Public-facing description / bio for this Nostr account.
string
Public-facing URL for an account profile image (avatar).
string
Public-facing URL for an account banner image.
string
Website URL for this account.
string
A verified NIP05 domain name that correctly points to this Nostr account’s public key.
string
Lightning Address for this Nostr account such that it can receive Bitcoin payments.
array
The array of relay URLs you wish to publish your account update event to.
Response
boolean
Indicates whether the call was successful.
true if successful, false if not.string
Message detailing the results of the operation.
curl --location --request POST 'https://nostrapi.com/api/v1/account/update' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://nostr.mutinywallet.com", "wss://relay.damus.io"],
"name": "Test Account Rocks!",
"about": "Oh yeah, this is a test account alright -- https://zbd.gg",
"picture": "https://cdn.zebedee.io/zbdgg/social/zbd-pfp-default.png",
"banner": "https://pbs.twimg.com/profile_banners/1443505072705576963/1686076926/1500x500",
"lightning": "zbd@zbd.gg",
"nip05": "zbd@zbd.gg",
"website": "https://zbd.gg"
}'
{
"success": true,
"message": "Successfully published b4edd89a1c06c1aced80ed799090c418685939b3fe8778f8e76cc7ff1f2e36d7 event."
}
{
"success": false,
"message": "You must pass a valid API key to use this endpoint."
}