Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Integrate Accounts

This endpoint is used to integrate selected social accounts (pages, profiles, or channels) with the connected brand.

Use this API after fetching available accounts via fetch-all-accounts or fetch-next-accounts. Only the accounts provided in the request payload will be marked as integrated.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/integrate-accounts
  • Returns: Confirmation of integrated accounts for the given brand

Integrate Accounts

POST https://app.brand2social.com/api/api-services/v1/brand-service/integrate-accounts

Header / Body ParamTypeRequiredDescription
Authorizationstring (header)YesBearer token
brand_idint64 (body)YesID of the brand
platformstring (body)YesOptions: [ FACEBOOK, INSTAGRAM, YOUTUBE, LINKEDIN, GOOGLEMYBUSINESS ]
account_idstring (body)YesID of the primary connected account/profile
accountsarray of objects (body)YesList of accounts to be integrated. Each object must contain an id field.
    
    
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/integrate-accounts' \
  --header 'Authorization: Bearer B2S_dummyToken' \
  --data-raw '{
    "brand_id": 123,
    "platform": "FACEBOOK",
    "account_id": "xxxxxxxxxx",
    "accounts": [
      { "id": "page_123" },
      { "id": "page_456" }
    ]
  }'
    
  

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "Accounts have been successfully integrated",
  "data": ""
}