Get target execution
- GET
- /workspaces
- /:workspace
- /targets
- /:target_id
- /execs
- /:exec_id
Get the status of a single execution.
Request example
CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/targets/:target_id/execs/:exec_id" \
-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,
"bytes_out": 156,
"truncated": false
}STATUS
200 OK