Request headers

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

Request body example

{
  "code": "CODE_FROM_INSTAGRAM"
}

Success response body

{
  "success": false,
  "ig_accounts": [],
  "message": [
    "To connect this social media account to your Personal, you must first remove it from your Workspace accounts"
  ]
}
OR
{
  "success": true,
  "ig_accounts": [
    {
      "id": 2,
      "social_channel": "Instagram",
      "name": "USERNAME",
      "nickname": "USER NICKNAME",
      "logo": "LINK TO LOGO"
    }
  ],
  "message": []
}

Params

Param name Description
code
required

Validations:

  • Must be a String