# `GET /v1/sessions/{sessionId}/entries/{entryId}` — Get a full entry

Part of the [Bkper Managed Agent API](https://bkper.com/docs/api/managed-agent.md). Read its guide for authentication, conventions, and examples.

## Operation contract

```json
{
  "operationId": "getEntry",
  "tags": [
    "Sessions"
  ],
  "summary": "Get a full entry",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "parameters": [
    {
      "name": "sessionId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "entryId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Entry"
          }
        }
      }
    },
    "400": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "409": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "410": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "411": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "413": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "503": {
      "description": "Rejected; never contains credentials or upstream payloads.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}
```

## Schemas

### Entry

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Milliseconds since the epoch, as a string."
    },
    "type": {
      "type": "string",
      "description": "Entry type. Open: user | assistant | tool_result | compaction."
    },
    "createdBy": {
      "type": "string"
    },
    "inputId": {
      "type": "string"
    },
    "delivery": {
      "type": "string"
    },
    "bookContext": {
      "type": "object",
      "properties": {
        "bookId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,128}$"
        },
        "query": {
          "type": "string",
          "maxLength": 4000,
          "pattern": "^[^\\u0000-\\u001f]*$"
        }
      },
      "required": [
        "bookId",
        "query"
      ],
      "additionalProperties": false
    },
    "content": {
      "description": "user: text and attached file parts; assistant: text, thinking and tool_call blocks; tool_result: text parts, and a file part from publish.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": {},
        "description": "Typed part; text is { type: \"text\", text }. Open."
      }
    },
    "model": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "Assistant outcome. Open: completed | incomplete."
    },
    "incompleteReason": {
      "type": "string",
      "description": "Why incomplete. Open: cancelled | inference_failed | interrupted."
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "description": "Sanitized failure. Never contains provider, AI or credential text."
    },
    "callId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "isError": {
      "type": "boolean"
    },
    "details": {},
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "severity",
          "message"
        ]
      }
    },
    "reason": {
      "type": "string",
      "description": "Compaction trigger. Open: manual | threshold | overflow."
    },
    "summary": {
      "type": "string"
    },
    "clipped": {
      "description": "Large strings were shortened; GET the entry for its full content.",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type"
  ],
  "description": "Immutable transcript entry. Clients ignore unknown fields and render unknown types generically."
}
```

### Error

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Stable code, e.g. not_found, idempotency_conflict, session_working, usage_limit_exceeded. Open."
        },
        "type": {
          "description": "Category, e.g. invalid_request_error, authentication_error, usage_limit_error. Open.",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

## Authentication

```json
{
  "bearerAuth": {
    "type": "http",
    "scheme": "bearer"
  }
}
```
