List target executions
- GET
- /workspaces
- /:workspace
- /targets
- /:target_id
- /execs
List recent executions for the target (most recent first).
Request example
CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/targets/:target_id/execs" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json"
EXAMPLE RESPONSE
[
{
"url": "https://api.buddy.works/workspaces/my-workspace/targets/tg-b185vd3ct4chv/execs/9214386e-7633-4d2b-ac66-fcfbaf5ea99b",
"log_url": "https://api.buddy.works/workspaces/my-workspace/targets/tg-b185vd3ct4chv/execs/9214386e-7633-4d2b-ac66-fcfbaf5ea99b/log",
"execution_id": "9214386e-7633-4d2b-ac66-fcfbaf5ea99b",
"target_id": "tg-b185vd3ct4chv",
"target_type": "MYSQL",
"type": "COMMAND",
"invoker": {
"url": "https://api.buddy.works/workspaces/my-workspace/members/1",
"id": 1,
"name": "John Doe"
},
"command": "mysql sql=SELECT 1 AS ok, NOW() AS ts",
"started_at": "2026-05-28T08:00:09.820Z",
"finished_at": "2026-05-28T08:00:10.412Z",
"status": "SUCCESSFUL",
"exit_code": 0
},
{
"url": "https://api.buddy.works/workspaces/my-workspace/targets/tg-b185vd3ct4chv/execs/7a1e3b9c-2d4f-4e8a-9c5b-1f6d7e2a4b3c",
"log_url": "https://api.buddy.works/workspaces/my-workspace/targets/tg-b185vd3ct4chv/execs/7a1e3b9c-2d4f-4e8a-9c5b-1f6d7e2a4b3c/log",
"execution_id": "7a1e3b9c-2d4f-4e8a-9c5b-1f6d7e2a4b3c",
"target_id": "tg-b185vd3ct4chv",
"target_type": "MYSQL",
"type": "COMMAND",
"invoker": {
"url": "https://api.buddy.works/workspaces/my-workspace/members/1",
"id": 1,
"name": "John Doe"
},
"command": "mysql sql=SHOW TABLES",
"started_at": "2026-05-28T07:55:12.103Z",
"finished_at": "2026-05-28T07:55:12.711Z",
"status": "SUCCESSFUL",
"exit_code": 0
}
]STATUS
200 OK