API Tester
Testing the API
Using the API Tester
The API Tester is a simple interface in the Triage section of your account dashboard that allows you to test the Triage API without needing to set up an external client. You can input a ticket subject and body, then submit it to see how the AI assigns it to your configured teams. This is a great way to validate your team configurations and understand how the AI is interpreting your tickets before integrating with your actual ticketing system. You can also choose the copy as curl option to see an example of how to call the API from your own codebase or terminal.
Example Request
bash
curl -X POST https://api.layer8labs.io/triage/test \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Login failure on prod",
"severity": "high",
"source": "pagerduty"
}'