---
title: "Learn from session"
method: POST
path: "/learning_spaces/{id}/learn"
tags: ["learning_spaces"]
---

# Learn from session

`POST /learning_spaces/{id}/learn`

Create an async learning record from a session. Initially stays in pending status.

## Path parameters

- `id` string, required

## Request body

- HandlerLearnReq
  - `session_id` string, required

## Response `201`

Created

- object
  - `code` integer
  - `error` string
  - `msg` string
  - `data` ModelLearningSpaceSession
    - `created_at` string
    - `id` string
    - `learning_space_id` string
    - `session_id` string
    - `status` string
    - `updated_at` string

## Other responses

- `404` — Not Found
- `409` — Conflict

---

[API](https://skmtc.dev/memodb-io/apis/acontext-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/acontext-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/acontext-api/revisions/c8775333b1ed/schema)
