Remove a connected Facebook login
const url = 'https://api.siprtc.io/v1/Accounts/example/Integrations/Meta/Users/example';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/Users/example \ --header 'Authorization: Basic <credentials>'Removes one connected Facebook login and every page that came with it: each page is unsubscribed from the app’s Messenger webhook (best effort) and its routing on this account deleted, and the login’s cached token is dropped. Other logins and their pages stay. Returns what remains, unpaged. 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
Facebook user id of the login (provider_user_id from Get the Meta integration)
Responses
Section titled “ Responses ”OK
object
AccessToken is set only when exactly one Facebook login is connected: its user token, masked.
AccountID is the Auth ID of the account.
IntegrationID is set only when exactly one Facebook login is connected: its integration id.
IntegrationStatus is set only when exactly one Facebook login is connected.
Integrations are the connected Facebook logins, each with its pages.
object
AccessToken is the stored Facebook user token, masked (first 6 and last 4 characters).
AccountID is the Auth ID of the account the integration belongs to.
Channel is “facebook”.
CreatedAt is when the integration was first stored (RFC 3339).
IntegrationID identifies the integration (a UUID).
IntegrationStatus is the integration’s state (“active”).
Pages connected through this login.
object
IntegrationID identifies the integration (one per Facebook login) the page belongs to.
PageID is the Facebook page id.
PageName is the page’s name.
ProviderUserID is the Facebook user whose login connected the page.
ProviderUserName is that Facebook user’s name.
Tasks are the tasks the connecting Facebook user may perform on the page, as Facebook reports them.
PagesCount is the number of pages in pages.
Provider is “meta”.
ProviderUserID is the Facebook user id of the login.
ProviderUserName is that Facebook user’s name.
Status is “success”.
TokenExpiresAt is when the stored Facebook user token expires (RFC 3339), when Facebook gave an expiry.
UpdatedAt is when it last changed (RFC 3339).
IntegrationsCount is the number of connected Facebook logins.
Message is “Facebook account disconnected”.
Pages are the distinct pages across all integrations.
object
IntegrationID identifies the integration (one per Facebook login) the page belongs to.
PageID is the Facebook page id.
PageName is the page’s name.
ProviderUserID is the Facebook user whose login connected the page.
ProviderUserName is that Facebook user’s name.
Tasks are the tasks the connecting Facebook user may perform on the page, as Facebook reports them.
PagesCount is the number of distinct pages across all integrations (before paging).
ProviderUserID is set only when exactly one Facebook login is connected.
ProviderUserName is set only when exactly one Facebook login is connected.
RemovedProviderUserID is the Facebook user that was removed.
Status is “success”.
TokenExpiresAt is set only when exactly one Facebook login is connected and its token has an expiry.
Example
{ "access_token": "EAAG00...abcd", "account_id": "AC000000000000000000", "integration_id": "7d3c1a52-0000-4000-8000-000000000003", "integration_status": "active", "integrations": [ { "access_token": "EAAG00...abcd", "account_id": "AC000000000000000000", "channel": "facebook", "created_at": "2026-11-20T10:15:00Z", "integration_id": "7d3c1a52-0000-4000-8000-000000000003", "integration_status": "active", "pages": [ { "integration_id": "7d3c1a52-0000-4000-8000-000000000003", "page_id": "100000000000001", "page_name": "Acme Store", "provider_user_id": "300000000000003", "provider_user_name": "Jane Doe", "tasks": [ "MESSAGING", "MODERATE" ] } ], "pages_count": 1, "provider": "meta", "provider_user_id": "300000000000003", "provider_user_name": "Jane Doe", "status": "success", "token_expires_at": "2027-01-19T10:15:00Z", "updated_at": "2026-11-20T10:15:00Z" } ], "integrations_count": 1, "message": "Facebook account disconnected", "pages": [ { "integration_id": "7d3c1a52-0000-4000-8000-000000000003", "page_id": "100000000000001", "page_name": "Acme Store", "provider_user_id": "300000000000003", "provider_user_name": "Jane Doe", "tasks": [ "MESSAGING", "MODERATE" ] } ], "pages_count": 1, "provider_user_id": "300000000000003", "provider_user_name": "Jane Doe", "removed_provider_user_id": "300000000000003", "status": "success", "token_expires_at": "2027-01-19T10:15:00Z"}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 such Facebook login 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"}