<!-- source: https://secondlayer.tools/docs/api-reference#list-deployments -->

## List deployed subgraphs

`GET /api/subgraphs` (self-hosted instances only)

Every subgraph on this instance with its status, sync progress, row count and open gap count. Row counts come from Postgres table statistics, so they are approximate; the detail read counts exactly.

### Query parameters

| Name | Type | Description |
| --- | --- | --- |
| `health` | integer | Also return each subgraph's hourly health for this many hours, the same shape as the health read. 1 to 168. |

### Returns

A cursor envelope; `data` holds `DeployedSubgraph` objects.

### Responses

- `200` Every deployed subgraph, unpaginated
- `401` This bind requires the instance token, and it was missing or wrong

### Example

```bash
curl http://127.0.0.1:3800/api/subgraphs \
  -H "Authorization: Bearer $INSTANCE_TOKEN"
```

```json
{
  "data": [
    {
      "name": "sbtc-flows",
      "version": "1.0.2",
      "status": "active",
      "lastProcessedBlock": 9048712,
      "totalProcessed": 48210,
      "totalRows": 48138,
      "totalErrors": 0,
      "tables": [
        "transfers"
      ],
      "chainTip": 9048712,
      "sourceChainTip": 9048712,
      "targetBlock": 9048712,
      "progress": 1,
      "blocksRemaining": 0,
      "syncMode": "sync",
      "gapCount": 0,
      "integrity": "complete",
      "lastError": null,
      "lastErrorAt": null,
      "updatedAt": "2026-09-23T14:02:11.000Z",
      "createdAt": "2026-09-21T09:14:52.000Z"
    }
  ]
}
```
