Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LS
Lemmy Support @lemmy.ml

Can someone help me send a message directly to a lemmy inbox?

I'm working on an an automation framework and I'm trying to use the activitypub protocol to send a message to a user's mailbox.

I am following this guide

which is quite old. I've set up my webfinger and my user account page and that is now discoverable by the fediverse

However I cannot figure out how to send a PM to a specific mailbox. The payload and url provided in that guide just return 400.

Can anyone assist?

If you know of a better community to ask, please let me know.

3 comments
  • I managed to figure it out. I was missing "type":"Person" in my origin server user json

  • I managed to get it to work for Mastodon. Unfortunately lemmy doesn't provide any documentation on its activitypub implementation, so I'm currently reading the code.

  • Anyone know the format of the payload to send to an inbox? Either the shared /inbox/ or a direct user's inbox like https://overctrl.dbzer0.com/u/overseer/inbox

    The mastodon payload just returns Response Body: data did not match any variant of untagged enum PersonInboxActivitiesWithAnnouncable