---
title: "Integration health"
method: GET
path: "/sites/{site}/integrations"
tags: ["Sites"]
---

# Integration health

`GET /sites/{site}/integrations`

## Request

- Base URL: `https://api.onelence.com/v1`
- URL: `https://api.onelence.com/v1/sites/{site}/integrations`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.onelence.com/oauth/authorize`, token URL `https://api.onelence.com/oauth/token`, scopes: `account:read`)
  - HTTP bearer

Whether the site received tracking events in the last 48 hours, whether Stripe is connected, and the ad platforms, search consoles and store or CMS plugins connected to it with their last sync.

## Path parameters

- `site` string, required

## Response `200`

Success.

- object
  - `object` 'integrations', required
  - `site` object, required
    - `id` string, required
    - `domain` string, required
  - `tracking` object, required
    - `status` 'receiving_events' | 'no_recent_events', required
    - `events_last_48h` number, nullable, required
  - `stripe` object, required
    - `status` 'connected' | 'not_connected', required
    - `account` string, nullable, required
    - `livemode` boolean, nullable, required
  - `connections` object[], nullable, required
    - `service` 'google_ads' | 'meta_ads' | 'microsoft_ads' | 'tiktok_ads' | 'linkedin_ads' | 'google_search_console' | 'bing_webmaster' | 'shopify' | 'wordpress', required
    - `status` 'connected' | 'sync_error' | 'expired', required
    - `account` string, nullable, required
    - `currency` string, nullable, required
    - `last_synced_at` string, nullable, required
    - `last_sync_status` string, nullable, required
    - `included_in_analysis` boolean, nullable, required
    - `attention` string, nullable, required

## Other responses

- `400`: Invalid input; `error.param` names the field.
- `401`: Missing, expired or revoked token. WWW-Authenticate points to the resource metadata.
- `402`: subscription_required or upgrade_required; the error carries billing_url.
- `403`: insufficient_scope or admin_required.
- `404`: Unknown endpoint, site, source or record.
- `429`: Rate limited. Retry after Retry-After seconds.
- `500`: OneLence could not complete the request.

---

[API](https://skmtc.dev/onelence/apis/onelence-api.md) · [All operations](https://skmtc.dev/onelence/apis/onelence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onelence/apis/onelence-api/revisions/971c72fe9a42?raw)
