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.

  • db0@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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.

  • db0@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I managed to figure it out. I was missing “type”:“Person” in my origin server user json

  • db0@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    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