---
title: "Agent Bootstrap"
method: POST
path: "/api/v1/agents/{agent_id}/bootstrap"
tags: ["agents"]
---

# Agent Bootstrap

`POST /api/v1/agents/{agent_id}/bootstrap`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/agents/{agent_id}/bootstrap`
- Auth: none declared

Rehydrate an agent's cognitive state at session start (#1276).

Auth is ``APIKeyOrSessionUser``; the per-request agent scope (set at
API-key verify for agent-bound keys) drives the identity rule inside the
service. Component failures are fail-soft; identity/authorization failures
are total and fail-closed with the uniform ``agent_not_found`` /
``context_not_found`` shapes.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- BootstrapRequest: Body for POST /api/v1/agents/{agent_id}/bootstrap (agent_id from path). POST-for-read follows the POST /api/v1/memory/pinned precedent.
  - `context_id` string, uuid, nullable
  - `session_id` string, nullable
  - `query` string, nullable
  - `recall_k` integer, nullable
  - `pinned_cap` integer, nullable
  - `upcoming_until` string, nullable
  - `include` string[], nullable
  - `recall_evaluation` object, nullable
  - `max_chars` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
