> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reportify.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# Doc Summary

> Retrieve the summary of the specified document.

## 文档总结

**URL**: `/v1/docs/{doc_id}/summary`\
**方法**: `GET`\
**描述**: 获取指定文档的总结结果。

### 请求参数

| 参数名     | 类型  | 描述       |
| ------- | --- | -------- |
| doc\_id | str | 文档唯一 ID。 |

### 响应参数

| 参数名     | 类型  | 描述         |
| ------- | --- | ---------- |
| doc\_id | str | 请求的文档唯一 ID |
| summary | str | 文档的总结内容    |

### 请求示例

**cURL**

```bash theme={null}
curl -X GET https://api.reportify.cn/v1/docs/1046895208953942016/summary \
-H "Authorization: Bearer 447460****09c9" \
-H "Content-Type: application/json"
```

**Python 示例**

```python theme={null}
import requests

url = "https://api.reportify.cn/v1/docs/1046895208953942016/summary"
headers = {
    "Authorization": "Bearer 447460****09c9",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
```

### 响应示例

```json theme={null}
{
  "doc_id": "1046895208953942016",
  "summary": "This report provides a concise overview of AI applications in the finance sector, highlighting recent advancements and market impacts."
}
```


## OpenAPI

````yaml GET /v1/docs/{doc_id}/summary
openapi: 3.1.0
info:
  title: Reportify API
  version: 1.0.0
  description: API documentation for Reportify's document management and search services.
servers:
  - url: https://api.reportify.cn
    description: Production server
security:
  - BearerAuth: []
paths:
  /v1/docs/{doc_id}/summary:
    get:
      tags:
        - openapi-docs
      summary: Get Doc Summary
      description: Retrieve the summary of the specified document.
      operationId: get_doc_summary_reportify_api_v1_docs__doc_id__summary_get
      parameters:
        - required: true
          schema:
            type: string
            title: Doc Id
          name: doc_id
          in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAIDocSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    OAIDocSummaryResponse:
      properties:
        doc_id:
          type: string
          title: Doc Id
        summary:
          type: string
          title: Summary
      type: object
      required:
        - doc_id
        - summary
      title: OAIDocSummaryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your Bearer token

````