Accounts

Exchange Pixelfed OOB authorization code

post/accounts/pixelfed/exchange

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/accounts/pixelfed/exchange
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

codestring required

Authorization code from OAuth flow

instance_urlstring required

Mastodon instance URL to dynamically register

intent'production' | 'certification_test'

Typed execution intent; certification_test requires an unscoped instance administrator

server_namestring required

Mastodon server name from config

workspace_idstring required

Workspace ID

Example request

{
  "$schema": "https://example.com/api/v1/schemas/ExchangeCodeInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

account_idstring required

OpenPost destination account ID

account_idsstring[] nullable required

All connected OpenPost account IDs

open_fresh_composerboolean required

Whether this is the Workspace's first connected destination

workspace_idstring required

Workspace receiving the connected destination

Example response

{
  "$schema": "https://example.com/api/v1/schemas/AccountConnectionResponse.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.