Skip to content
campaiDeveloper
campai.com

Crm ยท Social integrations

POST/{organizationId}/crm/communication/socialIntegrations/{accountId}/disconnect

Disconnect social account

Disconnects one account and removes stored credentials when its grant has no remaining connected accounts. A Facebook or Instagram authorization no organization uses anymore is also revoked at Meta, a YouTube or Google Business Profile authorization the organization no longer uses at Google. The channel name, link and statistics read from the platform are deleted 7 days later unless the account is connected again.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • social.remove

Request

Path parameters

  • organizationIdidrequired
  • accountIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/crm/communication/socialIntegrations/YOUR_ACCOUNT_ID/disconnect' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • connectedboolean
Response200
{
  "connected": false
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.