curl --request GET \
--url https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"archived_at": "2023-11-07T05:31:56Z",
"background": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instructions": "<string>",
"name": "<string>",
"revision": 123,
"steps": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"has_more": false,
"next_cursor": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"error": "<string>",
"error_code": "<string>",
"errors": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"allowed_values": [
"<unknown>"
],
"input": "<string>"
}
],
"retryable": true,
"status": 123,
"suggestions": [
"<string>"
]
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}List Tasks
List the workspace’s registered tasks, oldest first.
curl --request GET \
--url https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ishlabs.io/api/v1/workspaces/{workspace_id}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"archived_at": "2023-11-07T05:31:56Z",
"background": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instructions": "<string>",
"name": "<string>",
"revision": 123,
"steps": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"has_more": false,
"next_cursor": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}{
"detail": "<string>",
"error": "<string>",
"error_code": "<string>",
"errors": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"allowed_values": [
"<unknown>"
],
"input": "<string>"
}
],
"retryable": true,
"status": 123,
"suggestions": [
"<string>"
]
}{
"detail": "<string>",
"request_id": "<string>",
"docs_url": "<string>"
}Authorizations
Workspace API key as a bearer token: Authorization: Bearer ish_sk_live_.... Keys are workspace-scoped machine principals minted in Settings > Developers (shown once at mint). Scopes: sessions:run (create a session, submit turns, close), sessions:read (read the session and its decision trace), environments:read and environments:write (manage the workspace's registered environments), tasks:read and tasks:write (manage the workspace's registered tasks), people:read and people:write (the people the workspace can run a session for), and usage:read (the workspace's own consumption, spend limits and rate-limit budgets). A key is minted with sessions:run, sessions:read, and tasks:read by default; every other scope must be requested, people:read and usage:read included. An ish user access token also works on the same header for personal scripts.
Path Parameters
Query Parameters
Include archived tasks. Off by default: archived rows stay readable by id but are hidden from the working list.
Response
Successful Response
Every task registered in the workspace, oldest first.
Deliberately unpaginated: a registered task is a hand-authored definition (a handful per workspace), not a stream.
Show child attributes
Show child attributes
Always false today: this list is not paginated and returns the whole collection. Present so pagination can land without a wire break.
Always null today (see has_more). Will carry the opaque keyset cursor for the next page if this list becomes paginated.