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 header

    • interactions: JSONLines, CSV

    • content: CSV, Parquet


  • Validation Rules:

    • Profiles: must include user_id (string), at least one static feature (e.g. ageregion).

    • Interactions: require user_iditem_idtimestamp (ISO-8601), optional event_type & value.

    • Contentitem_id, descriptive features (e.g. titlecategory, numeric vectors).

Successful Response (201):


Field

Type

Description

datastore_id

string

Unique ID for subsequent calls.

status

string

ready (ingestion succeeded), error.

ingest_errors

array

Validation failures (if any).

Examples


Copyright Leora 2025 - All Right Reserved

Copyright Leora 2025 - All Right Reserved

Copyright Leora 2025 - All Right Reserved