Skip to content

API Overview

The AgenFleet REST API gives you programmatic access to your agents, sessions, metrics, and webhooks. Use it to integrate AgenFleet into your own systems, automate fleet management, or build products on top of the platform.


https://api.agenfleet.ai/v1

All endpoints are versioned under /v1. Breaking changes will be introduced under a new version prefix with at least 90 days of notice.


All API requests require a Bearer token in the Authorization header.

Authorization: Bearer <your-api-key>
  1. Go to Settings → API Keys in the portal
  2. Click Generate New Key
  3. Give the key a name and select a permission scope (read-only or read-write)
  4. Copy the key immediately — it is only shown once
ScopeWhat it allows
readGET requests only — list and retrieve agents, sessions, metrics
read-writeFull access — create, update, delete agents, send messages, manage cron jobs

All request bodies must be JSON with Content-Type: application/json:

POST /v1/sessions
Content-Type: application/json
Authorization: Bearer <key>
{
"agentId": "agent_01jq8...",
"name": "Q1 Research"
}

All responses return JSON. Successful responses use 2xx status codes. The response shape depends on the endpoint — see individual endpoint documentation for schemas.

Single resource:

{
"id": "agent_01jq8...",
"name": "Nova",
"status": "online",
"createdAt": "2026-01-15T09:00:00Z"
}

List response:

{
"data": [ ... ],
"pagination": {
"total": 42,
"limit": 20,
"offset": 0,
"hasMore": true
}
}

All errors return a consistent JSON body:

{
"error": {
"code": "AGENT_NOT_FOUND",
"message": "No agent found with id agent_01jq8abc",
"statusCode": 404
}
}
HTTP statusCodeDescription
400VALIDATION_ERRORRequest body failed schema validation
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENValid key but insufficient scope
404NOT_FOUNDResource does not exist or belongs to another tenant
409CONFLICTResource already exists (e.g., duplicate agent name)
429RATE_LIMITEDToo many requests — see rate limits below
500INTERNAL_ERRORPlatform error — contact support with the request ID

PlanRequests per minuteRequests per hour
Foundation30500
Operational1205,000
Enterprise60050,000

Rate limit headers are included in every response:

X-RateLimit-Limit: 120
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1742220060

When rate limited, the response is 429 Too Many Requests. The X-RateLimit-Reset header contains the Unix timestamp when the limit resets.


List endpoints support cursor-based pagination via limit and offset query parameters:

GET /v1/agents?limit=20&offset=40
ParameterDefaultMaxDescription
limit20100Number of results to return
offset0Number of results to skip

For POST requests that create resources, you can supply an Idempotency-Key header to safely retry requests without creating duplicates:

Idempotency-Key: a8f3b2c1-4d5e-6f7a-8b9c-0d1e2f3a4b5c

Duplicate requests with the same key within 24 hours return the original response without creating a new resource.


VersionDateChanges
v1.02026-01-01Initial release — agents, sessions, metrics
v1.12026-02-15Added webhooks, activity log endpoint
v1.22026-03-01Added cron job management endpoints