---
title: "AI71 Obtain Offline Report"
method: POST
path: "/ai/sso/agent/export-link"
tags: ["Others"]
---

# AI71 Obtain Offline Report

`POST /ai/sso/agent/export-link`

## Request

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

This interface serves as an optimized function for the AI API, supporting users in integrating report links into their local systems. The Agents that currently support outputting report links are: [AI32] Technology Disclosure Document, [AI35] Novelty Check, [AI37] Patent Drafting (CNIPA),  and [AI66] FTO Search.

## Request body

- AI71AgentExportLinkRequest
  - `agent_type` string, required: Agent type, used to filter specific types of Agent records. Supported types:<p>ai_patent_disclosure - [AI32] Patent Disclosure</p><p>ai_specification - [AI37] Patent Drafting</p><p>ai_fto_search - [AI66]AI FTO Search</p><p>ai_novelty_search - [AI35] AI Novelty Search</p>
  - `company_id` string, required: Company ID
  - `email` string: User email
  - `end_time` integer: End timestamp (milliseconds)
  - `lang` string, required: language CN / EN / TW / JP
  - `page` integer: Page number, starting from 1
  - `phone` string: phone number
  - `start_time` integer: Start timestamp (milliseconds)
  - `task_id_list` unknown[]: Task ID list, if provided, use these task IDs directly to get export links, otherwise query history records based on other conditions. Maximum 5 task IDs supported
    - unknown

## Response `200`

Successful ai71 obtain offline report response.

- AI71AgentExportLinkResponse
  - `data` AI71AgentExportLinkAgentExportResponse
    - `items` AI71AgentExportLinkAgentExport[]: List of export links
      - `url` string: Export file download URL
      - `task_id` string: Task ID
      - `file_name` string: Export file name
  - `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)
