AssetService
Chatto exposes this service below /api/connect.
Shared message and enum definitions are documented in Shared Types And Enums.
AssetService
Section titled “AssetService”Reads room-scoped asset metadata and freshly signed asset URLs.
GetAsset
Section titled “GetAsset”Reads one asset. Authentication and room membership are required. Returns NOT_FOUND when the asset is missing, deleted, or owned by a different room.
POST /api/connect/chatto.api.v1.AssetService/GetAssetInput: GetAssetRequest
Section titled “Input: GetAssetRequest”Request to read one room-scoped asset with freshly signed URLs.
| Field | Type | Description |
|---|---|---|
room_id | string | Required. Room that owns the asset. |
asset_id | string | Required. Asset ID. |
thumbnail | ImageTransformOptions | Thumbnail URL options. Defaults are applied when absent. |
Result: GetAssetResponse
Section titled “Result: GetAssetResponse”Response containing one room-scoped asset.
| Field | Type | Description |
|---|---|---|
asset | Asset | Asset metadata and signed URLs. |
BatchGetAssets
Section titled “BatchGetAssets”Reads many assets in one room. Authentication and room membership are required. Missing, deleted, and wrong-room asset IDs are omitted. Results preserve first-seen request order and repeated asset IDs are de-duplicated.
POST /api/connect/chatto.api.v1.AssetService/BatchGetAssetsInput: BatchGetAssetsRequest
Section titled “Input: BatchGetAssetsRequest”Request to read many room-scoped assets with freshly signed URLs.
| Field | Type | Description |
|---|---|---|
room_id | string | Required. Room that owns the assets. |
asset_ids | repeated string | Required. Asset IDs. Missing, deleted, and wrong-room asset IDs are omitted. |
thumbnail | ImageTransformOptions | Thumbnail URL options. Defaults are applied when absent. |
Result: BatchGetAssetsResponse
Section titled “Result: BatchGetAssetsResponse”Response containing room-scoped assets.
| Field | Type | Description |
|---|---|---|
assets | repeated Asset | Assets in first-seen request order. |