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 Param | Type | Required | Description |
---|---|---|---|
Authorization | string (header) | Yes | Bearer token |
brand_id | int64 (body) | Yes | ID of the brand |
platform | string (body) | Yes | Options: [ FACEBOOK, INSTAGRAM, YOUTUBE, LINKEDIN, GOOGLEMYBUSINESS ] |
account_id | string (body) | Yes | ID of the primary connected account/profile |
accounts | array of objects (body) | Yes | List 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": ""
}