Disconnect the Meta integration
const url = 'https://api.siprtc.io/v1/Accounts/example/Integrations/Meta';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.siprtc.io/v1/Accounts/example/Integrations/Meta \ --header 'Authorization: Basic <credentials>'Disconnects the whole Facebook (Meta) integration: every connected login and page is removed, each page is unsubscribed from the app’s Messenger webhook (best effort) and its routing on this account deleted. Messenger stops working for the account until it connects again. Not reversible. Authentication: HTTP Basic with the account’s Auth ID and Auth Secret. The operation always applies to the authenticated account; {auth_id} should be its Auth ID (with a parent account’s credentials on a sub-account’s path, the parent’s own integration is used, not the sub-account’s).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of the authenticated account
Responses
Section titled “ Responses ”OK
object
AccountID is the Auth ID of the account.
Message is “Meta integration disconnected”.
Status is “success”.
Example
{ "account_id": "AC000000000000000000", "message": "Meta integration disconnected", "status": "success"}Storage error (reported as 400 with its message)
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Missing or invalid credentials; the body is the JSON string Authentication failed
Example generated
exampleNo Meta integration on this account
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}