List generations

GET /generations

返回当前账号下的所有题目生成任务。

Query parameters

  • limit integer

    Default value is 20.

  • after integer
  • filter object

    Additional properties are allowed.

    Hide filter attributes Show filter attributes object
    • Values are knowledge_base, question_bank, or oneline.

    • metadata object | null

      Additional properties are allowed.

Responses

  • 200 application/json

    generations found

    Hide response attribute Show response attribute object
    • list array[object]
      Hide list attributes Show list attributes object
      • id string

        Format should match the following pattern: ^gen-.

      • object string

        Value is generation.

      • created_at string(date-time)
      • finished_at string(date-time) | null
      • status string

        Values are queued, generating, succeeded, failed, or cancelled.

GET /generations
curl \
 -X GET https://v5.jinshuju.net/exam/api/generations
Response examples (200)
{
  "data": [
    {
      "id": "gen-6757a41fe88e5d8d2a0bbc69",
      "object": "generation",
      "status": "generating",
      "created_at": "2024-12-10T10:14:55.454+08:00",
      "finished_at": null
    },
    {
      "id": "gen-6757a41fe88e5d8d2a0bbc68",
      "object": "generation",
      "status": "generating",
      "created_at": "2024-12-10T10:14:55.451+08:00",
      "finished_at": null
    },
    {
      "id": "gen-6757a41fe88e5d8d2a0bbc67",
      "object": "generation",
      "status": "generating",
      "created_at": "2024-12-10T10:14:55.449+08:00",
      "finished_at": null
    },
    {
      "id": "gen-6757a41fe88e5d8d2a0bbc66",
      "object": "generation",
      "status": "generating",
      "created_at": "2024-12-10T10:14:55.446+08:00",
      "finished_at": null
    }
  ],
  "object": "list",
  "has_more": false
}