Skip to content

API Overview

The AgenFleet REST API gives you programmatic access to your agents, cost analytics, workforce metrics, and audit data. Use it to integrate AgenFleet into your own systems, automate fleet management, or build reporting on top of the platform.


https://api.agenfleet.ai/api

All endpoints are prefixed with /api. Examples in this documentation use this base path.


All API requests require a JWT Bearer token in the Authorization header. Obtain a token by authenticating via the portal or the /api/auth/login endpoint.

Authorization: Bearer <your-jwt-token>
POST /api/auth/login
Content-Type: application/json
{
"email": "you@yourcompany.com",
"password": "..."
}

Response:

{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "...",
"email": "you@yourcompany.com",
"role": "admin"
}
}

Include the token value as your Bearer token on all subsequent requests.


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

POST /api/agents
Content-Type: application/json
Authorization: Bearer <token>
{
"name": "Nova",
"role": "Research Analyst"
}

All responses return JSON. Successful responses use 2xx status codes.

Single resource:

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"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": "No agent found with that ID"
}
HTTP statusDescription
400Request body failed validation
401Missing or invalid token
403Valid token but insufficient role/scope
404Resource does not exist or belongs to another tenant
429Too many requests — see rate limits below
500Platform error — contact support

Rate limiting is enforced at the API layer using a sliding window:

Limit typeLimitWindow
General API60 requestsper minute per IP
Auth endpoints10 attemptsper 15 minutes per IP
Billing endpoints5 requestsper minute per IP
MFA verification5 attemptsper 15 minutes per IP

When rate limited, the response is 429 Too Many Requests. Back off and retry after a short delay.


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

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