Others

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.

post/ai/sso/agent/batch-history

Request

Request body

company_idstring required

Company ID

end_timeinteger

End timestamp (milliseconds)

pageinteger

Page number, starting from 1

start_timeinteger

Start timestamp (milliseconds)

Example request

{
  "company_id": "abc123",
  "end_time": 1761580799999,
  "page": 1,
  "start_time": 1758902400000,
  "user_accounts": [
    {
      "email": "user1@example.com",
      "phone": "12345678900"
    },
    {
      "email": "user2@example.com",
      "phone": "12345678901"
    }
  ]
}

Response

Successful ai72 batch obtain offline history record response.

statusboolean required

Status

error_msgstring

Error Message

error_codeinteger required

Error Code

Example response

{
  "data": {
    "user_histories": [
      {
        "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"
            }
          ]
        }
      }
    ]
  },
  "error_msg": "The request parameter format is incorrect!"
}

Changes

No recorded changes to this operation across all 1 revision of this API.