Overview
Terminal log endpoints provide access to command execution history, including stdin, stdout, and stderr streams from Docker containers used during penetration testing.Get All Terminal Logs
Retrieve a list of terminal logs with optional filtering.Query Parameters
Page number for pagination
Number of logs per page (max: 1000)
Sort field:
id, type, created_atSort order:
asc or descSearch filter applied to log text and type
Request Example
Response
Array of terminal log entries
Total number of logs matching the query
Get Terminal Logs by Flow
Retrieve terminal logs for a specific flow.Path Parameters
Unique identifier of the flow
Query Parameters
Same as “Get All Terminal Logs” endpoint.Request Example
Response
Same structure as “Get All Terminal Logs” response, filtered to the specified flow.Terminal Log Object
Unique identifier for the log entry
Stream type:
stdin, stdout, or stderrLog content (command or output)
ID of the container where the command was executed
ID of the parent flow
ID of the associated task (if any)
ID of the associated subtask (if any)
ISO 8601 timestamp when the log was created
Log Types
stdin
Commands sent to the terminal for execution.stdout
Standard output from command execution.stderr
Error output from command execution.Filtering Examples
Filter by Command Type
Show only commands (stdin):Search Log Content
Search for specific text in logs:Filter by Task
Get logs for a specific task:Error Responses
400 Bad Request
403 Forbidden
404 Not Found
Permissions
To access terminal logs, users must have:termlogs.view- View logs for flows owned by the usertermlogs.admin- View all logs (admin only)
Best Practices
Terminal logs can be verbose. Use appropriate
limit and pagination to manage large result sets.Related Endpoints
Containers API
View container information and status
GET /api/v1/flows/:flowID/containersGraphQL Terminal Logs
Access terminal logs via GraphQL with real-time subscriptions