Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Connect social account for brand

Generate OAuth URL for social account connection. Redirect user to this URL to connect social account.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/social-connect
  • Returns: OAuth URL - Redirect user to this URL to connect social account

Get All Brands from Customer

GET https://app.brand2social.com/api/api-services/v1/brand-service/social-connect

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token
brand_idintYesID of the brand
redirect_urlstringYesRedirect url
platformstringYesOptions : [ FACEBOOK, INSTAGRAM, YOUTUBE, LINKEDIN, GOOGLEMYBUSINESS ]
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/social-connect' \
    --header 'Authorization: Bearer B2S_dummyToken' \
    --data-raw '{
      "brand_id": "cust_123",
      "redirect_url": "https:/sample.com/redirect-url",
      "platform": "FACEBOOK",
    }'

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "SUCCESS",
  "data": [
    {
      "url": "https://www.facebook.com/v17.0/dialog/oauth?client_id=xxxxxx&redirect_uri=xxxxx&scope=xxxx&state=xxxxx",
    }
  ]
}