---
updatedAt: 2026-09-08T08:55:32.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# List access review campaigns

<p>
          Lists access review campaign executions bucketed by state. Completed and archived executions include the
          file IDs of their auto-generated report ZIPs (per-app CSVs, and per-app PDFs), which can be downloaded via
          the <code>GET /files/{id}/download</code> endpoint. A null file ID on a completed execution means the report
          is still being generated — retry shortly. Archived executions hold partial reports for campaigns that were
          cancelled or archived before completion. <code>completedExecutions</code> includes runs concluded early by an admin.
        </p>
        <p>
          Ordering: every bucket is newest-first. Each bucket returns at most <code>limit</code> executions
          (default 100, max 1000) — a bucket holding exactly <code>limit</code> items may have older ones beyond it;
          raise <code>limit</code> to fetch deeper history. Use <code>completedAfter</code> to poll for newly completed
          executions — it returns only executions whose <code>completionTime</code> is strictly after the given timestamp.
        </p>
        <p>Example — download the latest completed campaign report:</p>
        <code class="hljs">curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/accessReviews/campaigns?completedAfter=2026-09-01T00:00:00Z"</code>
        <hr />
        <code class="hljs">curl -L -H "Authorization: Bearer API_KEY" -o report.zip "https://api.toriihq.com/v1.0/files/{REPORT_ZIP_FILE_ID}/download"</code>
<p><ul><li>Rate limit: 600 requests per minute</li></ul></p>

# OpenAPI definition

```json
{
  "servers": [
    {
      "url": "https://api.toriihq.com/v1.0"
    }
  ],
  "info": {
    "title": "Torii API Documentation",
    "version": "v1.0",
    "description": "The Torii API provides an easy way to integrate your data in Torii with any external system. The API closely follows REST semantics, uses JSON to encode objects, and relies on standard HTTP codes to signal operation outcomes. Torii APIs consist of both proprietary and SCIM 2.0 APIs."
  },
  "x-readme": {
    "explorer-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Access Reviews"
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    },
    "schemas": {
      "ActiveExecution": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Campaign execution (run) ID",
            "example": 456
          },
          "idCampaign": {
            "type": "integer",
            "description": "Campaign ID",
            "example": 123
          },
          "name": {
            "type": "string",
            "example": "Access review September 2026"
          }
        }
      },
      "ActiveExecutions": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ActiveExecution"
        }
      },
      "CompletedExecution": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Campaign execution (run) ID",
            "example": 456
          },
          "idCampaign": {
            "type": "integer",
            "description": "Campaign ID",
            "example": 123
          },
          "name": {
            "type": "string",
            "example": "Access review September 2026"
          },
          "completionTime": {
            "type": "string",
            "format": "date",
            "description": "When the execution completed"
          },
          "reportZipFileId": {
            "type": "integer",
            "description": "File ID of the campaign report ZIP (CSV per app), for GET /files/{id}/download. Null while the report is still being generated.",
            "example": 1372203,
            "nullable": true
          },
          "reportZipPdfFileId": {
            "type": "integer",
            "description": "File ID of the campaign report ZIP (PDF per app), for GET /files/{id}/download. Null while the report is still being generated.",
            "example": 1372204,
            "nullable": true
          }
        }
      },
      "CompletedExecutions": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CompletedExecution"
        }
      },
      "ArchivedExecution": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Campaign execution (run) ID",
            "example": 456
          },
          "idCampaign": {
            "type": "integer",
            "description": "Campaign ID",
            "example": 123
          },
          "name": {
            "type": "string",
            "example": "Access review August 2026"
          },
          "archiveTime": {
            "type": "string",
            "format": "date",
            "description": "When the execution was archived/cancelled"
          },
          "reportZipFileId": {
            "type": "integer",
            "description": "File ID of the campaign report ZIP (CSV per app), for GET /files/{id}/download. Null while the report is still being generated.",
            "example": 1372203,
            "nullable": true
          },
          "reportZipPdfFileId": {
            "type": "integer",
            "description": "File ID of the campaign report ZIP (PDF per app), for GET /files/{id}/download. Null while the report is still being generated.",
            "example": 1372204,
            "nullable": true
          }
        }
      },
      "ArchivedExecutions": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ArchivedExecution"
        }
      },
      "AccessReviewCampaigns": {
        "type": "object",
        "description": "Access Review Campaigns",
        "properties": {
          "activeExecutions": {
            "$ref": "#/components/schemas/ActiveExecutions"
          },
          "completedExecutions": {
            "$ref": "#/components/schemas/CompletedExecutions"
          },
          "archivedExecutions": {
            "$ref": "#/components/schemas/ArchivedExecutions"
          }
        }
      }
    }
  },
  "paths": {
    "/accessReviews/campaigns": {
      "get": {
        "summary": "List access review campaigns",
        "operationId": "getAccessreviewsCampaigns",
        "description": "<p>\n          Lists access review campaign executions bucketed by state. Completed and archived executions include the\n          file IDs of their auto-generated report ZIPs (per-app CSVs, and per-app PDFs), which can be downloaded via\n          the <code>GET /files/{id}/download</code> endpoint. A null file ID on a completed execution means the report\n          is still being generated — retry shortly. Archived executions hold partial reports for campaigns that were\n          cancelled or archived before completion. <code>completedExecutions</code> includes runs concluded early by an admin.\n        </p>\n        <p>\n          Ordering: every bucket is newest-first. Each bucket returns at most <code>limit</code> executions\n          (default 100, max 1000) — a bucket holding exactly <code>limit</code> items may have older ones beyond it;\n          raise <code>limit</code> to fetch deeper history. Use <code>completedAfter</code> to poll for newly completed\n          executions — it returns only executions whose <code>completionTime</code> is strictly after the given timestamp.\n        </p>\n        <p>Example — download the latest completed campaign report:</p>\n        <code class=\"hljs\">curl -H \"Authorization: Bearer API_KEY\" \"https://api.toriihq.com/v1.0/accessReviews/campaigns?completedAfter=2026-09-01T00:00:00Z\"</code>\n        <hr />\n        <code class=\"hljs\">curl -L -H \"Authorization: Bearer API_KEY\" -o report.zip \"https://api.toriihq.com/v1.0/files/{REPORT_ZIP_FILE_ID}/download\"</code>\n<p><ul><li>Rate limit: 600 requests per minute</li></ul></p>",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Maximum executions returned per bucket",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            },
            "description": "Maximum executions returned per bucket"
          },
          {
            "name": "completedAfter",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date",
              "description": "Return only completed executions whose completionTime is after this timestamp"
            },
            "description": "Return only completed executions whose completionTime is after this timestamp"
          }
        ],
        "tags": [
          "Access Reviews"
        ],
        "responses": {
          "200": {
            "description": "Access Review Campaigns",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessReviewCampaigns"
                }
              }
            }
          }
        }
      }
    }
  }
}
```