Indeed, it turned out out-of-band requests aren't permitted by the Tumblr API.
This is a problem I can't really fix since I deliberately wanted to avoid a redirect to the OAuth URL, which is impossible using the shell without a browser.
Ended up using a different API instead.