> ## Documentation Index
> Fetch the complete documentation index at: https://zerodrift.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Policy Imports

> List all policy imports for your account

Retrieve a list of all policy imports associated with your API key.

## Response

<ResponseField name="imports" type="array">
  Array of import records

  <Expandable title="import properties">
    <ResponseField name="import_id" type="string">
      Unique import identifier
    </ResponseField>

    <ResponseField name="status" type="string">
      Import status: `processing`, `pending_review`, `no_rules_found`, `failed`, `activated`, or `partially_activated`
    </ResponseField>

    <ResponseField name="rule_count" type="integer">
      Number of rules extracted
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of the import
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="count" type="integer">
  Total number of imports
</ResponseField>

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "imports": [
      {
        "import_id": "550e8400-e29b-41d4-a716-446655440000",
        "status": "activated",
        "rule_count": 5,
        "created_at": "2026-01-15T10:30:00Z"
      },
      {
        "import_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "status": "pending_review",
        "rule_count": 3,
        "created_at": "2026-01-20T14:15:00Z"
      }
    ],
    "count": 2
  }
  ```
</ResponseExample>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://{api-url}/api/policies/import" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  API_KEY = "YOUR_API_KEY"
  API_BASE = "https://{api-url}"

  response = requests.get(
      f"{API_BASE}/api/policies/import",
      headers={"x-api-key": API_KEY}
  )

  for imp in response.json()["imports"]:
      print(f"{imp['import_id']} — {imp['status']} ({imp['rule_count']} rules)")
  ```

  ```javascript JavaScript theme={null}
  const axios = require('axios');

  const API_KEY = 'YOUR_API_KEY';
  const API_BASE = 'https://{api-url}';

  const response = await axios.get(
    `${API_BASE}/api/policies/import`,
    {
      headers: { 'x-api-key': API_KEY }
    }
  );

  response.data.imports.forEach(imp => {
    console.log(`${imp.import_id} — ${imp.status} (${imp.rule_count} rules)`);
  });
  ```
</CodeGroup>
