# app.lovesky.match.getMatches

> The caller's mutual matches, newest first.

- Kind: query
- Authority: match.lovesky.app
- Lexicon: 1
- Published by [toddlambert.com](https://lexicon.garden/identity/did:plc:r5pj64joaywqnvk2obembpt7), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.getMatches)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.getMatches/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.getMatches/analytics)

## Query (`app.lovesky.match.getMatches`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50

### Output (application/json)

- `cursor` (string)
- `matches` (array, required)
  - `items` (ref)
    - Reference: `#matchView`

## #matchView (`app.lovesky.match.getMatches#matchView`)

Type: object

### Properties

- `convoId` (string, required)
- `lastMessageAt` (string · datetime)
- `matchedAt` (string · datetime, required)
- `profile` (ref, required)
  - Reference: `app.lovesky.actor.defs#profileView`
- `unreadCount` (integer)
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The caller's mutual matches, newest first.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "matches": {
              "items": {
                "ref": "#matchView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "matches"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "matchView": {
      "properties": {
        "convoId": {
          "type": "string"
        },
        "lastMessageAt": {
          "format": "datetime",
          "type": "string"
        },
        "matchedAt": {
          "format": "datetime",
          "type": "string"
        },
        "profile": {
          "ref": "app.lovesky.actor.defs#profileView",
          "type": "ref"
        },
        "unreadCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "profile",
        "convoId",
        "matchedAt"
      ],
      "type": "object"
    }
  },
  "id": "app.lovesky.match.getMatches",
  "lexicon": 1
}
```
