## List Extract Review Events

`$ llp extract:review list-events`

**get** `/api/v2/extract/{job_id}/review/events`

Beta: answers 403 until extract review is enabled for the caller and their organization.

List a review's history, newest first.

### Parameters

- `--job-id: string`

- `--organization-id: optional string`

- `--page-size: optional number`

  Events per page.

- `--page-token: optional string`

  Token from the previous page.

- `--project-id: optional string`

### Returns

- `ExtractReviewEventListResponse: object { items, next_page_token, total_size }`

  A page of a review's history, newest first.

  - `items: array of ExtractReviewEvent`

    The list of items.

    - `id: string`

      Unique identifier of the entry.

    - `actor_id: string`

      ID of the user who acted.

    - `created_at: string`

      When it happened.

    - `kind: "approved" or "created" or "field_cleared" or 7 more`

      What happened.

      - `"approved"`

      - `"created"`

      - `"field_cleared"`

      - `"field_confirmed"`

      - `"field_corrected"`

      - `"field_restored"`

      - `"field_undone"`

      - `"flags_signed_off"`

      - `"rejected"`

      - `"reopened"`

    - `detail: optional object { confidence_threshold, fields_in_scope, origin, required_fields }  or object { reason }  or object { paths }`

      The settings for `created`, the reason for `rejected`, and the fields for `flags_signed_off`; null for the rest.

      - `ExtractReviewCreatedDetail: object { confidence_threshold, fields_in_scope, origin, required_fields }`

        What a `created` entry records: where review was turned on, and its settings.

        - `confidence_threshold: number`

          Fields read below this confidence are flagged.

        - `fields_in_scope: array of string`

          JSON Pointers of the fields the threshold applies to; empty means all.

        - `origin: "api" or "edit" or "history" or "run"`

          Turned on as the job ran, from History, by a first edit, or by the API.

          - `"api"`

          - `"edit"`

          - `"history"`

          - `"run"`

        - `required_fields: array of string`

          JSON Pointers of fields flagged when empty.

      - `ExtractReviewRejectedDetail: object { reason }`

        What a `rejected` entry records.

        - `reason: string`

          Why the result was rejected.

      - `ExtractReviewSignedOffDetail: object { paths }`

        What a `flags_signed_off` entry records.

        - `paths: array of string`

          JSON Pointers of the flagged fields confirmed as part of approving.

    - `path: optional string`

      JSON Pointer of the field it changed.

    - `value_after: optional unknown`

      The field's value after the change.

    - `value_before: optional unknown`

      The field's value before the change.

  - `next_page_token: optional string`

    A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

  - `total_size: optional number`

    The total number of items available. This is only populated when specifically requested. The value may be an estimate and can be used for display purposes only.

### Example

```cli
llp extract:review list-events \
  --api-key 'My API Key' \
  --job-id job_id
```

#### Response

```json
{
  "items": [
    {
      "id": "id",
      "actor_id": "actor_id",
      "created_at": "2019-12-27T18:11:19.117Z",
      "kind": "approved",
      "detail": {
        "confidence_threshold": 0,
        "fields_in_scope": [
          "string"
        ],
        "origin": "api",
        "required_fields": [
          "string"
        ]
      },
      "path": "path",
      "value_after": {},
      "value_before": {}
    }
  ],
  "next_page_token": "next_page_token",
  "total_size": 0
}
```
