curl --request POST \
--url https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": {
"in": [
"failed",
"partial_succeed"
]
},
"task_name": {
"in": [
"miner.system.reboot",
"miner.log.get"
]
},
"actor_type": {
"eq": "user"
},
"created_at": {
"gte": "2026-04-01T00:00:00Z"
},
"page": 1,
"limit": 50
}
'import requests
url = "https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search"
payload = {
"status": { "in": ["failed", "partial_succeed"] },
"task_name": { "in": ["miner.system.reboot", "miner.log.get"] },
"actor_type": { "eq": "user" },
"created_at": { "gte": "2026-04-01T00:00:00Z" },
"page": 1,
"limit": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: {in: ['failed', 'partial_succeed']},
task_name: {in: ['miner.system.reboot', 'miner.log.get']},
actor_type: {eq: 'user'},
created_at: {gte: '2026-04-01T00:00:00Z'},
page: 1,
limit: 50
})
};
fetch('https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search', 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.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => [
'in' => [
'failed',
'partial_succeed'
]
],
'task_name' => [
'in' => [
'miner.system.reboot',
'miner.log.get'
]
],
'actor_type' => [
'eq' => 'user'
],
'created_at' => [
'gte' => '2026-04-01T00:00:00Z'
],
'page' => 1,
'limit' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search"
payload := strings.NewReader("{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"batch_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"task_name": "miner.log.get",
"status": "pending",
"task_count": 10,
"succeed_count": 8,
"failed_count": 2,
"task_params": {},
"created_by": {
"type": "user",
"id": "user_2xGz1234567890",
"name": "John Doe",
"avatar": "https://example.com/avatar.png",
"metadata": {}
},
"created_at": "2025-09-07T00:00:00Z",
"metadata": {}
}
],
"pagination": {
"total": 50,
"limit": 10,
"offset": 0,
"hasNext": true,
"hasPrevious": false
},
"error": null
}{
"success": false,
"data": null,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed"
}
}{
"success": false,
"data": null,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"data": null,
"error": {
"code": "FORBIDDEN",
"message": "Access denied to workspace"
}
}{
"success": false,
"data": null,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
}
}Search Task Batches
Search task batches in the farm with operator-object filters. Supports status, task_name, actor_type, and created_at criteria. Omit body for an unfiltered first-page list. Automation-created batches include metadata.filterSummary with per-stage filter counts (total, passed, skippedUptime, skippedAnomaly, skippedNonNormal, skippedRebootLimit, skippedTemperature, temperatureBypassedZeroHashrate) — useful for diagnosing why automation filtered out miners.
curl --request POST \
--url https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": {
"in": [
"failed",
"partial_succeed"
]
},
"task_name": {
"in": [
"miner.system.reboot",
"miner.log.get"
]
},
"actor_type": {
"eq": "user"
},
"created_at": {
"gte": "2026-04-01T00:00:00Z"
},
"page": 1,
"limit": 50
}
'import requests
url = "https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search"
payload = {
"status": { "in": ["failed", "partial_succeed"] },
"task_name": { "in": ["miner.system.reboot", "miner.log.get"] },
"actor_type": { "eq": "user" },
"created_at": { "gte": "2026-04-01T00:00:00Z" },
"page": 1,
"limit": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: {in: ['failed', 'partial_succeed']},
task_name: {in: ['miner.system.reboot', 'miner.log.get']},
actor_type: {eq: 'user'},
created_at: {gte: '2026-04-01T00:00:00Z'},
page: 1,
limit: 50
})
};
fetch('https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search', 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.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => [
'in' => [
'failed',
'partial_succeed'
]
],
'task_name' => [
'in' => [
'miner.system.reboot',
'miner.log.get'
]
],
'actor_type' => [
'eq' => 'user'
],
'created_at' => [
'gte' => '2026-04-01T00:00:00Z'
],
'page' => 1,
'limit' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search"
payload := strings.NewReader("{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nonce.app/private-api/v1/{workspace_id}/farms/{farm_id}/tasks/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": {\n \"in\": [\n \"failed\",\n \"partial_succeed\"\n ]\n },\n \"task_name\": {\n \"in\": [\n \"miner.system.reboot\",\n \"miner.log.get\"\n ]\n },\n \"actor_type\": {\n \"eq\": \"user\"\n },\n \"created_at\": {\n \"gte\": \"2026-04-01T00:00:00Z\"\n },\n \"page\": 1,\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"batch_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"task_name": "miner.log.get",
"status": "pending",
"task_count": 10,
"succeed_count": 8,
"failed_count": 2,
"task_params": {},
"created_by": {
"type": "user",
"id": "user_2xGz1234567890",
"name": "John Doe",
"avatar": "https://example.com/avatar.png",
"metadata": {}
},
"created_at": "2025-09-07T00:00:00Z",
"metadata": {}
}
],
"pagination": {
"total": 50,
"limit": 10,
"offset": 0,
"hasNext": true,
"hasPrevious": false
},
"error": null
}{
"success": false,
"data": null,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed"
}
}{
"success": false,
"data": null,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"data": null,
"error": {
"code": "FORBIDDEN",
"message": "Access denied to workspace"
}
}{
"success": false,
"data": null,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
}
}Authorizations
Clerk Machine API Key for authentication
Body
Aggregate task batch status filter
Show child attributes
Show child attributes
{ "in": ["failed", "partial_succeed"] }
Task name filter
Show child attributes
Show child attributes
{
"in": ["miner.system.reboot", "miner.log.get"]
}
Actor type filter. Only eq operator supported; multi-type filtering is not available.
Show child attributes
Show child attributes
{ "eq": "user" }
Date filter operators using ISO 8601 UTC strings. Provide at least one operator.
Show child attributes
Show child attributes
{ "gte": "2026-04-01T00:00:00Z" }
Page number, starting at 1
1 <= x <= 90071992547409911
Results per page
1 <= x <= 1000050
Response
Successfully retrieved task batches