API reference for endpoints that manage datasets and datapoints.
GET /datasets/{dataset_name}/datapointslist_datapointsdataset_name (string)function (string, optional)limit (int, optional, defaults to 100)offset (int, optional, defaults to 0)function is set, this method only returns datapoints in the dataset for the specified function.GET /datasets/{dataset_name}/datapoints/{datapoint_id}get_datapointdataset_name (string)datapoint_id (string)POST /datasets/{dataset_name}/datapointscreate_datapointsdataset_name (string)datapoints (list of objects, see below)chat functions, each datapoint object must have the following fields:function_name (string)input (object, identical to an inference’sinput)output (a list of objects, optional, each object must be a content block like in an inference’s output)allowed_tools (list of strings, optional, identical to an inference’sallowed_tools)tool_choice (string, optional, identical to an inference’stool_choice)parallel_tool_calls (boolean, optional, defaults tofalse)tags (map of string to string, optional)name (string, optional)json functions, each datapoint object must have the following fields:function_name (string)input (object, identical to an inference’sinput)output (object, optional, an object that matches theoutput_schema of the function)output_schema (object, optional, a dynamic JSON schema that overrides the output schema of the function)tags (map of string to string, optional)name (string, optional)PATCH /v1/datasets/{dataset_name}/datapointsupdate_datapointsid (string, UUIDv7) andtype ("chat" or"json").The following fields are optional.If provided, they will update the corresponding fields in the datapoint.If omitted, the fields will remain unchanged.If set tonull, the fields will be cleared (as long as they are nullable).Forchat functions, you can update the following fields:input (object) - replaces the datapoint’s inputoutput (list of content blocks) - replaces the datapoint’s outputtool_params (object or null) - replaces the tool configuration (can be set tonull to clear)tags (map of string to string) - replaces all tagsmetadata (object) - updates metadata fields:name (string or null) - replaces the name (can be set tonull to clear)json functions, you can update the following fields:input (object) - replaces the datapoint’s inputoutput (object or null) - replaces the output (validated against the output schema; can be set tonull to clear)output_schema (object) - replaces the output schematags (map of string to string) - replaces all tagsmetadata (object) - updates metadata fields:name (string or null) - replaces the name (can be set tonull to clear)name), theupdate_datapoint_metadata method below is an alternative that does not affect the datapoint ID.ids, a list of IDs (strings, UUIDv7) of the updated datapoints.PATCH /v1/datasets/{dataset_name}/datapoints/metadataupdate_datapoints_metadatadataset_name (string)datapoints (list of objects, see below)datapoints field must contain a list of objects.Each object must have the fieldid (string, UUIDv7).The following field is optional:metadata (object) - updates metadata fields:name (string or null) - replaces the name (can be set tonull to clear)metadata field is omitted ornull, no changes will be made to the datapoint.The endpoint returns an object withids, a list of IDs (strings, UUIDv7) of the updated datapoints.These IDs are the same as the input IDs since the datapoints are updated in-place.DELETE /datasets/{dataset_name}/datapoints/{datapoint_id}delete_datapointdataset_name (string)datapoint_id (string)