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