Jan 5, 2024
Core APIs
Create a Datastore
Initializes storage for your client data to train a recommendation model
4.1 Create a Datastore
Initializes storage for your client data.
Endpoint
Payload (JSON):
Supported Formats:
profiles
: Parquet, CSV with headerinteractions
: JSONLines, CSVcontent
: CSV, Parquet
Validation Rules:
Profiles: must include
user_id
(string), at least one static feature (e.g.age
,region
).Interactions: require
user_id
,item_id
,timestamp
(ISO-8601), optionalevent_type
&value
.Content:
item_id
, descriptive features (e.g.title
,category
, numeric vectors).
Successful Response (201):
Field | Type | Description |
datastore_id | string | Unique ID for subsequent calls. |
status | string |
|
ingest_errors | array | Validation failures (if any). |
Examples