Get a single task by id
GET
/workspaces/{id}/tasks/{tid}
const url = 'https://your-org.evershell.ai/v1/workspaces/example/tasks/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://your-org.evershell.ai/v1/workspaces/example/tasks/example \ --header 'Authorization: Bearer <token>'Permissions: workspace:read or workspace:read:own
(creator-match on :own).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
tid
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
string
org_id
string
workspace_id
required
string
description
string
status
required
Lifecycle: submitted → delivered (handed to the agent)
→ running → optional compacting interludes → terminal
completed / failed / cancelled. delivery_failed is
a separate terminal state when the agent never accepted
the task (typically unreachable pod).
string
created_at
required
string format: date-time
completed_at
string format: date-time
duration_seconds
Wall-clock duration in seconds, populated once the task reaches a terminal status. Server-derived from (completed_at − created_at).
number
reason
string
Example
{ "id": "task_01HZ", "status": "submitted"}Resource not found in the caller’s org
Media type application/json
object
error
required
object
code
required
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
string
message
required
Human-readable summary
string
request_id
required
Server-generated request id for correlating logs
string
details
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
key
additional properties
any
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}