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.
Recommended trace wait for a scenario judge
How long a scenario judge should wait for this project's traces before a verdict: the first wait, the one extension it may ask for, and how long the span set must hold still. Measured on the project's own ingest; defaults without history.
Try this endpoint
app.langwatch.ai
API key · X-Auth-Token
Kept in this tab. Cleared when you reload.
The response appears below.
Request and response examples
import osimport requestsorigin = "https://app.langwatch.ai"path = "/api/v1/traces/settle-settings"api_key = os.environ["LANGWATCH_API_KEY"]headers = { "X-Auth-Token": api_key,}response = requests.get( origin + path, headers=headers,)print(response.json())const url = "https://app.langwatch.ai/api/v1/traces/settle-settings";const response = await fetch(url, { method: "GET", headers: { "X-Auth-Token": process.env.LANGWATCH_API_KEY!, },});const data = await response.json();curl --request GET \ --url 'https://app.langwatch.ai/api/v1/traces/settle-settings' \ --header "X-Auth-Token: $LANGWATCH_API_KEY"Call the LangWatch API from this project: Recommended trace wait for a scenario judge.Request: GET https://app.langwatch.ai/api/v1/traces/settle-settingsReference: https://langwatch.ai/docs/api-reference/traces/recommended-trace-wait-for-a-scenario-judge.mdAuthentication: send the X-Auth-Token header, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.The recommended wait, extension and quiet period, in milliseconds
application/json · Generated from schema
{ "waitTimeoutMs": 0, "waitExtensionMs": 0, "quietPeriodMs": 0}Bad Request
application/json · Generated from schema
{ "error": "string", "message": "string"}Unauthorized
application/json · Generated from schema
{ "error": "string", "message": "string"}Unprocessable Entity
application/json · Generated from schema
{ "error": "string", "message": "string"}Internal Server Error
application/json · Generated from schema
{ "error": "string", "message": "string"}Responses
200The recommended wait, extension and quiet period, in milliseconds
application/json
waitTimeoutMsintegerrequiredwaitExtensionMsintegerrequiredquietPeriodMsintegerrequired400Bad Request
application/json
errorstringrequiredmessagestring401Unauthorized
application/json
errorstringrequiredmessagestring422Unprocessable Entity
application/json
errorstringrequiredmessagestring500Internal Server Error
application/json
errorstringrequiredmessagestring