curl --request POST \
--url https://api.orq.ai/v2/datasets/{dataset_id}/datapoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"inputs": {},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"expected_output": "<string>"
}
]
'[
{
"_id": "<string>",
"workspace_id": "<string>",
"dataset_id": "<string>",
"inputs": {},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"expected_output": "<string>",
"evaluations": [
{
"id": "<string>",
"evaluation_type": "human_review",
"human_review_id": "<string>",
"reviewed_by_id": "<string>",
"type": "string",
"value": "<string>",
"source": "orq",
"reviewed_at": "2025-12-23T20:49:24.384Z"
}
],
"snapshot_version": "<string>",
"created_by_id": "<string>",
"updated_by_id": "<string>",
"created": "2025-12-23T20:49:10.444Z",
"updated": "2025-12-23T20:49:10.445Z"
}
]Creates a new datapoint in the specified dataset.
curl --request POST \
--url https://api.orq.ai/v2/datasets/{dataset_id}/datapoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"inputs": {},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"expected_output": "<string>"
}
]
'[
{
"_id": "<string>",
"workspace_id": "<string>",
"dataset_id": "<string>",
"inputs": {},
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"expected_output": "<string>",
"evaluations": [
{
"id": "<string>",
"evaluation_type": "human_review",
"human_review_id": "<string>",
"reviewed_by_id": "<string>",
"type": "string",
"value": "<string>",
"source": "orq",
"reviewed_at": "2025-12-23T20:49:24.384Z"
}
],
"snapshot_version": "<string>",
"created_by_id": "<string>",
"updated_by_id": "<string>",
"created": "2025-12-23T20:49:10.444Z",
"updated": "2025-12-23T20:49:10.445Z"
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the dataset
1 - 5000 elementsThe inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
Show child attributes
A list of messages comprising the conversation so far
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
Show child attributes
Datapoints created successfully. Returns an array of newly created datapoint objects.
The unique identifier of the dataset item
The unique identifier of the workspace it belongs to
The unique identifier of the dataset
The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
Show child attributes
A list of messages comprising the conversation so far
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
Show child attributes
Evaluations associated with the datapoint
Show child attributes
The version of the dataset snapshot
The unique identifier of the user who created the dataset
The unique identifier of the user who last updated the dataset
The date and time the resource was created
The date and time the resource was last updated
Was this page helpful?