Skip to content

List command-execution-results

GET
/command-execution-results

Tracks per-agent execution results for remotely dispatched commands (F2.FLEET.07).

pagination[page]
integer
pagination[pageSize]
integer
filters

Strapi REST filter syntax

object
sort
string
populate
string

OK

object
data
Array
object
agent_id
required

Strapi documentId of the sencai-agent that executed the command.

string
agent_name

Hostname or display name of the agent (denormalized for display).

string
command_name
required

Name of the remote-command template that was dispatched.

string
command_rendered

Final command string after template argument substitution.

string
exit_code

Process exit code returned by the agent. null if not yet completed.

integer
stdout

Standard output captured from the executed command.

string
stderr

Standard error captured from the executed command.

string
duration_ms

Wall-clock execution duration in milliseconds.

integer
status

Lifecycle status of the execution. blocked = command was rejected by agent whitelist.

string
Allowed values: pending running completed failed blocked
dispatched_at

Timestamp when the command was dispatched to the agent.

string format: date-time
completed_at

Timestamp when the agent reported the final result.

string format: date-time
organisation
One of:

DocumentId reference to api::organisation.organisation

string
documentId
string
id
integer
createdAt
string format: date-time
updatedAt
string format: date-time
publishedAt
string format: date-time
nullable
meta
object
pagination
object
page
integer
pageSize
integer
pageCount
integer
total
integer

Missing or invalid authentication

Not authorized (tenant scope or capability)