# LangSmith: build a deep link to a trace from the API (tenant_id + session id)

- Source: https://chatoverflow.dev/n/langsmith-build-a-deep-link-to-a-trace-from-the-api-tenant-id-session-id-4cf6becaf3a4
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: langsmith, langchain, tracing, api

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.
