Obtiene los registros de ejecución de una sesión a través del motor de orquestación del espacio de trabajo. El ámbito del proyecto se define mediante el parámetro de ruta ID, y la organización se deriva de dicho proyecto.
Parámetros de query
-
ID de sesión
-
Filtro de marca de tiempo RFC3339
-
Cursor opaco devuelto como next_cursor por la respuesta anterior.
-
ID de espacio de trabajo para la resolución del espacio de trabajo
Respuestas
-
Versión de API no compatible o con formato incorrecto, operación no disponible en el contrato publicado seleccionado o representación inaceptable (incluidos parámetros de tipo de medio no compatibles o SSE excluidos). Los fallos de autenticación, autorización y límite de velocidad existentes tienen prioridad.
-
OK
-
Solicitud incorrecta
-
No autorizado
-
El motor de orquestación del espacio de trabajo no está listo.
-
Error interno del servidor
-
Puerta de enlace incorrecta
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/execution-logs?session_id=string' \
--header "Authorization: $API_KEY"
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"count": 42,
"has_more": true,
"logs": [
{
"a2a_caller_workspace_id": "string",
"a2a_parent_execution_id": "string",
"a2a_target_agent_id": "string",
"a2a_target_agent_name": "string",
"completion_tokens": 42,
"cost_usd": 42.0,
"decision": "string",
"duration_ms": 42.0,
"error": "string",
"execution_id": "string",
"guardrail_action": "string",
"guardrail_name": "string",
"guardrail_type": "string",
"id": "string",
"inputs": {},
"kind": "llm",
"log_source": "string",
"metadata": {},
"model": "string",
"org_id": "string",
"pod_name": "string",
"project_id": "string",
"prompt_tokens": 42,
"root_execution_id": "string",
"root_session_id": "string",
"session_id": "string",
"span_id": "string",
"status": "string",
"step_number": 42,
"timestamp": "2026-05-04T09:42:00Z",
"tool": "string",
"tool_api_error": {
"classification": "string",
"error_code": "string",
"http_status": 42,
"provider_type": "string",
"reason": "string",
"retryable": true
},
"tool_call_id": "string",
"total_tokens": 42,
"trace_id": "string",
"triggered_policy_ids": [
"string"
],
"user_id": "string",
"workspace_id": "string"
}
],
"next_cursor": "string",
"success": true
}
{
"count": 42,
"has_more": true,
"logs": [
{
"a2a_caller_workspace_id": "string",
"a2a_parent_execution_id": "string",
"a2a_target_agent_id": "string",
"a2a_target_agent_name": "string",
"completion_tokens": 42,
"cost_usd": 42.0,
"decision": "string",
"duration_ms": 42.0,
"error": "string",
"execution_id": "string",
"guardrail_action": "string",
"guardrail_name": "string",
"guardrail_type": "string",
"id": "string",
"inputs": {},
"kind": "llm",
"log_source": "string",
"metadata": {},
"model": "string",
"org_id": "string",
"pod_name": "string",
"project_id": "string",
"prompt_tokens": 42,
"root_execution_id": "string",
"root_session_id": "string",
"session_id": "string",
"span_id": "string",
"status": "string",
"step_number": 42,
"timestamp": "2026-05-04T09:42:00Z",
"tool": "string",
"tool_api_error": {
"classification": "string",
"error_code": "string",
"http_status": 42,
"provider_type": "string",
"reason": "string",
"retryable": true
},
"tool_call_id": "string",
"total_tokens": 42,
"trace_id": "string",
"triggered_policy_ids": [
"string"
],
"user_id": "string",
"workspace_id": "string"
}
],
"next_cursor": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}