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
GET/v1/establishments/{id}/accounts
curl -X GET 'https://api.sofia-post.com/api/v1/establishments/{id}/accounts' \
  -H "Authorization: Bearer $SOFIA_API_KEY"

Authorizations

  • Authorizationstringrequired

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

Path parameters

  • idstringrequired

    Identifier of the establishment.

Response

200application/json

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

401

The token is missing, unknown, expired or revoked.

403

The token does not have the accounts:read scope.

404

Establishment outside the Workspace of the token.

4XXapplication/json

Any other error, in the error envelope.