Get Task
GET
/api/tasks/{task_id}
const url = 'https://kelpie.example.com/api/tasks/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://kelpie.example.com/api/tasks/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”task_id
required
Task Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Task
object
id
required
Id
string
service_id
required
Service Id
string
image
required
Image
string
desired_state
required
Desired State
string
state
required
State
string
updated_at
required
Updated At
string format: date-time
Example generated
{ "id": "example", "service_id": "example", "node_id": "example", "node": "example", "slot": 1, "image": "example", "desired_state": "example", "state": "example", "message": "example", "error": "example", "exit_code": 1, "container_id": "example", "updated_at": "2026-04-15T12:00:00Z"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}