GET /api/v2/social_accounts
List of users social accounts. Last Update: 08/08/23

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "twitter_accounts": [
    {
      "id": 1,
      "screen_name": "SCREEN NAME",
      "twitter_uid": "TWITTER UID",
      "twitter_token": "TWITTER TOKEN",
      "logo_url": "LOGO URL",
      "account_verified": false,
      "twitter_nickname": "ekaterinaaaa3"
    },
    ...
  ],
  "facebook_pages": [
    {
      "id": 1,
      "fb_name": "FB NAME",
      "fb_uid": "FB UID",
      "fb_token": "FB TOKEN",
      "logo_url": "LOGO URL",
      "is_silhouette": true
    },
    ...
  ],
  "instagram_accounts": [
    {
      "id": 1,
      "ig_user_name": "IG NAME",
      "ig_user_id": "IG UID",
      "ig_profile_picture_url": "IG AVATAR URL"
    },
    ...
  ]
}

GET /api/v2/social_accounts/social_accounts_list
List of users social accounts in special format

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "accounts": [
      {
          "id": ID,
          "social_channel": "Instagram",
          "name": "USERNAME",
          "nickname": "USER NICKNAME",
          "logo": "LINK TO LOGO"
      },
      {
          "id": ID,
          "social_channel": "Facebook",
          "name": "USERNAME",
          "nickname": "USER NICKNAME",
          "logo": "LINK TO LOGO"
      },
  ],
  "meta": {
      "total_count": 2
  }
}

Params

Param name Description
page
optional

Validations:

  • Must be a Integer

sort_by
optional

Validations:

  • Must be one of: social_channel, name, nickname.

sort_to
optional

Validations:

  • Must be one of: asc, desc.