[AI72]Batch Obtain Offline History Record
This interface serves as an optimized function for the AI API, supporting users in batch querying history records for multiple accounts under the same company.
startTime and endTime are optional parameters, if not provided, all history records will be queried; page defaults to 1; user_accounts list can contain up to 20 items, each account must have at least one of email or phone; results are grouped by user
Request Parameters
List of parameters supported by this API endpoint
| Name | Type | Example | Description |
|---|---|---|---|
Required | string | abc123 | Company ID |
| integer<int64> | 1761580799999 | End timestamp (milliseconds) |
| integer<int32> | 1 | Page number, starting from 1 |
| integer<int64> | 1758902400000 | Start timestamp (milliseconds) |
Required | array | [
{
"email": "user1@example.com",
"phone": "12345678900"
},
{
"email": "user2@example.com",
"phone": "12345678901"
}
] | User account list, up to 20, each account contains email and phone |
| string | user@example.com | User email |
| string | 12345678900 | Phone number |
Response Schema
Structure of the API response data
| Field Name | Type | Example | Description |
|---|---|---|---|
data | object | - | response data |
user_histories | array | [
{
"email": "user@example.com",
"phone": "12345678900",
"history": {
"page": 1,
"limit": 20,
"total": 100,
"history_maps": [
{
"data": [
{
"id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"link": "/ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"time": "13:58",
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大",
"rawType": "ai_generate",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"created_at": "23 Oct 2025 13:58",
"business_id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"business_name": "Technical Solution Exploration"
}
],
"date": "2025-10-23"
}
]
}
}
] | User history records list |
email | string | user@example.com | User email |
phone | string | 12345678900 | Phone number |
history | object | {
"page": 1,
"limit": 20,
"total": 100,
"history_maps": [
{
"data": [
{
"id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"link": "/ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"time": "13:58",
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大",
"rawType": "ai_generate",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"created_at": "23 Oct 2025 13:58",
"business_id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"business_name": "Technical Solution Exploration"
}
],
"date": "2025-10-23"
}
]
} | History records details |
page | integer<int32> | 1 | Current page number |
limit | integer<int32> | 20 | Records per page |
total | integer<int64> | 100 | Total number of records |
history_maps | array | [
{
"data": [
{
"id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"link": "/ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"time": "13:58",
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大 热管理安全阈值\n,材料成本上限\n,生产工艺兼容性 ",
"rawType": "ai_generate",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"created_at": "23 Oct 2025 13:58",
"business_id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"business_name": "Technical Solution Exploration"
},
{
"id": "2570aeaf-7999-430b-9bef-c43fcda4d928",
"link": "/ai/agent-flow/2570aeaf-7999-430b-9bef-c43fcda4d928",
"time": "13:39",
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大 热管理安全阈值\n,材料成本上限\n,生产工艺兼容性 ",
"rawType": "ai_generate",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"created_at": "23 Oct 2025 13:39",
"business_id": "2570aeaf-7999-430b-9bef-c43fcda4d928",
"business_name": "Technical Solution Exploration"
}
],
"date": "2025-10-23"
}
] | History records grouped by date |
data | array | [
{
"id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"link": "/ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"time": "13:58",
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大 热管理安全阈值\n,材料成本上限\n,生产工艺兼容性 ",
"rawType": "ai_generate",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"created_at": "23 Oct 2025 13:58",
"business_id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"business_name": "Technical Solution Exploration"
}
] | List of history records for this date |
q | string | quantum computing AND artificial intelligence | Query keywords or query string |
id | string | 2a7a4ddd-7f5d-4266-a96e-13a57095db79 | History record ID |
efq | string | APD:[20230101 TO 20231231] | Extended field query |
link | string | /ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79 | Link URL for the history record |
time | string | 13:58 | Created time (hour:minute only) in format: HH:mm |
count | object | {
"total": 1500,
"granted": 800,
"application": 700
} | Search result count statistics (patent count, etc.) |
source | string | AI_GENERATE | History record source |
message | string | 如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大 热管理安全阈值\n,材料成本上限\n,生产工艺兼容性 | Message or description of the history record |
icon_url | string | https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg | Full URL of the icon |
raw_type | string | ai_generate | History record type |
icon_path | string | agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg | Icon path |
patent_id | string | US20240123456A1 | Patent ID |
created_at | string | 23 Oct 2025 13:58 | Created time in format: yyyy-MM-dd HH:mm or dd MMM yyyy HH:mm |
extra_info | object | {
"region": "US",
"category": "technology"
} | Extra information |
business_id | string | 2a7a4ddd-7f5d-4266-a96e-13a57095db79 | Business ID (e.g., seekId, mindId, researchId) |
business_name | string | Technical Solution Exploration | Business name |
date | string | 2025-10-23 | Date in format: yyyy-MM-dd |
statusRequired | boolean | false | Status |
error_msg | string | The request parameter format is incorrect! | Error Message |
error_codeRequired | integer | 0 | Error Code |
Success Response Example
Example of a successful API response
JSON
{
"data": {
"user_histories": [
{
"email": "user@example.com",
"phone": 12345678900,
"history": {
"page": 1,
"limit": 20,
"total": 100,
"history_maps": [
{
"data": [
{
"q": "quantum computing AND artificial intelligence",
"id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"efq": "APD:[20230101 TO 20231231]",
"link": "/ai/agent-flow/2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"time": "13:58",
"count": {
"total": 1500,
"granted": 800,
"application": 700
},
"source": "AI_GENERATE",
"message": "如何提高锂电池能量密度到260瓦时/千克(Wh/kg)且体积没有变大 热管理安全阈值\\n,材料成本上限\\n,生产工艺兼容性",
"icon_url": "https://qa-patsnap-import-workspace.cdn.zhihuiya.com/agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"raw_type": "ai_generate",
"icon_path": "agent/9b6135cd012c425e84edf84e6b03e366-image.jpeg",
"patent_id": "US20240123456A1",
"created_at": "23 Oct 2025 13:58",
"extra_info": {
"region": "US",
"category": "technology"
},
"business_id": "2a7a4ddd-7f5d-4266-a96e-13a57095db79",
"business_name": "Technical Solution Exploration"
}
],
"date": "2025-10-23"
}
]
}
}
]
},
"status": true,
"error_code": 0
}Error Codes
List of possible error codes returned by this endpoint
Business Errors
| Error Code | Description |
|---|---|
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
Platform Errors
| Error Code | Description |
|---|---|
67200000 | API call exceeds the total limit set by the platform! |
67200001 | API call exceeds the total limit set by the platform! |
67200002 | The current call rate is too fast, exceeding the current configuration limit QPS! |
67200003 | The key and secret parameters for applying for the token are incorrect or the client has been disabled! |
67200004 | The requested api does not have permission. Please contact our support personnel! |
67200005 | Insufficient account balance/number of calls! |
67200006 | The client has exceeded the activation validity period! |
67200007 | The current call exceeds the configured usage limit of the day! |
67200008 | Please check if the required apikey in the query parameter has been transmitted! |
67200009 | The apikey does not match the passed bearerToken. Please check if a valid token is being used! |
67200012 | The request is illegal! |
67200100 | The current server status is busy, request response timeout! |
67200101 | The API requested currently does not exist. Please check the request path! |
HTTP Status Codes
| Status Code | Description |
|---|---|
0 | Success |
201 | Created |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
Performance Metrics
Expected performance characteristics for this endpoint
Normal Response Time
5000 ms
Max Response Time
10000 ms