# app.thesocialwire.socialDraft.getAttachment

> Owner-only private draft storage. Authentication required; disabled storage returns Unavailable. Never publishes attachments or exposes public URLs. Returns raw original Content-Type bytes with Cache-Control: private, no-store.

- Kind: query
- Authority: socialDraft.thesocialwire.app
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.getAttachment)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.getAttachment/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.getAttachment/analytics)

## Query (`app.thesocialwire.socialDraft.getAttachment`)

Type: query · GET

### Parameters (query string)

- `assetId` (string, required): Canonical lowercase UUID.
  - Constraints: minLength: 36, maxLength: 36

### Output (*/*)


### Errors

- `InvalidRequest`: No description in schema.
- `NotFound`: No description in schema.
- `Conflict`: No description in schema.
- `Quota`: No description in schema.
- `UploadPending`: No description in schema.
- `Unavailable`: No description in schema.
- `Unauthorized`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Owner-only private draft storage. Authentication required; disabled storage returns Unavailable. Never publishes attachments or exposes public URLs. Returns raw original Content-Type bytes with Cache-Control: private, no-store.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "Quota"
        },
        {
          "name": "UploadPending"
        },
        {
          "name": "Unavailable"
        },
        {
          "name": "Unauthorized"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "assetId": {
            "description": "Canonical lowercase UUID.",
            "maxLength": 36,
            "minLength": 36,
            "type": "string"
          }
        },
        "required": [
          "assetId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.thesocialwire.socialDraft.getAttachment",
  "lexicon": 1
}
```
