{/* Metadata lives in ./layout.tsx */}

# Connections

Which data sources feed this shop, and how fresh each one is. Useful before trusting a metrics range: a stale source means the range is still settling. {{ className: 'lead' }}

<Warning>
  Not live yet. Wire contract below is the intended v1 surface.
</Warning>

---

## `GET /v1/connections`

<Row>
 <Col>

**Auth:** any key with `read`.

One entry per integration. `status` is one of `connected`, `needs_reauth`, `uninstalled`, or `not_connected`. Fields that do not apply to a channel are omitted; ad channels report `ad_accounts`, the store reports `shop_domain` and `currency`.

New channels appear in the list as they ship; treat unknown `channel` values as forward-compatible rather than errors.

 </Col>
 <Col sticky>

 <CodeGroup title="Request">

```sh {{ title: 'curl' }}
curl https://api.plutoprofit.com/v1/connections \
  -H "Authorization: Bearer pk_plp_your_key"
```

 </CodeGroup>

```json {{ title: 'Response' }}
{
  "connections": [
    {
      "channel": "shopify",
      "status": "connected",
      "shop_domain": "example.myshopify.com",
      "currency": "DKK",
      "connected_at": "2026-05-02T09:14:00Z",
      "last_synced_at": "2026-07-14T18:20:00Z"
    },
    {
      "channel": "meta",
      "status": "connected",
      "ad_accounts": 2,
      "connected_at": "2026-05-02T09:20:00Z",
      "last_synced_at": "2026-07-14T18:05:00Z"
    }
  ]
}
```

 </Col>
</Row>
