curl --request GET \
--url https://melso.ai/api/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://melso.ai/api/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://melso.ai/api/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://melso.ai/api/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://melso.ai/api/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://melso.ai/api/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/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{
"tasks": [
{
"execution": {
"version": "<string>",
"harness": "<string>",
"model": "<string>",
"thinking_level": "<string>",
"service_tier": "<string>",
"worker_id": "<string>"
},
"id": "<string>",
"workspace_id": "<string>",
"number": 123,
"identifier": "<string>",
"title": "<string>",
"description": "<string>",
"status": "cancelled",
"delivered_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"creator_type": "<string>",
"creator_id": "<string>",
"parent_task_id": "<string>",
"area_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"origin_type": "<string>",
"metadata": {},
"isolated": true,
"execution_identity_id": "<string>",
"participant_member_ids": [
"<string>"
],
"participant_harnesses": [
"<string>"
],
"has_pending_interaction": true,
"has_active_run": true,
"has_paused_run": true,
"attention_reason": "<string>",
"failure_reason": "<string>",
"failure_class": "<string>",
"unread": true,
"viewer_participated": true,
"pull_request": {
"number": 123,
"state": "<string>",
"html_url": "<string>",
"additions": 123,
"deletions": 123,
"changed_files": 123,
"checks_rollup": "<string>"
},
"attachments": [
{
"id": "<string>",
"workspace_id": "<string>",
"task_id": "<string>",
"message_id": "<string>",
"run_id": "<string>",
"uploader_type": "<string>",
"uploader_id": "<string>",
"filename": "<string>",
"url": "<string>",
"download_url": "<string>",
"markdown_url": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"created_at": "<string>",
"attachment_download_url": "<string>"
}
],
"run_id": "<string>"
}
],
"total": 123
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}List tasks
Workspace member with access to this resource.
Request: Query: limit?: integer, offset?: integer, area_id?: UUID, creator_id?: UUID, status?: string, include_closed?: boolean, open_only?: boolean, metadata?: JSON object. status=done lists completed Tasks; other status values do not filter derived statuses. Default excludes closed Tasks. include_closed=true includes them; open_only=true bypasses pagination. Limit defaults to 100 and is capped at 100. Retired assignee/label/property filters return 400.
Response: {tasks:TaskResponse[],total:integer}.
Status: 200; 400 invalid filters. Authentication and resource-access errors follow Overview.
curl --request GET \
--url https://melso.ai/api/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://melso.ai/api/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://melso.ai/api/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://melso.ai/api/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://melso.ai/api/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://melso.ai/api/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/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{
"tasks": [
{
"execution": {
"version": "<string>",
"harness": "<string>",
"model": "<string>",
"thinking_level": "<string>",
"service_tier": "<string>",
"worker_id": "<string>"
},
"id": "<string>",
"workspace_id": "<string>",
"number": 123,
"identifier": "<string>",
"title": "<string>",
"description": "<string>",
"status": "cancelled",
"delivered_at": "<string>",
"completed_at": "<string>",
"cancelled_at": "<string>",
"creator_type": "<string>",
"creator_id": "<string>",
"parent_task_id": "<string>",
"area_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"origin_type": "<string>",
"metadata": {},
"isolated": true,
"execution_identity_id": "<string>",
"participant_member_ids": [
"<string>"
],
"participant_harnesses": [
"<string>"
],
"has_pending_interaction": true,
"has_active_run": true,
"has_paused_run": true,
"attention_reason": "<string>",
"failure_reason": "<string>",
"failure_class": "<string>",
"unread": true,
"viewer_participated": true,
"pull_request": {
"number": 123,
"state": "<string>",
"html_url": "<string>",
"additions": 123,
"deletions": 123,
"changed_files": 123,
"checks_rollup": "<string>"
},
"attachments": [
{
"id": "<string>",
"workspace_id": "<string>",
"task_id": "<string>",
"message_id": "<string>",
"run_id": "<string>",
"uploader_type": "<string>",
"uploader_id": "<string>",
"filename": "<string>",
"url": "<string>",
"download_url": "<string>",
"markdown_url": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"created_at": "<string>",
"attachment_download_url": "<string>"
}
],
"run_id": "<string>"
}
],
"total": 123
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.
Headers
Company UUID for a personal token on company-scoped operations. A company API key already binds its company.
Query Parameters
Optional area_id filter or control; see the operation contract.
Optional creator_id filter or control; see the operation contract.
Optional exclude_origin_type filter or control; see the operation contract.
Optional include_closed filter or control; see the operation contract.
Optional limit filter or control; see the operation contract.
Optional metadata filter or control; see the operation contract.
Optional offset filter or control; see the operation contract.
Optional open_only filter or control; see the operation contract.
Optional participated_only filter or control; see the operation contract.
Optional sort filter or control; see the operation contract.
Optional status filter or control; see the operation contract.
Optional top_level_only filter or control; see the operation contract.