Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Social Re-Authentication

This endpoint is used to re-authenticate a previously integrated social account when its access token has expired.

Pass the connected_profile_id (received during account integration) and a redirect_url. The API will return a re-authentication URL where the user must log in again to refresh the access token.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/social-reauth
  • Returns: A URL where the user can re-authenticate their account

Social Re-Authentication

POST https://app.brand2social.com/api/api-services/v1/brand-service/social-reauth

Header / Body ParamTypeRequiredDescription
Authorizationstring (header)YesBearer token
redirect_urlstring (body)YesURL where the user will be redirected after successful re-authentication
brand_idint64 (body)YesID of the brand
connected_profile_idint64 (body)YesThe ID of the connected profile obtained during account integration
    
    
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/social-reauth' \
  --header 'Authorization: Bearer B2S_dummyToken' \
  --data-raw '{
    "redirect_url": "https://app.brand2social.com/oauth/callback",
    "brand_id": 123,
    "connected_profile_id": 98765
  }'
    
  

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "Re-authentication URL generated",
  "data": {
    "url": "https://facebook.com/oauth/reauth?client_id=xxxxxx&redirect_uri=yyyyyy"
  }
}