Skip to main content
POST
/
api
/
dataset
/
{slug}
/
entries
Python
import requests

url = "https://app.langwatch.ai/api/dataset/{slug}/entries"

payload = { "entries": [
        {
            "input": "hi",
            "output": "Hello, how can I help you today?"
        }
    ] }
headers = {
    "X-Auth-Token": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())

Authorizations

X-Auth-Token
string
header
required

Path Parameters

slug
string
required

Body

application/json
entries
object[]
required
Example:
[
{
"input": "hi",
"output": "Hello, how can I help you today?"
}
]
⌘I