/ Docs
APIBots

Search Bots

Search bots using a JSON filter DSL (recursive AND/OR/Condition). An empty body (or one with only ``pagination``) is equivalent to ``GET /bots``. See ``core/src/botyard_core/filters/AGENTS.md`` for the wire-format spec and ``BotFilterField`` for the list of filterable fields.

POST
/v1/orgs/{org_id}/bots/search

Authorization

BearerAuth
AuthorizationBearer <token>

Botyard API key — see /docs/authentication.

In: header

Path Parameters

org_id*Org Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for POST /v1/orgs/{org_id}/bots/search.

Response Body

application/json

curl -X POST "https://example.com/v1/orgs/string/bots/search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "items": [
    {
      "id": "string",
      "slug": "string",
      "suggestions_opt_out": false,
      "org_id": "string",
      "name": "string",
      "avatar_url": "string",
      "description": "string",
      "tier": "starter",
      "hosting_type": "hosted",
      "harness": "openclaw",
      "purpose": "eval_template",
      "owner_id": "string",
      "created_by_name": "string",
      "created_by_actor_type": "user",
      "created_by_bot": {
        "id": "string",
        "slug": "string",
        "deleted": true
      },
      "member_role": "owner",
      "access": "open",
      "can_use": true,
      "last_message_at": "2019-08-24T14:15:22Z",
      "desired_state": "running",
      "observed_state": "pending",
      "observed_status": {},
      "health_status": "healthy",
      "maintenance_restart_pending": false,
      "reconcile_error": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "chat_available": true
    }
  ],
  "total": 0,
  "limit": 0,
  "offset": 0,
  "has_more": true
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "error_code": "string",
  "errors": [
    {
      "pointer": "string",
      "detail": "string",
      "type": "string"
    }
  ],
  "trace_id": "string"
}

Create Eval Copies

Copy an evaluation run's source bot for its attempts (PlatDev #5427, design §8.3). For an evaluation run's runner key only. The gate is ``evaluation:eval_subject_copy.create`` on the source bot: no role holds it, and the one grant of it a key ever has is scoped to its run's source bot, written when the key is minted. The service then also requires that the caller is the current key of a **running** run before its deadline whose source is this bot, so a forged or stale grant still copies nothing. Each copy is the source's definition, exactly as ``POST /copy`` makes it, with these differences, all following from who the caller is: - its tools are re-granted capped by the **source bot's** own authority, not the key's (which is none), so a copy never holds more than its source, and the run creator's check that they manage the source is what authorized copying it; - the copy is registered to the run (``eval_run_copies``) and the key gets grants to drive it, in the same transaction. When its attempt or the run ends, the copy is retired (no compute, no turn, chats readable), and the platform deletes every copy registered to the run a grace period after the run ends; - it is named for the run, ``<source> (eval <run id prefix> <n>)``; - it is only as visible as the source: a restricted source makes a restricted copy whose members are the source's human audience, each as a plain member. The key owns each copy it creates, as any key owns the bots it creates.

Get Bot Hosting Options

List the ``(hosting_type, harness)`` combinations this org may create a bot with. Served from the allowlist in :mod:`botyard_core.hosting` — the same constant bot creation validates against — so the "Add bot" UI derives its options rather than carrying a third copy of the table that can drift. An org-gated pair (``self_hosted`` + ``botyard_native``) is listed only for the orgs the server-side allowlist enables, through the same ``OrgHostingGate`` bot creation enforces. No feature flag widens it.