# app.lovesky.match.createLike

> Like or pass on a card. Stored privately in the AppView. If the subject has already liked the caller, a match and a conversation are created atomically. The response never reveals a one-sided like from the other party.

- Kind: procedure
- 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.createLike)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.createLike/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.createLike/analytics)

## Procedure (`app.lovesky.match.createLike`)

Type: procedure · POST

### Input (application/json)

- `action` (string, required)
  - Constraints: enum: like | pass
- `subject` (string · did, required)

### Output (application/json)

- `convoId` (string)
- `matched` (boolean, required)

### Errors

- `RateLimited`: Daily like budget exhausted.
- `Blocked`: A block exists in either direction.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Like or pass on a card. Stored privately in the AppView. If the subject has already liked the caller, a match and a conversation are created atomically. The response never reveals a one-sided like from the other party.",
      "errors": [
        {
          "description": "Daily like budget exhausted.",
          "name": "RateLimited"
        },
        {
          "description": "A block exists in either direction.",
          "name": "Blocked"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "action": {
              "enum": [
                "like",
                "pass"
              ],
              "type": "string"
            },
            "subject": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "subject",
            "action"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "convoId": {
              "type": "string"
            },
            "matched": {
              "type": "boolean"
            }
          },
          "required": [
            "matched"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.lovesky.match.createLike",
  "lexicon": 1
}
```
