> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cail.health/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cail.health/_mcp/server.

# Get aggregate trust summary for your network

GET https://staging.cail.health/v1/providers/trust/summary

Returns aggregate trust signals across the provider directory in the operator’s jurisdiction: total provider count, verification mix, freshness mix, conflict counts by status, and the most recent visible import batch. Count records are zero-filled across their respective enum values so the JSON shape is stable regardless of which rows exist in the database.

Reference: https://docs.cail.health/api-references/api-reference/curate-your-network/summary

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/providers/trust/summary:
    get:
      operationId: summary
      summary: Get aggregate trust summary for your network
      description: >-
        Returns aggregate trust signals across the provider directory in the
        operator’s jurisdiction: total provider count, verification mix,
        freshness mix, conflict counts by status, and the most recent visible
        import batch. Count records are zero-filled across their respective enum
        values so the JSON shape is stable regardless of which rows exist in the
        database.
      tags:
        - subpackage_curateYourNetwork
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Aggregate trust summary.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderTrustSummaryResponse'
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    ProviderTrustConflicts:
      type: object
      properties:
        byStatus:
          type: object
          additionalProperties:
            type: integer
          description: Conflict counts keyed by lifecycle status.
        open:
          type: number
          format: double
          description: Convenience field equal to byStatus.open.
        total:
          type: number
          format: double
          description: Total conflicts (sum of byStatus).
      required:
        - byStatus
        - open
        - total
      title: ProviderTrustConflicts
    ProviderTrustLastSyncStatus:
      type: string
      enum:
        - running
        - completed
        - partial
        - failed
      description: Lifecycle status of the import batch.
      title: ProviderTrustLastSyncStatus
    ProviderTrustLastSyncCompletedAt:
      type: object
      properties: {}
      description: ISO 8601 timestamp the batch completed. Null while running.
      title: ProviderTrustLastSyncCompletedAt
    ProviderTrustLastSyncDurationMs:
      type: object
      properties: {}
      description: completedAt minus startedAt in milliseconds. Null while running.
      title: ProviderTrustLastSyncDurationMs
    ProviderTrustLastSync:
      type: object
      properties:
        id:
          type: string
          description: Stable identifier of the import batch.
        sourceSystem:
          type: string
          description: Upstream system the import pulled from.
        sourceAdapter:
          type: string
          description: Adapter the import used.
        status:
          $ref: '#/components/schemas/ProviderTrustLastSyncStatus'
          description: Lifecycle status of the import batch.
        startedAt:
          type: string
          description: ISO 8601 timestamp the batch started.
        completedAt:
          oneOf:
            - $ref: '#/components/schemas/ProviderTrustLastSyncCompletedAt'
            - type: 'null'
          description: ISO 8601 timestamp the batch completed. Null while running.
        fetchedCount:
          type: number
          format: double
          description: Number of records the adapter fetched from upstream.
        syncedCount:
          type: number
          format: double
          description: Number of records successfully written to the directory.
        failedCount:
          type: number
          format: double
          description: Number of records that failed to write.
        durationMs:
          oneOf:
            - $ref: '#/components/schemas/ProviderTrustLastSyncDurationMs'
            - type: 'null'
          description: completedAt minus startedAt in milliseconds. Null while running.
      required:
        - id
        - sourceSystem
        - sourceAdapter
        - status
        - startedAt
        - completedAt
        - fetchedCount
        - syncedCount
        - failedCount
        - durationMs
      title: ProviderTrustLastSync
    ProviderTrustSummaryResponse:
      type: object
      properties:
        jurisdictionId:
          type: string
          description: Stable identifier of the jurisdiction.
        providerCount:
          type: number
          format: double
          description: Total non-deleted provider organisations in the jurisdiction.
        verificationMix:
          type: object
          additionalProperties:
            type: integer
          description: >-
            Verification state counts. Keys are: unverified, verified, rejected,
            needs_review.
        freshnessMix:
          type: object
          additionalProperties:
            type: integer
          description: 'Freshness counts. Keys are: unknown, fresh, stale, expired.'
        conflicts:
          $ref: '#/components/schemas/ProviderTrustConflicts'
        lastSync:
          oneOf:
            - $ref: '#/components/schemas/ProviderTrustLastSync'
            - type: 'null'
          description: >-
            Most recent provider import batch visible to the operator. Null when
            no batches exist yet.
      required:
        - jurisdictionId
        - providerCount
        - verificationMix
        - freshnessMix
        - conflicts
        - lastSync
      title: ProviderTrustSummaryResponse
  securitySchemes:
    auth0Bearer:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "jurisdictionId": "jur_uk_eng",
  "providerCount": 1240,
  "verificationMix": {
    "unverified": 800,
    "verified": 400,
    "rejected": 10,
    "needs_review": 30
  },
  "freshnessMix": {
    "unknown": 12,
    "fresh": 1100,
    "stale": 100,
    "expired": 28
  },
  "conflicts": {
    "byStatus": {
      "open": 4,
      "ignored": 2,
      "resolved_with_current": 1,
      "resolved_with_incoming": 0
    },
    "open": 4,
    "total": 7
  },
  "lastSync": {
    "id": "bf2e9a17-c4d0-4b8e-90a7-2c3f1e6a9b4d",
    "sourceSystem": "ods",
    "sourceAdapter": "nhs-ods-v1",
    "status": "completed",
    "startedAt": "2026-05-13T03:00:00.000Z",
    "completedAt": "2026-05-13T03:38:23.000Z",
    "fetchedCount": 1240,
    "syncedCount": 1238,
    "failedCount": 2,
    "durationMs": 38123
  }
}
```

**SDK Code**

```python A network with mixed verification and one recent import
import requests

url = "https://staging.cail.health/v1/providers/trust/summary"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript A network with mixed verification and one recent import
const url = 'https://staging.cail.health/v1/providers/trust/summary';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A network with mixed verification and one recent import
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://staging.cail.health/v1/providers/trust/summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A network with mixed verification and one recent import
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/providers/trust/summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A network with mixed verification and one recent import
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/providers/trust/summary")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A network with mixed verification and one recent import
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/providers/trust/summary', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp A network with mixed verification and one recent import
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/providers/trust/summary");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A network with mixed verification and one recent import
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/providers/trust/summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```