Connect LangSmith
Forward LangSmith run data to Obsivara by pointing the LangSmith webhook at the Obsivara ingest endpoint.
Configure the webhook
In your LangSmith project settings, add a webhook that posts to:
https://api.obsivara.com/ingest/webhook/langsmith?asset_id=my-langsmith-agentAdd the header:
Authorization: Bearer obs_live_YOUR_KEYLangSmith will POST a run payload to Obsivara each time a run completes. Obsivara maps the LangSmith run id to a stable internal UUID automatically — you do not need to manage ID translation.
Accepted payload shape
Obsivara reads the following fields from the LangSmith webhook payload. All other fields are ignored.
| Field | Type | Description |
|---|---|---|
id | string | LangSmith run ID (mapped to a stable UUID) |
name | string | Run / chain name |
inputs | object | Input data passed to the chain |
outputs | object | Output data returned by the chain |
status | string | Run outcome (success, error, etc.) |
total_tokens | number | Total tokens consumed |
total_cost | number | Total cost in USD |
Example payload:
{
"id": "run_abc123",
"name": "Support chain",
"inputs": { "question": "where is my order?" },
"outputs": { "answer": "Your order ships in 2 days." },
"status": "success",
"total_tokens": 420,
"total_cost": 0.0052
}Asset attribution
Pass ?asset_id= as a query parameter on the webhook URL to group runs under a named asset in the Obsivara dashboard. For example:
https://api.obsivara.com/ingest/webhook/langsmith?asset_id=support-agentAll runs forwarded via this URL will appear under the support-agent asset.
Test the connection
You can test the endpoint manually with curl before wiring up LangSmith:
curl -X POST "https://api.obsivara.com/ingest/webhook/langsmith?asset_id=my-langsmith-agent" \
-H "Authorization: Bearer obs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "run_abc123",
"name": "Support chain",
"inputs": { "question": "where is my order?" },
"outputs": { "answer": "Your order ships in 2 days." },
"status": "success",
"total_tokens": 420,
"total_cost": 0.0052
}'A successful response is HTTP 202:
{ "source": "langsmith", "accepted": 1, "rejected": 0, "errors": [] }Verify it worked
After triggering a LangSmith run, open the Obsivara dashboard and find your asset. Runs typically appear within one minute. See Verify it worked for a full walkthrough.