# pub.techne.draft.identity.listLinkRedemptions

> Who redeemed one of the caller's links, and when. Empty for a link that is not the caller's. One call spends one of the caller's writes.

- Kind: procedure
- Authority: identity.draft.techne.pub
- Lexicon: 1
- Published by [lexicons.techne.town](https://lexicon.garden/identity/did:plc:cbtfheqpi4g6vlrha4tpoh53), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.identity.listLinkRedemptions)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.identity.listLinkRedemptions/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.identity.listLinkRedemptions/analytics)

## Procedure (`pub.techne.draft.identity.listLinkRedemptions`)

Type: procedure · POST

### Input (application/json)

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

### Output (application/json)

- `redemptions` (array, required)
  - `items` (ref)
    - Reference: `pub.techne.draft.identity.defs#linkRedemptionView`

### Errors

- `InvalidRequest`: HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.
- `NotSupported`: HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself.
- `RateLimitExceeded`: Too many writes from this DID (HTTP 429).
- `UpstreamFailure`: HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Who redeemed one of the caller's links, and when. Empty for a link that is not the caller's. One call spends one of the caller's writes.",
      "errors": [
        {
          "description": "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.",
          "name": "InvalidRequest"
        },
        {
          "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself.",
          "name": "NotSupported"
        },
        {
          "description": "Too many writes from this DID (HTTP 429).",
          "name": "RateLimitExceeded"
        },
        {
          "description": "HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.",
          "name": "UpstreamFailure"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "id": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "redemptions": {
              "items": {
                "ref": "pub.techne.draft.identity.defs#linkRedemptionView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "redemptions"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.techne.draft.identity.listLinkRedemptions",
  "lexicon": 1
}
```
