# `Codex.Files.Attachment`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/files.ex#L10)

Represents a staged file attachment.

# `t`

```elixir
@type t() :: %Codex.Files.Attachment{
  checksum: String.t(),
  id: String.t(),
  inserted_at: DateTime.t(),
  name: String.t(),
  path: Path.t(),
  persist: boolean(),
  size: non_neg_integer(),
  ttl_ms: ttl()
}
```

# `ttl`

```elixir
@type ttl() :: :infinity | non_neg_integer()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
