# snap_data

Python API: `depthai_nodes.message.snap_data`

## Classes

### SnapData

DepthAI-compatible message for representing a single snap event.

#### Methods

##### init

```python
def __init__(snap_name: str, file_group: dai.FileGroup, tags: list[str] | None = None, extras: dict[str, str] | None = None):
```

Create a snap payload for the Hub Events API.

> **Note**
> Non-empty tag lists and metadata dictionaries are stored by reference, not copied.

Parameters

 * `snap_name` (`str`): Logical event name.
 * `file_group` (`dai.FileGroup`): Image and associated files to upload.
 * `tags` (`list[str] | None`): Optional event tags; defaults to an empty list.
 * `extras` (`dict[str, str] | None`): Optional string metadata; defaults to an empty dictionary.

#### Attributes

##### extras

Additional metadata.

##### file_group

Object containing the snap image and associated data.

##### snap_name

Logical name of the snap.

##### tags

Optional list of tags to include.
