Python
import requests
url = "https://app.langwatch.ai/api/trace/{id}/share"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"path": "<string>"
}Traces
Create public path for single trace
Returns a public path for a trace
POST
/
api
/
trace
/
{id}
/
share
Python
import requests
url = "https://app.langwatch.ai/api/trace/{id}/share"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"path": "<string>"
}Authorizations
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
ID of trace to share
Response
Public path created
Was this page helpful?
⌘I