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.
Send a test fire
Send this automation's message to the destination it is configured with, so you can confirm it arrives. Nothing is recorded as a fire.
Try this endpoint
app.langwatch.ai
API key · X-Auth-Token
Kept in this tab. Cleared when you reload.
This sends a live request to app.langwatch.ai.
Request and response examples
request.py
import osimport requestsorigin = "https://app.langwatch.ai"path = "/api/v1/triggers/<triggerId>/test-fire"api_key = os.environ["LANGWATCH_API_KEY"]headers = { "X-Auth-Token": api_key,}response = requests.post( origin + path, headers=headers,)print(response.json())const url = "https://app.langwatch.ai/api/v1/triggers/<triggerId>/test-fire";const response = await fetch(url, { method: "POST", headers: { "X-Auth-Token": process.env.LANGWATCH_API_KEY!, },});const data = await response.json();curl --request POST \ --url 'https://app.langwatch.ai/api/v1/triggers/<triggerId>/test-fire' \ --header "X-Auth-Token: $LANGWATCH_API_KEY"Call the LangWatch API from this project.Request: POST https://app.langwatch.ai/api/v1/triggers/<triggerId>/test-fireReference: https://langwatch.ai/docs/api-reference/triggers/action-test-fire.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.Success
application/json · Generated from schema
{ "channel": "email", "recipientCount": 0, "usedDefault": false, "missingVariables": [ "string" ], "errors": [ "string" ], "httpStatus": 0}Not Found
application/json · Generated from schema
{ "error": "string", "message": "string"}Path parameters
triggerIdstringrequiredAt least 1 character
Responses
200Success
application/json
channelstringrequiredOne of
"email""slack""webhook"recipientCountnumberrequiredusedDefaultbooleanrequiredWhether the LangWatch default message was rendered because this automation states no template of its own.
missingVariablesstring[]requirederrorsstring[]requiredhttpStatusnumberWebhook only: what the endpoint answered with.
404Not Found
application/json
errorstringrequiredmessagestring