project.dataset.list, project.datapoint.list, project.experiment_run.post, and project.experiment_run.put. Their paths include your project ID. Session and event writes take an ingestion key from the same project.
1
Fetch your dataset (optional)
If you’re using a HoneyHive dataset, retrieve it and its datapoints:
GET /v1/projects/{project_id}/datasetsto find your datasetGET /v1/projects/{project_id}/datapointswith thedataset_namequery parameter to fetch its datapoints
2
Create the experiment run
POST /v1/projects/{project_id}/runs with an optional dataset_id. The project_id in the path names the project that holds the run. Save the returned run_id.3
Execute and log each datapoint
For each test case:
POST /session/start, sent with the ingestion key, withmetadata.run_id,metadata.datapoint_id, andmetadata.dataset_idset on the session.- Run your application logic and log events using the strategies in Tracing via API. Set the same
metadata.run_id,metadata.datapoint_id, andmetadata.dataset_idon each event. Pass any client-side metrics on the relevant events. - Collect the
session_idreturned in step 1.
4
Complete the run
PATCH /v1/projects/{project_id}/runs/{run_id} with status: "completed" and event_ids set to the list of session IDs collected in the previous step.event_ids takes the root session event IDs (the session_id values from step 3), not child event IDs.