## Add `data.add(strnamespace, DataAddParams**kwargs) -> DataAddResponse` **post** `/v1/data/{namespace}` Add data to a namespace. This method returns immediately; data is processed asynchronously. ### Parameters - `namespace: str` The namespace to ingest data into - `data: Data` A data object to ingest. Must have an id field. All other fields are flexible and can any JSON types. - `class DataDataObject: …` A data object to ingest. Must have an id field. All other fields are flexible and can any JSON types. - `id: str` Unique identifier for this data object. This should be a meaningful identifier in the customer's system, as it is the main way to search for specific items between systems. - `Iterable[DataDataObjectArray]` Array of data objects to ingest. - `id: str` Unique identifier for this data object. This should be a meaningful identifier in the customer's system, as it is the main way to search for specific items between systems. ### Returns - `class DataAddResponse: …` Response confirming data was accepted for asynchronous processing. The requestId can be used for debugging and tracking. - `request_id: str` Unique identifier for tracking this request. Data processing happens asynchronously after this response. - `status: Literal["accepted"]` Request was accepted for processing - `"accepted"` ### Example ```python import os from safetykit import Safetykit client = Safetykit( api_key=os.environ.get("SAFETYKIT_API_KEY"), # This is the default and can be omitted ) response = client.data.add( namespace="namespace", data={ "id": "user-12345" }, ) print(response.request_id) ```