I know that servers communicate by POSTing to an inbox and outbox. But what's the URL for the inbox and outbox?
In ActivityPub, how do you get an inbox URL?
1.3k views Asked by Evan Conrad At
1
I know that servers communicate by POSTing to an inbox and outbox. But what's the URL for the inbox and outbox?
How to get the inbox or outbox URL
The URL is whatever the implementing server says it is. So it's different for each ActivityPub server.
The inbox and outbox URL for an actor is defined in the JSON-LD document for an actor:
This also means that the inbox and outbox can be actor-specific, not just server specific.
How to get the actor JSON
Some ActivityPub sites like Mastodon make use of Webfinger to standardize a URL that can be used to get an actor's JSON-LD doc:
In this case, if you wanted to know the inbox for
[email protected]
, you would first query the webfinger:That would give you a JSON object like this:
With that
href: https://mastodon.technology/users/Flaque
, you can get the JSON representation with:(Note the
.json
!)That would then give you a full actor object, which would include the
inbox
andoutbox
: