# Read study plan

Read one study plan by an exact id returned by the conversation, workspace context, or plan list. Tasks are returned in chronological pages with an opaque nextCursor.

- Capability ID: `study_plans.get`
- Operation: `ielts_study_plans_get`
- Category: 学习计划
- Endpoint: `POST /api/v1/agent/capabilities/ielts_study_plans_get`
- Authentication: Bearer Token（通过 /api/v1/agent-bindings 绑定账号）
- Required scopes: study_plans:read
- Side effect: read
- Human documentation: https://ieltsbuddy.igopx.cn/developers/api/ielts_study_plans_get

## Request parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `planId` | string | 是 | planId |
| `cursor` | string | 否 | Opaque nextCursor returned by the preceding page. Empty reads the first task page. |
| `limit` | number | 否 | Maximum plan tasks to return in this page. |

## Request example

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

## Request schema

```json
{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string",
      "minLength": 1
    },
    "cursor": {
      "default": "",
      "description": "Opaque nextCursor returned by the preceding page. Empty reads the first task page.",
      "type": "string",
      "maxLength": 500
    },
    "limit": {
      "default": 6,
      "description": "Maximum plan tasks to return in this page.",
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    }
  },
  "required": [
    "planId",
    "cursor",
    "limit"
  ],
  "additionalProperties": false
}
```

## Response envelope

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

## Errors

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