{
  "opencollection": "1.0.0",
  "info": {
    "name": "Runloop agents API",
    "version": "0.1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "agents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Agents.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.runloop.ai/v1/agents",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The limit of items to return. Default is 20. Max is 5000."
              },
              {
                "name": "starting_after",
                "value": "",
                "type": "query",
                "description": "Load the next page of data starting after the item with the given ID."
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Filter agents by name (partial match supported)."
              },
              {
                "name": "is_public",
                "value": "",
                "type": "query",
                "description": "Filter agents by public visibility."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search by agent ID or name."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Filter by version. Use 'latest' to get the most recently created agent."
              },
              {
                "name": "include_total_count",
                "value": "",
                "type": "query",
                "description": "If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets."
              }
            ]
          },
          "docs": "List all Agents for the authenticated account with pagination support."
        },
        {
          "info": {
            "name": "Create an Agent.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.runloop.ai/v1/agents",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Agent with a name and optional public visibility. The Agent will be assigned a unique ID."
        },
        {
          "info": {
            "name": "Get Devbox counts by Agent.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.runloop.ai/v1/agents/devbox_counts"
          },
          "docs": "Returns devbox counts grouped by agent name. This endpoint efficiently aggregates devbox counts for all agents in a single request, avoiding N+1 query patterns."
        },
        {
          "info": {
            "name": "List Public Agents.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.runloop.ai/v1/agents/list_public",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The limit of items to return. Default is 20. Max is 5000."
              },
              {
                "name": "starting_after",
                "value": "",
                "type": "query",
                "description": "Load the next page of data starting after the item with the given ID."
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Filter agents by name (partial match supported)."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search by agent ID or name."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Filter by version. Use 'latest' to get the most recently created agent."
              },
              {
                "name": "include_total_count",
                "value": "",
                "type": "query",
                "description": "If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets."
              }
            ]
          },
          "docs": "List all public Agents with pagination support."
        },
        {
          "info": {
            "name": "Get an Agent.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.runloop.ai/v1/agents/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Agent to retrieve."
              }
            ]
          },
          "docs": "Retrieve a specific Agent by its unique identifier."
        },
        {
          "info": {
            "name": "Delete an Agent.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.runloop.ai/v1/agents/:id/delete",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the Agent to delete."
              }
            ]
          },
          "docs": "Delete an Agent by its unique identifier. The Agent will be permanently removed."
        }
      ]
    }
  ],
  "bundled": true
}