Skip to main content
GET
/
v1
/
agents
/
devbox_counts
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const agentDevboxCountsView = await client.agents.devboxCounts();

console.log(agentDevboxCountsView.counts);
{
  "counts": {},
  "total_count": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successfully retrieved devbox counts by agent name.

Devbox counts grouped by agent name. Used to efficiently fetch devbox counts for multiple agents in a single request.

counts
object
required

Map of agent name to devbox count. Each key is an agent name, and the value is the count of devboxes associated with that agent.

total_count
integer<int32>
required

Total count of devboxes across all agents in the result.