## Query Webhook Configs

`WebhookConfigListPaginatedPageResponse WebhookConfigs.ListPaginated(WebhookConfigListPaginatedParams?parameters, CancellationTokencancellationToken = default)`

**get** `/api/v2/webhook-configs`

List the webhook configurations for the current project, newest first.

### Parameters

- `WebhookConfigListPaginatedParams parameters`

  - `Boolean includeTotal`

    Return `total_size`, a count of every row matching the filter. It is a second query on every page, so it is off unless asked for.

  - `string? organizationID`

  - `Long pageSize`

    Number of items per page

  - `string? pageToken`

    Cursor from the previous page's `next_page_token`.

  - `string? projectID`

### Returns

- `class WebhookConfigListPaginatedPageResponse:`

  A page of webhook configurations.

  - `required IReadOnlyList<WebhookConfigResponse> Items`

    The list of items.

    - `required string ID`

      Unique identifier for the webhook configuration.

    - `required Boolean HasSecret`

      Whether a signing secret is configured for this endpoint.

    - `required string TenantID`

      Owner tenant ID.

    - `JsonElement TenantType "project"constant`

      Owner tenant type.

    - `required string WebhookUrl`

      URL that receives webhook POST notifications.

    - `DateTimeOffset? CreatedAt`

      Creation datetime

    - `DateTimeOffset? UpdatedAt`

      Update datetime

    - `IReadOnlyList<WebhookEvent>? WebhookEvents`

      Subscribed events (null = all events).

      - `"batch.cancelled"BatchCancelled`

      - `"batch.error"BatchError`

      - `"batch.pending"BatchPending`

      - `"batch.running"BatchRunning`

      - `"batch.success"BatchSuccess`

      - `"classify.cancelled"ClassifyCancelled`

      - `"classify.error"ClassifyError`

      - `"classify.partial_success"ClassifyPartialSuccess`

      - `"classify.pending"ClassifyPending`

      - `"classify.running"ClassifyRunning`

      - `"classify.success"ClassifySuccess`

      - `"extract.cancelled"ExtractCancelled`

      - `"extract.error"ExtractError`

      - `"extract.partial_success"ExtractPartialSuccess`

      - `"extract.pending"ExtractPending`

      - `"extract.success"ExtractSuccess`

      - `"parse.cancelled"ParseCancelled`

      - `"parse.error"ParseError`

      - `"parse.partial_success"ParsePartialSuccess`

      - `"parse.pending"ParsePending`

      - `"parse.running"ParseRunning`

      - `"parse.success"ParseSuccess`

      - `"sheets.cancelled"SheetsCancelled`

      - `"sheets.error"SheetsError`

      - `"sheets.partial_success"SheetsPartialSuccess`

      - `"sheets.pending"SheetsPending`

      - `"sheets.success"SheetsSuccess`

      - `"split.cancelled"SplitCancelled`

      - `"split.error"SplitError`

      - `"split.pending"SplitPending`

      - `"split.processing"SplitProcessing`

      - `"split.success"SplitSuccess`

      - `"unmapped_event"UnmappedEvent`

      - `"verify.cancelled"VerifyCancelled`

      - `"verify.error"VerifyError`

      - `"verify.pending"VerifyPending`

      - `"verify.running"VerifyRunning`

      - `"verify.success"VerifySuccess`

    - `IReadOnlyDictionary<string, string>? WebhookHeaders`

      Custom HTTP headers sent with each request.

    - `WebhookOutputFormat? WebhookOutputFormat`

      Response format sent to the webhook.

      - `"json"Json`

      - `"string"String`

  - `string? NextPageToken`

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

  - `Long? TotalSize`

    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

```csharp
WebhookConfigListPaginatedParams parameters = new();

var page = await client.WebhookConfigs.ListPaginated(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}
```

#### Response

```json
{
  "items": [
    {
      "id": "id",
      "has_secret": true,
      "tenant_id": "tenant_id",
      "tenant_type": "project",
      "webhook_url": "webhook_url",
      "created_at": "2019-12-27T18:11:19.117Z",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "webhook_events": [
        "batch.cancelled"
      ],
      "webhook_headers": {
        "foo": "string"
      },
      "webhook_output_format": "json"
    }
  ],
  "next_page_token": "next_page_token",
  "total_size": 0
}
```
