Establishments
List connected accounts
Lists the networks connected to an establishment, with no token or network secret, only what you need to name an account and pick it as accountId.
GET /v1/establishments/{id}/accounts lists the connected networks: platform, ID, name, avatar and status. Sofia never passes on a network’s token.
A post goes out through the accounts connected to the establishment. List them; if one is missing, create a connection link.
curl https://api.sofia-post.com/api/v1/establishments/$ESTABLISHMENT_ID/accounts \
-H "Authorization: Bearer $SOFIA_API_KEY"Authorizations
AuthorizationstringheaderrequiredYour personal key or OAuth access token, sent as
Bearer <token>.
Path parameters
idstringrequiredIdentifier of the establishment.
Response
The accounts connected to the establishment.
dataobject[]requiredThe connected accounts
Show child attributes
idstringrequiredIdentifier of the account, to pass as
accountIdof a postplatformstringrequiredNetwork of the account
statusstringrequiredConnection status of the account
handlestringHandle of the account on the network
namestringDisplay name of the account
avatarUrlstringAddress of the avatar of the account