# party.whey.writeproxy.getDelegationStatus

> Read a delegation's credential health, caller count/revision, and effective limits/usage. Requires service auth as the delegation's repo owner. Never returns tokens or DPoP keys.

- Kind: query
- Authority: 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.getDelegationStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.getDelegationStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.getDelegationStatus/analytics)

## Query (`party.whey.writeproxy.getDelegationStatus`)

Type: query · GET

### Parameters (query string)

- `delegation` (string, required)
  - Constraints: maxLength: 128

### Output (application/json)

- `callerCount` (integer, required)
  - Constraints: minimum: 0
- `callerRevision` (integer, required)
  - Constraints: minimum: 0
- `credential` (ref, required)
  - Reference: `party.whey.writeproxy.defs#credentialStatus`
- `delegation` (ref, required)
  - Reference: `party.whey.writeproxy.defs#delegation`
- `limits` (ref)
  - Reference: `party.whey.writeproxy.defs#limits`
- `remaining` (ref)
  - Reference: `party.whey.writeproxy.defs#remaining`
- `resetAt` (string · datetime)
- `usage` (ref)
  - Reference: `party.whey.writeproxy.defs#usage`

### Errors

- `DelegationNotFound`: No description in schema.
- `NotAuthorized`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "DelegationNotFound"
        },
        {
          "name": "NotAuthorized"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "callerCount": {
              "minimum": 0,
              "type": "integer"
            },
            "callerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "credential": {
              "ref": "party.whey.writeproxy.defs#credentialStatus",
              "type": "ref"
            },
            "delegation": {
              "ref": "party.whey.writeproxy.defs#delegation",
              "type": "ref"
            },
            "limits": {
              "ref": "party.whey.writeproxy.defs#limits",
              "type": "ref"
            },
            "remaining": {
              "ref": "party.whey.writeproxy.defs#remaining",
              "type": "ref"
            },
            "resetAt": {
              "format": "datetime",
              "type": "string"
            },
            "usage": {
              "ref": "party.whey.writeproxy.defs#usage",
              "type": "ref"
            }
          },
          "required": [
            "delegation",
            "credential",
            "callerCount",
            "callerRevision"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "delegation": {
            "maxLength": 128,
            "type": "string"
          }
        },
        "required": [
          "delegation"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Read a delegation's credential health, caller count/revision, and effective limits/usage. Requires service auth as the delegation's repo owner. Never returns tokens or DPoP keys.",
  "id": "party.whey.writeproxy.getDelegationStatus",
  "lexicon": 1
}
```
