Get the Meta integration
const url = 'https://api.siprtc.io/v1/Accounts/example/Integrations/Meta?page=1&limit=30';const options = {method: 'GET', 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 GET \ --url 'https://api.siprtc.io/v1/Accounts/example/Integrations/Meta?page=1&limit=30' \ --header 'Authorization: Basic <credentials>'Returns the account’s Facebook (Meta) integration: every connected Facebook login with its pages, and the distinct pages across them. The pages list is paged (page, limit); the integrations list is not. When exactly one login is connected its details are repeated at the top level. Facebook tokens are never returned in full: access_token is masked. Read from storage only; Facebook is not called. 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
Query Parameters
Section titled “ Query Parameters ”Page number of the pages list (default 1)
Page size of the pages list (default 30, max 100; larger values are capped)
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.
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).
Pagination describes the page of pages returned.
object
CurrentPage is the page number returned.
LastPage is the last page number (1 when there are no pages).
PerPage is the page size used.
TotalResults is the number of distinct pages across all integrations.
ProviderUserID is set only when exactly one Facebook login is connected.
ProviderUserName is set only when exactly one Facebook login is connected.
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, "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, "pagination": { "current_page": 1, "last_page": 1, "per_page": 30, "total_results": 1 }, "provider_user_id": "300000000000003", "provider_user_name": "Jane Doe", "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 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"}