# dev.knotless.getDelegation

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Waits, for a while, for a delegation the caller started with dev.knotless.putDelegation to be approved. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getDelegation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getDelegation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getDelegation/examples)

## Definitions

### `dev.knotless.getDelegation`

**Type**: `query`

Fails with 403 when the authorization was refused or did not log in as the caller, and with 404 for a delegation the caller did not start or that has ended.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `state` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `done` | `boolean` | Yes | Whether the gateway now writes for the caller. False means ask again. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fails with 403 when the authorization was refused or did not log in as the caller, and with 404 for a delegation the caller did not start or that has ended.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "done": {
              "description": "Whether the gateway now writes for the caller. False means ask again.",
              "type": "boolean"
            }
          },
          "required": [
            "done"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "state": {
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "state"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Waits, for a while, for a delegation the caller started with dev.knotless.putDelegation to be approved. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.",
  "id": "dev.knotless.getDelegation",
  "lexicon": 1
}
```
