Skip to main content
POST
https://nostrapi.com
/
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": "[email protected]",
  "nip05": "[email protected]",
  "website": "https://zbd.gg"
}'
{
  "success": true,
  "message": "Successfully published b4edd89a1c06c1aced80ed799090c418685939b3fe8778f8e76cc7ff1f2e36d7 event."
}

Body

name
string
Public-facing name for this Nostr account.
about
string
Public-facing description / bio for this Nostr account.
picture
string
Public-facing URL for an account profile image (avatar).
picture
string
Public-facing URL for an account banner image.
website
string
Website URL for this account.
nip05
string
A verified NIP05 domain name that correctly points to this Nostr account’s public key.
lightning
string
Lightning Address for this Nostr account such that it can receive Bitcoin payments.
relays
array
The array of relay URLs you wish to publish your account update event to.

Response

success
boolean
Indicates whether the call was successful. true if successful, false if not.
message
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": "[email protected]",
  "nip05": "[email protected]",
  "website": "https://zbd.gg"
}'
{
  "success": true,
  "message": "Successfully published b4edd89a1c06c1aced80ed799090c418685939b3fe8778f8e76cc7ff1f2e36d7 event."
}