# ai.newnal.illi.media.getOriginal

> Server-to-server only. Media fetches an active registered original using a media service JWT with this method as lxm. The response streams the PDN blob with Content-Type and Content-Length. An original whose deletion is in progress answers 503 OriginalUnavailable (retry later); only a missing, deleted or unregistered original answers 404 NotFound, which media treats as final.

- Kind: query
- Authority: media.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getOriginal)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getOriginal/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.getOriginal/analytics)

## Query (`ai.newnal.illi.media.getOriginal`)

Type: query · GET

### Parameters (query string)

- `externalAssetId` (string, required)
  - Constraints: minLength: 1
- `spaceKey` (string, required)
  - Constraints: minLength: 1

### Output (*/*)


### Errors

- `NotFound`: No description in schema.
- `OriginalUnavailable`: The original is being deleted; the deletion may still be reverted. Retry later.
- `PdsUnavailable`: No description in schema.
- `InvalidRequest`: No description in schema.
- `AuthenticationRequired`: No description in schema.
- `MediaAuthUnavailable`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Server-to-server only. Media fetches an active registered original using a media service JWT with this method as lxm. The response streams the PDN blob with Content-Type and Content-Length. An original whose deletion is in progress answers 503 OriginalUnavailable (retry later); only a missing, deleted or unregistered original answers 404 NotFound, which media treats as final.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "description": "The original is being deleted; the deletion may still be reverted. Retry later.",
          "name": "OriginalUnavailable"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "MediaAuthUnavailable"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "externalAssetId": {
            "minLength": 1,
            "type": "string"
          },
          "spaceKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "spaceKey",
          "externalAssetId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.media.getOriginal",
  "lexicon": 1
}
```
