{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sieve Functions Jobs API",
    "version": "v2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-Key",
      "value": "{{X-API-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Jobs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Push New Job",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://mango.sievedata.com/v2/push",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new job by running a function. Specify the function with `function` (author/name[:version]) or `id` - one or the other, not both - and pass the function's parameters in `inputs`. Optionally register `webhooks` to be notified on job events."
        },
        {
          "info": {
            "name": "List Jobs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://mango.sievedata.com/v2/jobs",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of jobs to show."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Exclude the first N jobs."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by status. One of queued, processing, error, finished, cancelled. Leave empty to get all statuses."
              }
            ]
          },
          "docs": "List all jobs in your organization, optionally filtered by status."
        },
        {
          "info": {
            "name": "Get Job",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://mango.sievedata.com/v2/jobs/:job_id",
            "params": [
              {
                "name": "job_id",
                "value": "43d7add5-61cf-44ad-aac8-c5d14c642bb4",
                "type": "path",
                "description": "The ID of the job."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Exclude the first N outputs."
              }
            ]
          },
          "docs": "Get information about a specific job by id, including status and outputs."
        },
        {
          "info": {
            "name": "Cancel Job",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://mango.sievedata.com/v2/jobs/:job_id",
            "params": [
              {
                "name": "job_id",
                "value": "43d7add5-61cf-44ad-aac8-c5d14c642bb4",
                "type": "path",
                "description": "The ID of the job."
              }
            ]
          },
          "docs": "Cancels a running job."
        }
      ]
    }
  ],
  "bundled": true
}