# Pull learning events

Pull the authenticated user's authoritative append-only learning events after a cursor for a local mirror or web Agent context.

- Capability ID: `learning.events.pull`
- Operation: `ielts_learning_pull_events`
- Category: 学习事件
- Endpoint: `POST /api/v1/agent/capabilities/ielts_learning_pull_events`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: learning:read
- Side effect: read
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_learning_pull_events

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | number | 否 | cursor |
| `limit` | number | 否 | limit |

## Request example

```bash
curl -X POST \
  'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_learning_pull_events' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer $IELTS_BUDDY_TOKEN' \
  --data '{"cursor":0,"limit":100}'
```

## Request schema

```json
{
  "type": "object",
  "properties": {
    "cursor": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 100,
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "cursor",
    "limit"
  ],
  "additionalProperties": false
}
```

## Response envelope

```json
{
  "code": 0,
  "data": {},
  "message": "ok"
}
```

## Errors

| HTTP | Code | Meaning |
| --- | --- | --- |
| 400 | `40001` | 请求参数不符合接口契约 |
| 401 | `40101` | 缺少或使用了无效的访问令牌 |
| 403 | `40301` | 访问令牌不包含接口所需权限 |
| 404 | `40401` | 接口或目标资源不存在 |
