Skip to content

Get a single command-execution-result by id

GET
/command-execution-results/{id}
id
required
string

DocumentId

OK

object
data
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

Missing or invalid authentication

Not authorized (tenant scope or capability)

Not found