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 Param | Type | Required | Description |
---|---|---|---|
Authorization | string (header) | Yes | Bearer token |
redirect_url | string (body) | Yes | URL where the user will be redirected after successful re-authentication |
brand_id | int64 (body) | Yes | ID of the brand |
connected_profile_id | int64 (body) | Yes | The 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"
}
}