Python
import requests
url = "https://app.langwatch.ai/api/triggers/{id}/test-fire"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/triggers/{id}/test-fire', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.langwatch.ai/api/triggers/{id}/test-fire \
--header 'X-Auth-Token: <api-key>'{
"channel": "email",
"recipientCount": 123,
"usedDefault": true,
"missingVariables": [
"<string>"
],
"errors": [
"<string>"
],
"httpStatus": 123
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Triggers
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.
POST
/
api
/
triggers
/
{id}
/
test-fire
Python
import requests
url = "https://app.langwatch.ai/api/triggers/{id}/test-fire"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/triggers/{id}/test-fire', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.langwatch.ai/api/triggers/{id}/test-fire \
--header 'X-Auth-Token: <api-key>'{
"channel": "email",
"recipientCount": 123,
"usedDefault": true,
"missingVariables": [
"<string>"
],
"errors": [
"<string>"
],
"httpStatus": 123
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<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
Response
Test fire sent
Available options:
email, slack, webhook Whether the LangWatch default message was rendered because this automation states no template of its own.
Webhook only: what the endpoint answered with.
Last modified on September 30, 2026
Was this page helpful?