Streams customer-visible workspace log records for one required service and up to 24 hours from at most 20 MiB of compressed source objects as normalized AgentLogEntry gzip JSON Lines. The end-to-end export timeout is 30 minutes. Processing is capped at 100 MiB of decoded input and 20 MiB of compressed response output. Records are filtered to the authorized project, workspace, and service; other interactive filters are not supported. Clients must consume and validate the gzip stream to EOF because an interrupted stream can retain HTTP 200 but have an invalid gzip trailer. The project scope is carried by the route id path parameter and the org is derived from that project.
Query parameters
-
Workspace identifier
-
Runtime service: agent-execution-runtime or tool-executor (agent and tool aliases accepted)
-
RFC3339 start time (default: 1 hour ago)
-
RFC3339 end time (default: now)
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/agent-logs/export?workspace_id=string&service=string' \
--header "Authorization: $API_KEY"
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
# Headers
Retry-After: string
# Payload
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}