GET /generations

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

Query parameters

  • limit integer

    Default value is 20.

  • after integer
  • filter object
    Hide filter attributes Show filter attributes object
    • creation_type string

      Values are knowledge_base, question_bank, or oneline.

    • metadata object | null

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 \
 --request GET 'https://v5.jinshuju.net/exam/api/generations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": "gen-679210fbe88e5ddf0d5b8924",
      "object": "generation",
      "status": "queued",
      "created_at": "2025-01-23T17:50:51.390+08:00",
      "finished_at": null
    },
    {
      "id": "gen-679210fbe88e5ddf0d5b8923",
      "object": "generation",
      "status": "queued",
      "created_at": "2025-01-23T17:50:51.388+08:00",
      "finished_at": null
    },
    {
      "id": "gen-679210fbe88e5ddf0d5b8922",
      "object": "generation",
      "status": "queued",
      "created_at": "2025-01-23T17:50:51.385+08:00",
      "finished_at": null
    },
    {
      "id": "gen-679210fbe88e5ddf0d5b8921",
      "object": "generation",
      "status": "queued",
      "created_at": "2025-01-23T17:50:51.383+08:00",
      "finished_at": null
    }
  ],
  "object": "list",
  "has_more": false
}