# app.lovesky.match.createLike

> Published by [toddlambert.com](https://lexicon.garden/identity/did:plc:r5pj64joaywqnvk2obembpt7)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.createLike)
- [Documentation](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.createLike/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.match.createLike/examples)

## Definitions

### `app.lovesky.match.createLike`

**Type**: `procedure`

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.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `action` | `string` | Yes |  |
| `subject` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convoId` | `string` | No |  |
| `matched` | `boolean` | Yes |  |

#### Errors

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

## Raw 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
}
```
