# com.livtet.getContributorLink

> The verified-account links for one contributor, and the link/claim state for one DID. Answered by the bibliograph edge from the catalog tables and the activity index; never handled by HappyView.

- Kind: query
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getContributorLink)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getContributorLink/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getContributorLink/analytics)

## Query (`com.livtet.getContributorLink`)

Type: query · GET

### Parameters (query string)

- `contributor` (string · at-uri): Contributor record URI. When supplied, `identities` lists the accounts verified as this contributor.
- `did` (string · did): Account DID. When supplied, `identity` and `claim` describe that account.

### Output (application/json)

- `claim` (ref)
  - Reference: `com.livtet.defs#contributorClaimView`
- `identities` (array)
  - `items` (ref)
    - Reference: `com.livtet.defs#contributorIdentity`
- `identity` (ref)
  - Reference: `com.livtet.defs#contributorIdentity`

### Errors

- `InvalidRequest`: Neither `contributor` nor `did` was supplied, or a value is malformed.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "Neither `contributor` nor `did` was supplied, or a value is malformed.",
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "claim": {
              "ref": "com.livtet.defs#contributorClaimView",
              "type": "ref"
            },
            "identities": {
              "items": {
                "ref": "com.livtet.defs#contributorIdentity",
                "type": "ref"
              },
              "type": "array"
            },
            "identity": {
              "ref": "com.livtet.defs#contributorIdentity",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "contributor": {
            "description": "Contributor record URI. When supplied, `identities` lists the accounts verified as this contributor.",
            "format": "at-uri",
            "type": "string"
          },
          "did": {
            "description": "Account DID. When supplied, `identity` and `claim` describe that account.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The verified-account links for one contributor, and the link/claim state for one DID. Answered by the bibliograph edge from the catalog tables and the activity index; never handled by HappyView.",
  "id": "com.livtet.getContributorLink",
  "lexicon": 1
}
```
