net.atchan.media.getAudio

Get the audio of a post embed, proxied from the author's PDS and cached.

Repository @atchan.net did:plc:vshgahazzq7qwvp2xc6ai27o namespace authority
Details · query
Kindquery
Authoritymedia.atchan.net
Commit rev3n2perj3qqs2k
Indexed

Showing version bafyreidsoodtuj2kgoges3gk4uwtyvttzgwmfnuysuz275lkqb2lkj4tbq. Show the latest

cid bafyreidsoodtuj2kgoges3gk4uwtyvttzgwmfnuysuz275lkqb2lkj4tbq

Checks

Valid
  • unlimited-string defs.main.parameters.properties.formatNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the audio of a post embed, proxied from the author's PDS and cached.",
      "errors": [
        {
          "description": "atchan has not indexed a post embedding this blob.",
          "name": "BlobNotFound"
        },
        {
          "description": "The blob can't be transcoded to the requested format.",
          "name": "UnsupportedFormat"
        }
      ],
      "output": {
        "encoding": "audio/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The CID of the blob.",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The DID of the account whose repo holds the blob.",
            "format": "did",
            "type": "string"
          },
          "format": {
            "description": "Transcode the audio to this format. If omitted, the file is served as uploaded.",
            "enum": [
              "ogg",
              "mp3"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "net.atchan.media.getAudio",
  "lexicon": 1
}