---
id: config-read-digital-wallet-open-id-trust-statistics
title: "Read trust source statistics"
description: "Returns the number of trust sources of the organisation in each state, and the total. The states are the values of the `state` filter of [List trust sources](/docs/openid4vc-api/config-list-digital-wallet-open-id-trust-source). A call for a sandbox organisation counts the trust sources of its main organisation."
sidebar_label: "Read trust source statistics"
hide_title: true
hide_table_of_contents: true
api: eJztWltv3DYW/isHfFkb0FwcT4vFJAjWsd2u03Qd1E69QGxYtHQ0Yi2RKknNeNaY/744JKWR5tKm3Qvy4JdkJIqH5/KdK/3MUjSJFpUVSrIp+wltraUBmyPIunxADSoDq2tjwahaJ2jcixxB6RmXwnDaCUIC8iQHY7nFCLhM3TdWWV4M4TpHv2KAa3Qrc17Ua1qxW40hE4X1R37+IIztH3x3MEpVYkaqQinSyTwZ8EqMEiUzMRsUwthBKmbC8mKw4EWBdkAfDkQ6cFQGnsrhEE4g4UUBmdLAwXCZPqinvjSJqqX1StgSXVgDJReyt2N4K2/lyccLeMQlmERVOIW4e6yZauRpPLyVLGKqQu22XaRsyrwAPyFPzzz7N477ywrlRXpNNK4st8JYkRgWMY2mUtKgYdNn9mo8pv/6Nrz+Ddv17DRkEZ1uUVqiwquqEIljbPSLIVLPzCQ5lpx+2WWFbMrUwy+YWBYxK2xBLzyHjnyPzy/n6XfxRHxWmrRmhZfbrg81u5j7swqBc/rd/QKE+0ZJbLBtFMQO1zGtEeemLhshPMq/MsRvq4/Y7+hNSIsz1H9EcUQUn3hZEQi+XUUsqbUOQPoCqltGaJUHcaAUT4EDCQmLXBmERFVL0nhYjsD5ryfEZZIrHT48PYGEZM0IzMEAc16ItMfzZBUxVdvL7Ixb/EKuiRuzwU6sanuvsvuUzDmFWOKT/VS5p4AdEq3ixkbwUFso0BBquH8/0zxBsKLEBhhVwW2mdNljdryih0poTP8LCg6U9ik4LO9UsLA58A0NkzSWNkoFhZIz1DvUfbSKmFT2TC1koXj6xXIEldO5UsFMqdTzeRBLZe/Tllx8uKUwlWV/SllOHOe1tZaYgsqyDV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OPF1TjFSJBaVyD0FQMFU9yhFfD8Zb9FovFkLvlodKzUdhrRh8uTs//cXU+oD2rdV/bt2eqkrpEaZtKhMo1b/tX41eT4fHwiPZWytiSyw4/9BcC/atps/e+vdNlvfxJx//jTzpCaKWebFQVXEiyoQPNc6jdP7P5xE/jMkFdoFqQ1RxBCsZrU95FLFfG0o7n5wdu8JMuVit6/WuNmlqNu4jNuRbUQtFT22i7ov+RimJ2kiRYEWFnFFcdb7Taq26T8f05hXrezxO8Eo+uoA4/iHqzJJcd2pu1tWeB/u1Me/pb3pBmf8Dl2/Zzv7J3Q1vP+69JwXer1erfzkYB+g==
sidebar_class_name: "get api-method"
info_path: docs/openid4vc-api/igrant-io-api-documentation
custom_edit_url: null
---

> **Build this with an AI coding agent.** Install the iGrant.io Agent Skills, then ask your agent to build the integration:
>
> ```bash
> npx skills add L3-iGrant/skills
> ```


import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1 className={"openapi__heading"}>Read trust source statistics</h1>

<MethodEndpoint method={"get"} path={"/v4/config/ows/trust/statistics"}></MethodEndpoint>



Returns the number of trust sources of the organisation in each state, and the total. The states are the values of the `state` filter of [List trust sources](/docs/openid4vc-api/config-list-digital-wallet-open-id-trust-source). A call for a sandbox organisation counts the trust sources of its main organisation.

API key scope: `trust-sources:read`.


<div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

The number of trust sources in each state.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>trustSources</strong><span className={"openapi-schema__name"}> object</span><span className={"openapi-schema__divider"}></span><span className={"openapi-schema__required"}>required</span></span></summary><div style={{"marginLeft":"1rem"}}><div style={{"marginTop":".5rem","marginBottom":".5rem"}}>

The number of trust sources in each state. Each trust source is in one state, so `total` is the sum of the states. The states are the values of the `state` filter of [List trust sources](/docs/openid4vc-api/config-list-digital-wallet-open-id-trust-source).

</div><SchemaItem collapsible={false} name={"total"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The number of trust sources.","example":6}}></SchemaItem><SchemaItem collapsible={false} name={"current"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The trust sources in the state `current`: a list whose copy is current, or a trust anchor whose CA certificates are valid.","example":4}}></SchemaItem><SchemaItem collapsible={false} name={"outOfDate"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The lists whose copy is `out_of_date`: `nextUpdate` is in the past, but less than the grace time of the platform.","example":0}}></SchemaItem><SchemaItem collapsible={false} name={"expired"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The trust sources in the state `expired`: a list whose copy is expired, or a trust anchor with a CA certificate that is no longer valid.","example":1}}></SchemaItem><SchemaItem collapsible={false} name={"notDownloaded"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The lists with no good copy (`not_downloaded`).","example":0}}></SchemaItem><SchemaItem collapsible={false} name={"off"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The trust sources that are turned off.","example":1}}></SchemaItem></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"trustSources\": {\n    \"total\": 6,\n    \"current\": 4,\n    \"outOfDate\": 0,\n    \"expired\": 1,\n    \"notDownloaded\": 0,\n    \"off\": 1\n  }\n}"} language={"json"}></ResponseSamples></TabItem><TabItem label={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n  \"trustSources\": {\n    \"total\": 6,\n    \"current\": 4,\n    \"outOfDate\": 0,\n    \"expired\": 1,\n    \"notDownloaded\": 0,\n    \"off\": 1\n  }\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>

The organisation is unknown or has no deployed wallet.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem><SchemaItem collapsible={false} name={"errorKey"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"A text code of the refusal that does not change when the text changes. Only some refusals have it, for example `organisation_suspended`, `feature_disabled`, `service_not_installed` or `purpose_exists`. Some refusals have more members: `feature_disabled` has `feature`, and `service_not_installed` has `service` (the service that is not installed: `wallet` or `consent`)."}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\",\n  \"errorKey\": \"string\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"401"} value={"401"}><div>

The `Authorization` header is missing, or the API key or token is not valid.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem><SchemaItem collapsible={false} name={"errorKey"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"A text code of the refusal that does not change when the text changes. Only some refusals have it, for example `organisation_suspended`, `feature_disabled`, `service_not_installed` or `purpose_exists`. Some refusals have more members: `feature_disabled` has `feature`, and `service_not_installed` has `service` (the service that is not installed: `wallet` or `consent`)."}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\",\n  \"errorKey\": \"string\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"403"} value={"403"}><div>

The API key or token does not allow this call. An API key without the scope of the operation gets the older body `{"Code", "Message"}`. An `X-SandboxOrgId` header that names another sandbox organisation than the one of the API key gets `{"errorCode", "errorDescription"}`. When a platform admin has turned off the feature of the operation for the organisation, the answer has `errorKey` `feature_disabled` and the member `feature` (the name of the feature).

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><div><span className={"badge badge--info"}>anyOf</span><SchemaTabs><TabItem label={"MOD1"} value={"0-item-properties"}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem><SchemaItem collapsible={false} name={"errorKey"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"A text code of the refusal that does not change when the text changes. Only some refusals have it, for example `organisation_suspended`, `feature_disabled`, `service_not_installed` or `purpose_exists`. Some refusals have more members: `feature_disabled` has `feature`, and `service_not_installed` has `service` (the service that is not installed: `wallet` or `consent`)."}}></SchemaItem></TabItem><TabItem label={"Older error body"} value={"1-item-properties"}><SchemaItem collapsible={false} name={"Code"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","description":"The HTTP status.","example":403}}></SchemaItem><SchemaItem collapsible={false} name={"Message"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"What went wrong.","example":"Unauthorised access;User doesn't have enough permissions;"}}></SchemaItem></TabItem></SchemaTabs></div></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{}"} language={"json"}></ResponseSamples></TabItem><TabItem label={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n  \"Code\": 403,\n  \"Message\": \"Unauthorised access;User doesn't have enough permissions;\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>

Unexpected server error.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem><SchemaItem collapsible={false} name={"errorKey"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"A text code of the refusal that does not change when the text changes. Only some refusals have it, for example `organisation_suspended`, `feature_disabled`, `service_not_installed` or `purpose_exists`. Some refusals have more members: `feature_disabled` has `feature`, and `service_not_installed` has `service` (the service that is not installed: `wallet` or `consent`)."}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\",\n  \"errorKey\": \"string\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>
      