cURL
curl --request POST \ --url https://api.lunary.ai/v1/datasets-v2/{datasetId}/items \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "input": "<string>", "groundTruth": "<string>", "output": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "datasetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "input": "<string>", "groundTruth": "<string>", "output": "<string>", "evaluatorResult1": {}, "evaluatorResult2": {}, "evaluatorResult3": {}, "evaluatorResult4": {}, "evaluatorResult5": {}, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Use a project private API key via Authorization: Bearer <key>.
Authorization: Bearer <key>
Created item