Skip to main content
GET
/
api
/
v1
/
agents
List agents
curl --request GET \
  --url https://api.logfleet.io/api/v1/agents \
  --header 'Authorization: Bearer <token>'
{
  "agents": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "hostname": "<string>",
      "ip_address": "<string>",
      "version": "<string>",
      "status": "pending",
      "labels": {},
      "last_heartbeat_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

JWT token obtained from /auth/login

Query Parameters

limit
integer
default:50

Maximum number of items to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of items to skip

Required range: x >= 0

Response

List of agents

agents
object[]
total
integer