{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a specific subscription received by the authenticated user (as the recipient/subject). Looks up by subscription record uri or sender DID. These are mutually exclusive; uri takes precedence.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "subscription": {
              "description": "The subscription record data",
              "ref": "com.atiproto.subscription#view",
              "type": "ref"
            }
          },
          "required": [
            "subscription"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "sender": {
            "description": "DID of the subscriber. Ignored if uri is provided.",
            "format": "did",
            "type": "string"
          },
          "uri": {
            "description": "AT-URI of the subscription record. Takes precedence over sender.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atiproto.recipient.payment.subscription.get",
  "lexicon": 1
}
