# dev.cocore.account.listIncomingFriends

> Published by [cocore.dev](https://lexicon.garden/identity/did:plc:5quuhkmwe2q4k3azfsgg7kdz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.account.listIncomingFriends)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.account.listIncomingFriends/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5quuhkmwe2q4k3azfsgg7kdz/dev.cocore.account.listIncomingFriends/examples)

## Definitions

### `dev.cocore.account.listIncomingFriends`

**Type**: `query`

Every `dev.cocore.account.friend` record whose subject equals the queried DID — "who has trusted me with work?". Newest first; frienders are hydrated to a handle via the public Bluesky AppView when no local profile exists.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes |  |
| `friends` | `array` | Yes |  |

#### Errors

- **InvalidRequest**: The `did` parameter is missing or not a DID.

## Raw Schema

```json
{
  "id": "dev.cocore.account.listIncomingFriends",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidRequest",
          "description": "The `did` parameter is missing or not a DID."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "friends",
            "total"
          ],
          "properties": {
            "total": {
              "type": "integer"
            },
            "friends": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "friender",
                  "subject"
                ],
                "properties": {
                  "uri": {
                    "type": "string",
                    "format": "at-uri"
                  },
                  "subject": {
                    "type": "string",
                    "format": "did"
                  },
                  "friender": {
                    "type": "string",
                    "format": "did"
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "datetime"
                  },
                  "frienderHandle": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 200,
            "minimum": 1
          }
        }
      },
      "description": "Every `dev.cocore.account.friend` record whose subject equals the queried DID — \"who has trusted me with work?\". Newest first; frienders are hydrated to a handle via the public Bluesky AppView when no local profile exists."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
