APIClaw Agent Management API
The Agent Management API from APIClaw — 1 operation(s) for agent management.
The Agent Management API from APIClaw — 1 operation(s) for agent management.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/apiclaw:apiclaw-agent-management-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: LiteLLM Agent Management API
description: 'Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs**
👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login```
💸 ```LiteLLM Model Cost Map```.
🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**'
version: 1.105.1
tags:
- name: Agent Management
paths:
/agent/daily/activity/aggregated:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity Aggregated
operationId: get_agent_daily_activity_aggregated_agent_daily_activity_aggregated_get
security:
- APIKeyHeader: []
parameters:
- name: api_key_limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Api Key Limit
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
- name: timezone
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Timezone
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SpendAnalyticsPaginatedResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/agent/daily/activity/aggregated/keys:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity Aggregated Keys
operationId: get_agent_daily_activity_aggregated_keys_agent_daily_activity_aggregated_keys_get
security:
- APIKeyHeader: []
parameters:
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
title: Limit
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
- name: timezone
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Timezone
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DailyActivityKeyPageResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/agent/daily/activity/aggregated/search:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity Aggregated Search
operationId: get_agent_daily_activity_aggregated_search_agent_daily_activity_aggregated_search_get
security:
- APIKeyHeader: []
parameters:
- name: search
in: query
required: true
schema:
type: string
minLength: 1
title: Search
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 100
title: Limit
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
- name: timezone
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Timezone
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DailyActivityKeySearchResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/agent/daily/activity/aggregated/model_top_keys:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity Model Top Keys
operationId: get_agent_daily_activity_model_top_keys_agent_daily_activity_aggregated_model_top_keys_get
security:
- APIKeyHeader: []
parameters:
- name: model_group
in: query
required: true
schema:
type: string
minLength: 1
title: Model Group
- name: by_model_group
in: query
required: false
schema:
type: boolean
default: true
title: By Model Group
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 5
title: Limit
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
- name: timezone
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Timezone
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ModelTopKeysResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/agent/daily/activity/export:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity Export
operationId: get_agent_daily_activity_export_agent_daily_activity_export_get
security:
- APIKeyHeader: []
parameters:
- name: export_type
in: query
required: false
schema:
$ref: '#/components/schemas/ExportType'
default: daily
- name: format
in: query
required: false
schema:
enum:
- csv
- json
type: string
default: csv
title: Format
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
- name: timezone
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Timezone
responses:
'200':
description: Streamed daily activity export
content:
text/csv:
schema:
type: string
application/json:
schema:
type: array
items:
type: object
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/agent/daily/activity:
get:
tags:
- Agent Management
summary: Get Agent Daily Activity
description: Get daily activity for specific agents or all accessible agents.
operationId: get_agent_daily_activity_agent_daily_activity_get
security:
- APIKeyHeader: []
parameters:
- name: agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Agent Ids
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: model
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Model
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
- name: page
in: query
required: false
schema:
type: integer
default: 1
title: Page
- name: page_size
in: query
required: false
schema:
type: integer
default: 10
title: Page Size
- name: exclude_agent_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Exclude Agent Ids
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SpendAnalyticsPaginatedResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
MetricWithMetadata:
properties:
metrics:
$ref: '#/components/schemas/SpendMetrics'
metadata:
additionalProperties: true
type: object
title: Metadata
api_key_breakdown:
additionalProperties:
$ref: '#/components/schemas/KeyMetricWithMetadata'
type: object
title: Api Key Breakdown
type: object
required:
- metrics
title: MetricWithMetadata
KeySpendMetrics:
properties:
spend:
type: number
title: Spend
default: 0.0
prompt_tokens:
type: integer
title: Prompt Tokens
default: 0
completion_tokens:
type: integer
title: Completion Tokens
default: 0
total_tokens:
type: integer
title: Total Tokens
default: 0
api_requests:
type: integer
title: Api Requests
default: 0
successful_requests:
type: integer
title: Successful Requests
default: 0
failed_requests:
type: integer
title: Failed Requests
default: 0
cache_read_input_tokens:
type: integer
title: Cache Read Input Tokens
default: 0
cache_creation_input_tokens:
type: integer
title: Cache Creation Input Tokens
default: 0
type: object
title: KeySpendMetrics
SpendAnalyticsPaginatedResponse:
properties:
results:
items:
$ref: '#/components/schemas/DailySpendData'
type: array
title: Results
metadata:
$ref: '#/components/schemas/DailySpendMetadata'
type: object
required:
- results
title: SpendAnalyticsPaginatedResponse
BreakdownMetrics:
properties:
mcp_servers:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Mcp Servers
models:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Models
model_groups:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Model Groups
providers:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Providers
endpoints:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Endpoints
api_keys:
additionalProperties:
$ref: '#/components/schemas/KeyMetricWithMetadata'
type: object
title: Api Keys
entities:
additionalProperties:
$ref: '#/components/schemas/MetricWithMetadata'
type: object
title: Entities
type: object
title: BreakdownMetrics
description: Breakdown of spend by different dimensions
KeyMetricWithMetadata:
properties:
metrics:
$ref: '#/components/schemas/SpendMetrics'
metadata:
$ref: '#/components/schemas/KeyMetadata'
type: object
required:
- metrics
title: KeyMetricWithMetadata
description: Base class for metrics with additional metadata
SpendMetrics:
properties:
spend:
type: number
title: Spend
default: 0.0
flat_cost:
type: number
title: Flat Cost
default: 0.0
prompt_tokens:
type: integer
title: Prompt Tokens
default: 0
completion_tokens:
type: integer
title: Completion Tokens
default: 0
cache_read_input_tokens:
type: integer
title: Cache Read Input Tokens
default: 0
cache_creation_input_tokens:
type: integer
title: Cache Creation Input Tokens
default: 0
compression_saved_tokens:
type: integer
title: Compression Saved Tokens
default: 0
compression_savings_spend:
type: number
title: Compression Savings Spend
default: 0.0
prompt_caching_savings_spend:
type: number
title: Prompt Caching Savings Spend
default: 0.0
gateway_injected_caching_savings_spend:
type: number
title: Gateway Injected Caching Savings Spend
default: 0.0
autorouter_savings_spend:
type: number
title: Autorouter Savings Spend
default: 0.0
total_tokens:
type: integer
title: Total Tokens
default: 0
successful_requests:
type: integer
title: Successful Requests
default: 0
failed_requests:
type: integer
title: Failed Requests
default: 0
api_requests:
type: integer
title: Api Requests
default: 0
total_response_time_ms:
type: integer
title: Total Response Time Ms
default: 0
timed_requests:
type: integer
title: Timed Requests
default: 0
type: object
title: SpendMetrics
DailySpendMetadata:
properties:
total_spend:
type: number
title: Total Spend
default: 0.0
total_flat_cost:
type: number
title: Total Flat Cost
default: 0.0
total_prompt_tokens:
type: integer
title: Total Prompt Tokens
default: 0
total_completion_tokens:
type: integer
title: Total Completion Tokens
default: 0
total_tokens:
type: integer
title: Total Tokens
default: 0
total_api_requests:
type: integer
title: Total Api Requests
default: 0
total_successful_requests:
type: integer
title: Total Successful Requests
default: 0
total_failed_requests:
type: integer
title: Total Failed Requests
default: 0
total_cache_read_input_tokens:
type: integer
title: Total Cache Read Input Tokens
default: 0
total_cache_creation_input_tokens:
type: integer
title: Total Cache Creation Input Tokens
default: 0
total_compression_saved_tokens:
type: integer
title: Total Compression Saved Tokens
default: 0
total_compression_savings_spend:
type: number
title: Total Compression Savings Spend
default: 0.0
total_prompt_caching_savings_spend:
type: number
title: Total Prompt Caching Savings Spend
default: 0.0
total_gateway_injected_caching_savings_spend:
type: number
title: Total Gateway Injected Caching Savings Spend
default: 0.0
total_autorouter_savings_spend:
type: number
title: Total Autorouter Savings Spend
default: 0.0
total_response_time_ms:
type: integer
title: Total Response Time Ms
default: 0
total_timed_requests:
type: integer
title: Total Timed Requests
default: 0
page:
type: integer
title: Page
default: 1
total_pages:
type: integer
title: Total Pages
default: 1
has_more:
type: boolean
title: Has More
default: false
api_key_limit:
anyOf:
- type: integer
- type: 'null'
title: Api Key Limit
description: When set, api_keys and every api_key_breakdown list at most this many keys, ranked by spend. Totals and the model, provider, mcp and endpoint rollups still cover every key.
total_api_keys:
anyOf:
- type: integer
- type: 'null'
title: Total Api Keys
description: Distinct API keys matching the filters. When this exceeds api_key_limit, the per-key lists are truncated to the highest-spend keys.
entity_total_api_keys:
anyOf:
- additionalProperties:
type: integer
type: object
- type: 'null'
title: Entity Total Api Keys
description: Distinct API keys per entity over the requested range, set when the entity breakdown is included. When an entity's count exceeds api_key_limit, its api_key_breakdown lists only its keys among the top api_key_limit keys overall.
type: object
title: DailySpendMetadata
ExportType:
type: string
enum:
- daily
- daily_with_keys
- daily_with_models
- daily_with_users
title: ExportType
KeyMetadata:
properties:
key_alias:
anyOf:
- type: string
- type: 'null'
title: Key Alias
team_id:
anyOf:
- type: string
- type: 'null'
title: Team Id
user_id:
anyOf:
- type: string
- type: 'null'
title: User Id
user_email:
anyOf:
- type: string
- type: 'null'
title: User Email
key_exists:
anyOf:
- type: boolean
- type: 'null'
title: Key Exists
type: object
title: KeyMetadata
description: Metadata for a key
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
DailySpendData:
properties:
date:
type: string
format: date
title: Date
metrics:
$ref: '#/components/schemas/SpendMetrics'
breakdown:
$ref: '#/components/schemas/BreakdownMetrics'
type: object
required:
- date
- metrics
title: DailySpendData
KeySpendActivityRow:
properties:
api_key:
type: string
title: Api Key
metrics:
$ref: '#/components/schemas/KeySpendMetrics'
metadata:
$ref: '#/components/schemas/KeyMetadata'
type: object
required:
- api_key
- metrics
- metadata
title: KeySpendActivityRow
DailyActivityKeyPageResponse:
properties:
api_keys:
items:
$ref: '#/components/schemas/KeySpendActivityRow'
type: array
title: Api Keys
total_api_keys:
type: integer
title: Total Api Keys
offset:
type: integer
title: Offset
limit:
type: integer
title: Limit
type: object
required:
- api_keys
- total_api_keys
- offset
- limit
title: DailyActivityKeyPageResponse
KeyActivityRow:
properties:
api_key:
type: string
title: Api Key
metrics:
$ref: '#/components/schemas/SpendMetrics'
metadata:
$ref: '#/components/schemas/KeyMetadata'
type: object
required:
- api_key
- metrics
- metadata
title: KeyActivityRow
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
DailyActivityKeySearchResponse:
properties:
api_keys:
items:
$ref: '#/components/schemas/KeyActivityRow'
type: array
title: Api Keys
type: object
required:
- api_keys
title: DailyActivityKeySearchResponse
ModelTopKeysResponse:
properties:
model:
type: string
title: Model
by_model_group:
type: boolean
title: By Model Group
api_keys:
items:
$ref: '#/components/schemas/KeySpendActivityRow'
type: array
title: Api Keys
type: object
required:
- model
- by_model_group
- api_keys
title: ModelTopKeysResponse
securitySchemes:
APIKeyHeader:
type: apiKey
description: Bearer token
in: header
name: x-litellm-api-key
HTTPBearer:
type: http
scheme: bearer
x-provenance:
method: harvested
publisher: APIClaw
source: https://apiclaw.biz/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)