Skip to content
Hoody.com

This page covers the control-plane endpoints used to perform lifecycle actions on a container and to inspect the history of those actions. Use the manage endpoint to start, stop, restart, pause, or resume a container, and use the status logs endpoint to retrieve a paginated audit trail of every state transition the container has gone through.

All requests on this page are scoped to a single container, identified by its 24-character hexadecimal container ID in the URL.

Perform a lifecycle operation on a container. Supported operations include start, stop, force-stop, restart, pause, and resume.

The operation is encoded as a path segment rather than a body field, which keeps each operation idempotent and cacheable at the HTTP layer.

NameInTypeRequiredDescription
idpathstringYesContainer ID
operationpathstringYesOne of: start, stop, force-stop, restart, pause, resume

This endpoint accepts no request body.

Terminal window
curl -X POST "https://api.hoody.com/api/v1/containers/507f1f77bcf86cd799439011/start" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
{
"statusCode": 200,
"message": "Container operation completed successfully",
"data": {
"error": false,
"operation": "start",
"container_id": "507f1f77bcf86cd799439011",
"project_id": "507f1f77bcf86cd799439033",
"message": "Container started successfully",
"status": "running"
}
}

Retrieve a paginated list of status transition logs for a specific container. Each log entry records a single state transition (for example, stopped -> running), who or what triggered it, when it occurred, and how long the previous state lasted.

Use this endpoint to audit lifecycle activity, debug unexpected restarts, or render a transition timeline in a dashboard.

NameInTypeRequiredDescription
idpathstringYesContainer ID
pagequerynumberNoPage number (default 1)
limitquerynumberNoNumber of items per page (default 10)
sort_byquerystringNoField to sort by. One of transition_time, created_at, to_status, from_status (default transition_time)
sort_orderquerystringNoSort direction. One of asc, desc (default desc)

This endpoint accepts no request body.

Terminal window
curl -X GET "https://api.hoody.com/api/v1/containers/507f1f77bcf86cd799439011/status-logs?page=1&limit=10&sort_by=transition_time&sort_order=desc" \
-H "Authorization: Bearer <token>"
{
"statusCode": 200,
"message": "Container status logs retrieved successfully",
"data": {
"logs": [
{
"id": "507f1f77bcf86cd799439077",
"container_id": "507f1f77bcf86cd799439011",
"from_status": "stopped",
"to_status": "running",
"transition_time": "2025-01-15T10:30:00.000Z",
"duration_ms": 3500,
"triggered_by": "user",
"metadata": {
"command": "start"
}
},
{
"id": "507f1f77bcf86cd799439078",
"container_id": "507f1f77bcf86cd799439011",
"from_status": null,
"to_status": "stopped",
"transition_time": "2025-01-15T10:29:55.000Z",
"duration_ms": null,
"triggered_by": "system",
"metadata": null
}
],
"pagination": {
"total": 15,
"page": 1,
"limit": 10,
"totalPages": 2
}
}
}