Skip to content

Remove a connected Facebook page

DELETE
/v1/Accounts/{auth_id}/Integrations/Meta/Pages/{page_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/example/Integrations/Meta/Pages/example \
--header 'Authorization: Basic <credentials>'

Stops using one Facebook page: the page is removed from its integration, unsubscribed from the app’s Messenger webhook (best effort: a Facebook failure is only logged) and its routing on this account is deleted, so its messages no longer reach the account. If it was its login’s last page, that integration is deleted too (facebook_user_integration_deleted). 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).

auth_id
required
string

Auth ID of the authenticated account

page_id
required
string

Facebook page id

OK

Media type application/json
object
access_token

AccessToken is set only when exactly one Facebook login is connected: its user token, masked.

string
account_id

AccountID is the Auth ID of the account.

string
facebook_user_integration_deleted

FacebookUserIntegrationDeleted is true when the page was its login’s last, so that integration was deleted too.

boolean
integration_id

IntegrationID is set only when exactly one Facebook login is connected: its integration id.

string
integration_status

IntegrationStatus is set only when exactly one Facebook login is connected.

string
integrations

Integrations are the connected Facebook logins, each with its pages.

Array<object>
object
access_token

AccessToken is the stored Facebook user token, masked (first 6 and last 4 characters).

string
account_id

AccountID is the Auth ID of the account the integration belongs to.

string
channel

Channel is “facebook”.

string
created_at

CreatedAt is when the integration was first stored (RFC 3339).

string
integration_id

IntegrationID identifies the integration (a UUID).

string
integration_status

IntegrationStatus is the integration’s state (“active”).

string
pages

Pages connected through this login.

Array<object>
object
integration_id

IntegrationID identifies the integration (one per Facebook login) the page belongs to.

string
page_id

PageID is the Facebook page id.

string
page_name

PageName is the page’s name.

string
provider_user_id

ProviderUserID is the Facebook user whose login connected the page.

string
provider_user_name

ProviderUserName is that Facebook user’s name.

string
tasks

Tasks are the tasks the connecting Facebook user may perform on the page, as Facebook reports them.

Array<string>
pages_count

PagesCount is the number of pages in pages.

integer
provider

Provider is “meta”.

string
provider_user_id

ProviderUserID is the Facebook user id of the login.

string
provider_user_name

ProviderUserName is that Facebook user’s name.

string
status

Status is “success”.

string
token_expires_at

TokenExpiresAt is when the stored Facebook user token expires (RFC 3339), when Facebook gave an expiry.

string
updated_at

UpdatedAt is when it last changed (RFC 3339).

string
integrations_count

IntegrationsCount is the number of connected Facebook logins.

integer
message

Message is “page removed”.

string
pages

Pages are the distinct pages across all integrations.

Array<object>
object
integration_id

IntegrationID identifies the integration (one per Facebook login) the page belongs to.

string
page_id

PageID is the Facebook page id.

string
page_name

PageName is the page’s name.

string
provider_user_id

ProviderUserID is the Facebook user whose login connected the page.

string
provider_user_name

ProviderUserName is that Facebook user’s name.

string
tasks

Tasks are the tasks the connecting Facebook user may perform on the page, as Facebook reports them.

Array<string>
pages_count

PagesCount is the number of distinct pages across all integrations (before paging).

integer
provider_user_id

ProviderUserID is set only when exactly one Facebook login is connected.

string
provider_user_name

ProviderUserName is set only when exactly one Facebook login is connected.

string
removed_page_id

RemovedPageID is the page that was removed.

string
status

Status is “success”.

string
token_expires_at

TokenExpiresAt is set only when exactly one Facebook login is connected and its token has an expiry.

string

Example

{
"access_token": "EAAG00...abcd",
"account_id": "AC000000000000000000",
"facebook_user_integration_deleted": false,
"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": "page removed",
"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_page_id": "100000000000001",
"status": "success",
"token_expires_at": "2027-01-19T10:15:00Z"
}

Storage error (reported as 400 with its message)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Missing or invalid credentials; the body is the JSON string Authentication failed

Media type application/json
string

Example generated

example

No Meta integration, or no such page on this account

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}