Skip to contentSkip to page list

Docs

Create records in a dataset in batch

Create records in a dataset in batch

POST/api/v1/dataset/{slugOrId}/records
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/dataset/<slugOrId>/records"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,    "Content-Type": "application/json",}payload = {    "entries": [        {},    ],}​response = requests.post(    origin + path,    headers=headers,    json=payload,)print(response.json())

Success

application/json · Generated from schema

{  "data": [    {      "id": "string",      "datasetId": "string",      "projectId": "string",      "entry": {},      "createdAt": "2026-01-01T00:00:00Z",      "updatedAt": "2026-01-01T00:00:00Z"    }  ]}
api-reference/datasets/action-records

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path parameters

slugOrIdstringrequired

Request body

application/json · Required

entriesobject[]required

Responses

201

Success

application/json

dataobject[]required
idstringrequired
At least 1 character
datasetIdstringrequired
At least 1 character
projectIdstringrequired
At least 1 character
entryobjectrequired
createdAtstring (date-time)required
updatedAtstring (date-time)required

Documentation