Skip to main content
GET
/
api
/
v1
/
analytics
/
agents
/
{agentId}
/
latest-failure
Get the most recent failed run for an agent
curl --request GET \
  --url https://dashboard.sequentum.com/api/v1/analytics/agents/{agentId}/latest-failure \
  --header 'Authorization: Bearer <token>'
{
  "runId": 123,
  "agentId": 123,
  "agentName": "<string>",
  "status": 0,
  "errorMessage": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "runtimeSeconds": 123,
  "stats": {
    "dataCount": 123,
    "inputCount": 123,
    "errorCount": 123,
    "pageCount": 123,
    "exportCount": 123,
    "traffic": 123
  },
  "possibleCauses": [
    "<string>"
  ],
  "suggestedActions": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequentum.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"

Authorization
string
header
required

OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"

Path Parameters

agentId
integer<int32>
required

The ID of the agent

Response

Returns the run diagnostics

Response model for run diagnostics (why a run failed)

runId
integer<int64>
agentId
integer<int32>
agentName
string | null
status
enum<integer>
Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
errorMessage
string | null
startTime
string<date-time> | null
endTime
string<date-time> | null
runtimeSeconds
integer<int32> | null
stats
object

Run statistics

possibleCauses
string[] | null

Possible failure reasons based on status and error message

suggestedActions
string[] | null

Suggested actions to resolve the issue