curl -X POST https://api.deeptrace.com/api/v1/investigate \
-H "X-API-Key: dt_your_key_here" \
-H "Content-Type: application/json" \
-d '{"query": "Why are we seeing 500 errors on /checkout?"}'
import requests
response = requests.post(
"https://api.deeptrace.com/api/v1/investigate",
headers={"X-API-Key": "dt_your_key_here"},
json={"query": "Why are we seeing 500 errors on /checkout?"}
)
data = response.json()
print(data["investigation_id"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/investigate",
{
method: "POST",
headers: {
"X-API-Key": "dt_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "Why are we seeing 500 errors on /checkout?",
}),
}
);
const data = await response.json();
console.log(data.investigation_id);
{
"investigation_id": "d2ce1b29-f36a-43f0-9a96-c73a167b59f8",
"status": "processing"
}
API
Trigger Investigation
Start a new Deeptrace investigation asynchronously
POST
/
api
/
v1
/
investigate
curl -X POST https://api.deeptrace.com/api/v1/investigate \
-H "X-API-Key: dt_your_key_here" \
-H "Content-Type: application/json" \
-d '{"query": "Why are we seeing 500 errors on /checkout?"}'
import requests
response = requests.post(
"https://api.deeptrace.com/api/v1/investigate",
headers={"X-API-Key": "dt_your_key_here"},
json={"query": "Why are we seeing 500 errors on /checkout?"}
)
data = response.json()
print(data["investigation_id"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/investigate",
{
method: "POST",
headers: {
"X-API-Key": "dt_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "Why are we seeing 500 errors on /checkout?",
}),
}
);
const data = await response.json();
console.log(data.investigation_id);
{
"investigation_id": "d2ce1b29-f36a-43f0-9a96-c73a167b59f8",
"status": "processing"
}
Start a new investigation. Returns an
investigation_id immediately — the investigation runs in the background. Poll Get Investigation for results.
Headers
string
required
Body
string
required
The investigation prompt. Describe the issue you want Deeptrace to investigate.
curl -X POST https://api.deeptrace.com/api/v1/investigate \
-H "X-API-Key: dt_your_key_here" \
-H "Content-Type: application/json" \
-d '{"query": "Why are we seeing 500 errors on /checkout?"}'
import requests
response = requests.post(
"https://api.deeptrace.com/api/v1/investigate",
headers={"X-API-Key": "dt_your_key_here"},
json={"query": "Why are we seeing 500 errors on /checkout?"}
)
data = response.json()
print(data["investigation_id"])
const response = await fetch(
"https://api.deeptrace.com/api/v1/investigate",
{
method: "POST",
headers: {
"X-API-Key": "dt_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "Why are we seeing 500 errors on /checkout?",
}),
}
);
const data = await response.json();
console.log(data.investigation_id);
Returns
Returns the newly created investigation with its ID and initial status.{
"investigation_id": "d2ce1b29-f36a-43f0-9a96-c73a167b59f8",
"status": "processing"
}
string
required
UUID of the created investigation. Use this to poll Get Investigation for results.
string
required
processing