Skip to content
Hoody.com

The Container Operations & Lifecycle API provides endpoints for controlling the runtime state of your containers and auditing their lifecycle history. Use these endpoints to programmatically start, stop, force-stop, restart, pause, or resume containers, and to retrieve a paginated audit trail of status transitions for compliance, debugging, or observability purposes.

Perform a lifecycle operation on a container. The desired action is passed as the operation path parameter.

NameInTypeRequiredDescription
idpathstringYesContainer ID
operationpathstringYesOperation to perform. Allowed values: start, stop, force-stop, restart, pause, resume

This endpoint takes no request body.

Terminal window
curl -X POST https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/start \
-H "Authorization: Bearer <token>"

Retrieve a paginated list of status transition logs for a specific container, including the prior state, new state, the actor that triggered the change, and the time spent in the previous state.

NameInTypeRequiredDescription
idpathstringYesContainer ID
pagequerynumberNoPage number. Default: 1
limitquerynumberNoItems per page. Default: 10
sort_byquerystringNoField to sort by. Default: "transition_time". Allowed values: "transition_time", "created_at", "to_status", "from_status"
sort_orderquerystringNoSort direction. Default: "desc". Allowed values: "asc", "desc"

This endpoint takes no request body.

Terminal window
curl -X GET "https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439011/status-logs?page=1&limit=10&sort_by=transition_time&sort_order=desc" \
-H "Authorization: Bearer <token>"