CLI
Establishments and accounts
List the networks, your establishments and their connected accounts, get a link to connect a new one, and chain it all with jq.
Before publishing, you need three things: the networks Sofia supports, the id of your establishment, and the accounts connected to it.
Networks
platforms:list returns every network with its limits and formats. See Platforms.
sofia platforms:listEstablishments
establishments:list returns the establishments you can publish for. Keep the id of the one you want.
sofia establishments:listConnected accounts
accounts:list <establishmentId> returns the social accounts connected to an establishment. Use their id with -a, --account when a network has several.
sofia accounts:list $ESTABLISHMENT_IDConnect a new account
accounts:connect returns a connection link. Open it in a browser to authorize the network. -p, --platform is required; --redirect-url sends the person back to your page afterwards.
sofia accounts:connect $ESTABLISHMENT_ID -p instagram
sofia accounts:connect $ESTABLISHMENT_ID -p instagram --redirect-url https://app.example.com/connectedDiscovery workflow
Store the establishment id in a variable, then look at its accounts.
ESTABLISHMENT_ID=$(sofia establishments:list | jq -r '.data[0].id')
sofia accounts:list $ESTABLISHMENT_ID | jq '.data[] | {platform, handle}'