Submits external diagnosis session data (including input/output, timing, and additional fields) to the backend diagnosis table and generates API call logs
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The target deployment ID. Must belong to the current API key's workspace and be in active state
"dep_12345"
Diagnosis session data to be recorded
External diagnosis session identifier
"sess_789"
Business-defined status code, stored as integer
0
Session input/output content. At least one of input or output must be provided
Call latency in milliseconds
x >= 02450
Session start time, UNIX millisecond timestamp, must be non-negative
x >= 01720780800000
Session end time, UNIX millisecond timestamp, must be non-negative
x >= 01720780802450
Arbitrary JSON structure for additional information, stored as-is
{
"trace_id": "trc_abc",
"token_usage": {
"prompt_tokens": 200,
"completion_tokens": 150
}
}