# ai.newnal.illi.artwork.getArtwork

> Family app (active guardians; parents excluded). One work with its versions, sources, occurrences and deliveries. Stored versions can be previewed before delivery (getPreview).

- Kind: query
- Authority: artwork.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.artwork.getArtwork)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.artwork.getArtwork/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.artwork.getArtwork/analytics)

## Query (`ai.newnal.illi.artwork.getArtwork`)

Type: query · GET

### Parameters (query string)

- `artworkKey` (string, required)
  - Constraints: maxLength: 64
- `homeId` (string · tid, required)

### Output (application/json)

- `artwork` (ref, required)
  - Reference: `ai.newnal.illi.artwork.defs#artworkView`

### Errors

- `NotMember`: No description in schema.
- `HomeNotFound`: No description in schema.
- `ArtworkNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Family app (active guardians; parents excluded). One work with its versions, sources, occurrences and deliveries. Stored versions can be previewed before delivery (getPreview).",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "ArtworkNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "artwork": {
              "ref": "ai.newnal.illi.artwork.defs#artworkView",
              "type": "ref"
            }
          },
          "required": [
            "artwork"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "artworkKey": {
            "maxLength": 64,
            "type": "string"
          },
          "homeId": {
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "homeId",
          "artworkKey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.artwork.getArtwork",
  "lexicon": 1
}
```
