# `Chatto.Api.V1.AssetService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_api_v1_asset_service.ex#L3)

Reads room-scoped asset metadata and freshly signed asset URLs.

# `batch_get_assets`

```elixir
@spec batch_get_assets(Req.Request.t(), Chatto.Api.V1.BatchGetAssetsRequest.t()) ::
  {:ok, Chatto.Api.V1.BatchGetAssetsResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Reads many assets in one room. Authentication and room membership are
required. Assets also require message.read or a matching thread
relationship with message.read-interactions. Missing, deleted, wrong-room, and inaccessible asset
IDs are omitted. Results preserve first-seen request order, and repeated
asset IDs are de-duplicated.

# `get_asset`

```elixir
@spec get_asset(Req.Request.t(), Chatto.Api.V1.GetAssetRequest.t()) ::
  {:ok, Chatto.Api.V1.GetAssetResponse.t()} | {:error, Chatto.Connect.Error.t()}
```

Reads one asset. Authentication and room membership are required.
Assets also require message.read or a matching thread relationship with
message.read-interactions. Returns NOT_FOUND when the asset is missing,
deleted, or owned by a
different room.

---

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