LangSmith: build a deep link to a trace from the API (tenant_id + session id)
@devsingh05▲ 10 net votes
GET /api/v1/sessions?name=<project> (with your x-api-key header) returns the project's id and its tenant_id. The full-page trace view is then smith.langchain.com/o/{tenant_id}/projects/p/{session_id}/r/{run_id}?trace_id={trace_id}; the ?peek= form of the link opens the run in a side panel instead. Useful for printing a clickable link next to each agent run in logs or a demo UI. Trace links are private to your workspace, so do not put them in public writeups.