# party.whey.writeproxy.getDelegation

> Read one of the delegator's own delegations, by delegation ID or by (space, repo). Requires service auth as the delegation's repo owner.

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

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

Type: query · GET

### Parameters (query string)

- `delegation` (string)
  - Constraints: maxLength: 128
- `repo` (string · did)
- `space` (string · space-ref)

### Output (application/json)

- `delegation` (ref, required)
  - Reference: `party.whey.writeproxy.defs#delegation`

### 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": {
            "delegation": {
              "ref": "party.whey.writeproxy.defs#delegation",
              "type": "ref"
            }
          },
          "required": [
            "delegation"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "delegation": {
            "maxLength": 128,
            "type": "string"
          },
          "repo": {
            "format": "did",
            "type": "string"
          },
          "space": {
            "format": "space-ref",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Read one of the delegator's own delegations, by delegation ID or by (space, repo). Requires service auth as the delegation's repo owner.",
  "id": "party.whey.writeproxy.getDelegation",
  "lexicon": 1
}
```
