---
title: "AI37-4 Patent Specification Drafting (CNIPA) - Report Generation"
method: POST
path: "/ai/specification/generate-report/cnipa"
tags: ["Specification Drafting"]
---

# AI37-4 Patent Specification Drafting (CNIPA) - Report Generation

`POST /ai/specification/generate-report/cnipa`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/ai/specification/generate-report/cnipa`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/ai/specification/generate-report/cnipa/post.ts> (a function with typed inputs; its response is checked against the schema)

Based on the technical features obtained from previous interfaces and complete information input by users (including invention title, classification numbers, technical problems/methods/benefits, feature tree, term lists, embodiments, images, etc.), generate a complete patent specification report, support asynchronous processing, and return task_id for querying generation status.

## Request body

- AI374GenerateReportCnipaRequest
  - `benefit` string: Technical benefits
  - `category` string, required: Technology category(Composition of matter,Machine, Process, Manufacture)
  - `classification` unknown[]: Classification list
    - unknown
  - `embodiments` AI374GenerateReportCnipaEmbodimentGenerateItem[]: Embodiments list
    - `claim_numbers` unknown[]: Claim numbers list
      - unknown
    - `embodiment_number` integer: Embodiment number
    - `text` string: Embodiment content text
    - `type` string: Type (Composition of matter,Machine, Process, Manufacture)
  - `feature_tree` AI374GenerateReportCnipaFeatureTreeBO[]: Feature tree list
    - `claim_features` AI374GenerateReportCnipaClaimFeature[]: Claim features list
      - `concepts` unknown[]: Concept words list
        - unknown
      - `feature` string: Technical feature description
      - `feature_deleted` integer: Feature deleted flag
    - `num` string: Claim number
    - `parent` string: Parent claim number
    - `simple_claim` string: Simplified claim description
  - `task_id` string, required: Task ID
  - `technical_methods` string: Technical methods
  - `technical_problem` string: Technical problem
  - `terms` AI374GenerateReportCnipaTerm[]: Terms list
    - `annotated` boolean: Whether annotated
    - `name` string, required: Term name
    - `number` string: Number
    - `unique_id` string, required: Unique identifier
  - `title` string, required: Invention title
  - `urls` unknown[]: Image URLs list
    - unknown

## Response `200`

Successful ai37-4 patent specification drafting (cnipa) - report generation response.

- AI374GenerateReportCnipaResponse
  - `data` AI374GenerateReportCnipaNoveltySearchDownloadResponse
    - `status` integer: Export Status (1: Exporting, 2: Export successful, 3: Report generation exception)
    - `task_id` string: task_id of the technical survey report
    - `report_url` string: Report file download link (returned when export status is successful)
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `201`: Created.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
