Delete Webhook Account
Delete a webhook subscription for a connected profile. Specify the brand_id and connected_profile_id (from get-social-profiles). The profile must have is_webhook_subscribed: true (check via get-social-profiles). Supported platforms: Facebook and Instagram. Requires a webhook callback URL (from add-webhook-callback-url), ORG_ADMIN permission, and an active subscription (from subscribe-webhook-event).
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/delete-webhook-accounts - Returns: Confirmation of successful webhook subscription deletion
Delete Webhook Account
POST https://app.brand2social.com/api/api-services/v1/brand-service/delete-webhook-accounts
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | string (header) | Yes | Bearer token for authentication (requires ORG_ADMIN permission) |
| brand_id | int64 | Yes | ID of the brand |
| connected_profile_id | int64 | Yes | ID of the connected profile (from social-connect, Facebook or Instagram only, must have is_webhook_subscribed: true) |
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/delete-webhook-accounts' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"brand_id": 123,
"connected_profile_id": 387
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Webhook account deleted successfully",
"data": ""
}Error Response
{
"status": "FAILURE",
"http_code": 400,
"message": "connected_profile_id is required",
"data": ""
}