Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Disconnect Social Accounts

Disconnect one or more social media accounts from a brand. Specify the brand_id and an array of connected_profile_id values obtained from get-social-profiles. This removes the association between the brand and the specified social media profiles (e.g., Facebook, Instagram, Twitter, YouTube, LinkedIn, Google My Business), preventing their use in create-new-post or update-new-post.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/disintegrate-accounts
  • Returns: Confirmation of successful account disconnection

Disconnect Social Accounts

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

FieldTypeRequiredDescription
Authorizationstring (header)YesBearer token for authentication (requires ORG_ADMIN permission)
brand_idint64YesID of the brand
accountsarray of objectsYesList of social media accounts to disconnect
FieldTypeRequiredDescription
connected_profile_idint64YesID of the connected social media profile (from social-connect)
    
    
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/disintegrate-accounts' \
  --header 'Authorization: Bearer B2S_dummyToken' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "brand_id": 123,
    "accounts": [
      {
        "connected_profile_id": 98765
      },
      {
        "connected_profile_id": 98766
      }
    ]
}'
    
  

Response

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

Error Response

{
  "status": "FAILURE",
  "http_code": 400,
  "message": "Error while disconnecting accounts",
  "data": ""
}