Skip to main content
GET
Get agent system logs

Authorizations

Authorization
string
header
required

User session JWT (Bearer ). Must be paired with the X-Team-ID request header on team-scoped endpoints so the server knows which team's resources to operate on.

Headers

X-Team-ID
string<uuid>

UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):

  • JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
  • Credential callers (sk-, dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
Example:

"019abc12-4567-7890-abcd-ef1234567891"

Path Parameters

agentId
string
required

Unique identifier of the agent.

Query Parameters

tailLines
integer
default:100

Number of lines to retrieve from the end of the log.

Response

Agent system logs

log_output
string
required

Latest system logs from the agent (plain text).

Example:

"2025-02-18T10:00:00Z INFO starting agent..."

error_message
string | null

Error message if log retrieval failed.