app.didpic.chat.findOrCreateConversation

Start a conversation, or return an existing 1:1 with the same person.

Details · procedure
Kindprocedure
Authoritychat.didpic.app
Indexed
cid bafyreieti4rk37yvz2k7a6cwwa66u53ki42lb2swvhaexjniyuqh2ty4qu

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.participantDids.itemsNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.conversationIdNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Start a conversation, or return an existing 1:1 with the same person.",
      "errors": [
        {
          "name": "Blocked"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "participantDids": {
              "items": {
                "type": "string"
              },
              "maxLength": 9,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "participantDids"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "conversationId": {
              "type": "string"
            },
            "created": {
              "description": "False if an existing conversation was reused.",
              "type": "boolean"
            }
          },
          "required": [
            "conversationId",
            "created"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.didpic.chat.findOrCreateConversation",
  "lexicon": 1
}