# AssetAttachment

> Type in domain **Assets**

- HTML: [AssetAttachment.html](AssetAttachment.html)
- Raw SDL: [AssetAttachment.sdl](AssetAttachment.sdl)
- Covered by: [llms.txt](../llms.txt)

Implements: `Node`, `Attachment`

## Fields

- `id`: `ID!` — `Attachment` Id.
- `creator`: `User!` — The `creator` is the `User` who created this `Attachment`.
- `createdAt`: `DateTime!` — `DateTime` of the `Attachment` creation.
- `modifier`: `User` — The `modifier` is the `User` who last modified this `Attachment`.
- `modifiedAt`: `DateTime` — `DateTime` of the `Attachment`last modification.
- `name`: `String` — Name of the `Attachment`.
- `filename`: `String` — Filename of the `Attachment` `File`.
- `type`: `String` — Mediatype (MIME) of the `Attachment`.
- `externalId`: `ID` — External Id of the `Attachment`.
- `extension`: `String` — Extension of the `Attachment` `File`.
- `size`: `BigInt` — Size of the `Attachment` `File` in bytes.
- `downloadUrl` (`validityInDays`: `Int`, `permanent`: `Boolean`): `Url` — Signed `Url` to download the original `AssetAttachment` from Frontify.

## Reach via

Example queries that can return this type from the root `Query`.

### `assets › attachments`

```graphql
query AssetsAttachments {
  assets(ids: "…") {
    attachments {
      __typename
      createdAt
      creator {
        __typename
        name
        id
      }
      downloadUrl
      extension
      externalId
      filename
      id
      modifiedAt
      modifier {
        __typename
        name
        id
      }
      name
      size
      type
    }
  }
}
```

Raw: [`AssetsAttachments.sdl`](../examples/AssetsAttachments.sdl)

### `asset › attachments`

```graphql
query AssetAttachments {
  asset(id: "…") {
    attachments {
      __typename
      createdAt
      creator {
        __typename
        name
        id
      }
      downloadUrl
      extension
      externalId
      filename
      id
      modifiedAt
      modifier {
        __typename
        name
        id
      }
      name
      size
      type
    }
  }
}
```

Raw: [`AssetAttachments.sdl`](../examples/AssetAttachments.sdl)
