Submit a follow-up task on an existing workspace
const url = 'https://your-org.evershell.ai/v1/workspaces/example/tasks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","reset_session":true,"thinking_effort":"example","max_continuations":1,"max_context_tokens":1,"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-org.evershell.ai/v1/workspaces/example/tasks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "reset_session": true, "thinking_effort": "example", "max_continuations": 1, "max_context_tokens": 1, "metadata": {} }'Permissions: tasks:write or tasks:write:own
(creator-match on :own).
Accepts JSON or multipart/form-data — multipart adds a
repeatable file field for task uploads, same as
POST /tasks. Set reset_session: true to start the task
with a fresh agent session (discards prior conversation
context).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
object
Example generated
{ "description": "example", "reset_session": true, "thinking_effort": "example", "max_continuations": 1, "max_context_tokens": 1, "metadata": {}}object
Repeatable file part — same upload semantics as POST /tasks.
Responses
Section titled “ Responses ”Accepted
object
Example
{ "task_id": "task_01HZ", "workspace_id": "ws_01HZ", "status": "submitted"}Validation failure
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Resource not found in the caller’s org
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}workspace_archived, workspace_not_ready, or
task_already_running — workspace already has an
active task; cancel it before submitting a new one.
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Tenant is past_due, decommissioning, or trial-expired
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Per-org rate limit exceeded
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Headers
Section titled “Headers ”Seconds until the bucket refills