# party.whey.writeproxy.admin.getCredentialHealth

> List delegation credential health: refresh state, expiry, PDS URL, and last error. Never returns tokens or DPoP keys.

- Kind: query
- Authority: admin.writeproxy.whey.party
- Lexicon: 1
- Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.getCredentialHealth)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.getCredentialHealth/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.getCredentialHealth/analytics)

## Query (`party.whey.writeproxy.admin.getCredentialHealth`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `delegation` (string)
  - Constraints: maxLength: 128
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50

### Output (application/json)

- `credentials` (array, required)
  - `items` (ref)
    - Reference: `party.whey.writeproxy.defs#credentialHealth`
- `cursor` (string)

### Errors

- `NotOperator`: No description in schema.
- `InvalidCursor`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "credentials": {
              "items": {
                "ref": "party.whey.writeproxy.defs#credentialHealth",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "type": "string"
            }
          },
          "required": [
            "credentials"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "delegation": {
            "maxLength": 128,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "List delegation credential health: refresh state, expiry, PDS URL, and last error. Never returns tokens or DPoP keys.",
  "id": "party.whey.writeproxy.admin.getCredentialHealth",
  "lexicon": 1
}
```
