EstablishmentsList connected accounts

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.

GEThttps://api.sofia-post.com/api/v1/establishments/{id}/accounts
GEThttps://api.sofia-post.com/api/v1/establishments/{id}/accounts

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.

Authorizations

Authorizationstringrequired

Your personal key or OAuth access token, sent as Bearer <token>.

Kept in this tab only, and sent only to api.sofia-post.com. Get an API key

Path parameters

idstringrequired

Identifier of the establishment.

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

  • Authorizationstringheaderrequired

    Your personal key or OAuth access token, sent as Bearer <token>.

Path parameters

  • idstringrequired

    Identifier of the establishment.

Response

The accounts connected to the establishment.

  • dataobject[]required

    The connected accounts

    Show child attributes
    • idstringrequired

      Identifier of the account, to pass as accountId of a post

    • platformstringrequired

      Network of the account

    • statusstringrequired

      Connection status of the account

    • handlestring

      Handle of the account on the network

    • namestring

      Display name of the account

    • avatarUrlstring

      Address of the avatar of the account

Was this page helpful?