@bugaevc as far as I know, Mastodon API is about client2server interaction, and you are going to use activitypub server2server flow, which is described here https://www.w3.org/TR/activitypub/
Why is this step necessary? mastodon.technology might not be the server where you are registered, so we need to redirect you to your home server first.
Don't have an account? You can sign up here