GET
/
api
/
agents
/
{agentId}
/
logs
Get agent logs
curl --request GET \
  --url http://localhost:3000/api/agents/{agentId}/logs
{
  "success": true,
  "data": {
    "logs": [
      {
        "level": 123,
        "time": 123,
        "msg": "<string>",
        "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "agentName": "<string>"
      }
    ],
    "count": 123
  }
}

Path Parameters

agentId
string
required

ID of the agent

Query Parameters

since
integer

Timestamp (ms) to get logs from

until
integer

Timestamp (ms) to get logs until

level
enum<string>
default:info
Available options:
trace,
debug,
info,
warn,
error,
fatal
limit
integer
default:100
Required range: x <= 1000

Response

200
application/json

Agent logs retrieved successfully

The response is of type object.