Skip to main content
POST
/
private-api
/
v1
/
{workspace_id}
/
agents
/
search
Search Agents
curl --request POST \
  --url https://api.nonce.app/private-api/v1/{workspace_id}/agents/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "farm_id": {
    "in": [
      "online",
      "offline"
    ]
  },
  "status": {
    "in": [
      "online",
      "offline"
    ]
  },
  "page": 4503599627370496,
  "limit": 5000
}
'
{
  "success": true,
  "data": [
    {
      "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "farm_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "farm": {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "name": "Farm Name"
      },
      "workspace_id": "org_xxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "status": "online/offline",
      "last_updated_at": "2025-08-27T00:00:00Z",
      "last_online_at": "<string>",
      "version": "v0.4.9-1-fdb7d5f",
      "uptime": 6235631,
      "host": {
        "platform": "Darwin",
        "os": "macOS-15.6-arm64-arm-64bit",
        "cpu_count": 12,
        "uptime": 6235631,
        "timestamp": 1761292878,
        "load_average": [
          2.0478515625,
          2.177734375,
          2.046875
        ],
        "memory": {
          "total": 34359738368,
          "free": 64126976,
          "used": 14793719808,
          "swap_total": 2147483648,
          "swap_free": 1095696384,
          "swap_used": 1051787264
        },
        "ip": "192.168.9.109",
        "hostname": "localhost"
      }
    }
  ],
  "pagination": {
    "total": 50,
    "limit": 10,
    "offset": 0,
    "hasNext": true,
    "hasPrevious": false
  },
  "error": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.nonce.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Clerk Machine API Key for authentication

Path Parameters

workspace_id
string
required

Body

application/json
farm_id
object

Enum or ID filter operators. Provide at least one operator.

Example:
{ "in": ["online", "offline"] }
status
object

Enum or ID filter operators. Provide at least one operator.

Example:
{ "in": ["online", "offline"] }
page
integer
Required range: 1 <= x <= 9007199254740991
limit
integer
Required range: 1 <= x <= 10000

Response

Successfully retrieved agents

success
boolean
required

Indicates if the request was successful

Example:

true

data
Agent · object[]
required

Array of items

pagination
object
required

Pagination metadata

error
null
required

Error object (null on success)

Example:

null