{
  "opencollection": "1.0.0",
  "info": {
    "name": "Moonshot AI Batch API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Batch",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Batches",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.moonshot.ai/v1/batches",
            "params": [
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor, pass the ID of the last batch from the previous page"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results per page, default 20"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List batch tasks for your organization."
        },
        {
          "info": {
            "name": "Create Batch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moonshot.ai/v1/batches",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a batch task. You need to first upload a JSONL file with purpose=\"batch\" via the Files API, then use the returned file_id to create the task."
        },
        {
          "info": {
            "name": "Retrieve Batch",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.moonshot.ai/v1/batches/:batch_id",
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the batch task"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve the status and details of a specific batch task."
        },
        {
          "info": {
            "name": "Cancel Batch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moonshot.ai/v1/batches/:batch_id/cancel",
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the batch task"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Cancel an in-progress batch task. The status will change to cancelling and then to cancelled. Only tasks in validating, in_progress, or finalizing status can be cancelled."
        }
      ]
    }
  ],
  "bundled": true
}