Skip to content

katana_public_api_client.api.webhook_logs.export_webhook_logs

katana_public_api_client.api.webhook_logs.export_webhook_logs

Classes

Functions

asyncio(*, client, body) async

Export webhook logs

Use the endpoint to export your webhook logs and troubleshoot any issues. Webhook logs are filtered by the provided parameters and exported into a CSV file. The response contains an URL to the CSV file.

Parameters:

  • body (WebhookLogsExportRequest) –

    Request parameters for exporting webhook delivery logs for analysis and debugging Example: {'webhook_id': 1, 'start_date': '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure', 'retry'], 'format': 'csv'}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook_logs/export_webhook_logs.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    body: WebhookLogsExportRequest,
) -> DetailedErrorResponse | ErrorResponse | WebhookLogsExport | None:
    """Export webhook logs

     Use the endpoint to export your webhook logs and troubleshoot any issues.
          Webhook logs are filtered by the provided parameters and exported into a CSV file.
          The response contains an URL to the CSV file.

    Args:
        body (WebhookLogsExportRequest): Request parameters for exporting webhook delivery logs
            for analysis and debugging Example: {'webhook_id': 1, 'start_date':
            '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure',
            'retry'], 'format': 'csv'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[DetailedErrorResponse, ErrorResponse, WebhookLogsExport]
    """

    return (
        await asyncio_detailed(
            client=client,
            body=body,
        )
    ).parsed

asyncio_detailed(*, client, body) async

Export webhook logs

Use the endpoint to export your webhook logs and troubleshoot any issues. Webhook logs are filtered by the provided parameters and exported into a CSV file. The response contains an URL to the CSV file.

Parameters:

  • body (WebhookLogsExportRequest) –

    Request parameters for exporting webhook delivery logs for analysis and debugging Example: {'webhook_id': 1, 'start_date': '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure', 'retry'], 'format': 'csv'}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook_logs/export_webhook_logs.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    body: WebhookLogsExportRequest,
) -> Response[DetailedErrorResponse | ErrorResponse | WebhookLogsExport]:
    """Export webhook logs

     Use the endpoint to export your webhook logs and troubleshoot any issues.
          Webhook logs are filtered by the provided parameters and exported into a CSV file.
          The response contains an URL to the CSV file.

    Args:
        body (WebhookLogsExportRequest): Request parameters for exporting webhook delivery logs
            for analysis and debugging Example: {'webhook_id': 1, 'start_date':
            '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure',
            'retry'], 'format': 'csv'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[DetailedErrorResponse, ErrorResponse, WebhookLogsExport]]
    """

    kwargs = _get_kwargs(
        body=body,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client, body)

Export webhook logs

Use the endpoint to export your webhook logs and troubleshoot any issues. Webhook logs are filtered by the provided parameters and exported into a CSV file. The response contains an URL to the CSV file.

Parameters:

  • body (WebhookLogsExportRequest) –

    Request parameters for exporting webhook delivery logs for analysis and debugging Example: {'webhook_id': 1, 'start_date': '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure', 'retry'], 'format': 'csv'}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook_logs/export_webhook_logs.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    body: WebhookLogsExportRequest,
) -> DetailedErrorResponse | ErrorResponse | WebhookLogsExport | None:
    """Export webhook logs

     Use the endpoint to export your webhook logs and troubleshoot any issues.
          Webhook logs are filtered by the provided parameters and exported into a CSV file.
          The response contains an URL to the CSV file.

    Args:
        body (WebhookLogsExportRequest): Request parameters for exporting webhook delivery logs
            for analysis and debugging Example: {'webhook_id': 1, 'start_date':
            '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure',
            'retry'], 'format': 'csv'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[DetailedErrorResponse, ErrorResponse, WebhookLogsExport]
    """

    return sync_detailed(
        client=client,
        body=body,
    ).parsed

sync_detailed(*, client, body)

Export webhook logs

Use the endpoint to export your webhook logs and troubleshoot any issues. Webhook logs are filtered by the provided parameters and exported into a CSV file. The response contains an URL to the CSV file.

Parameters:

  • body (WebhookLogsExportRequest) –

    Request parameters for exporting webhook delivery logs for analysis and debugging Example: {'webhook_id': 1, 'start_date': '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure', 'retry'], 'format': 'csv'}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook_logs/export_webhook_logs.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    body: WebhookLogsExportRequest,
) -> Response[DetailedErrorResponse | ErrorResponse | WebhookLogsExport]:
    """Export webhook logs

     Use the endpoint to export your webhook logs and troubleshoot any issues.
          Webhook logs are filtered by the provided parameters and exported into a CSV file.
          The response contains an URL to the CSV file.

    Args:
        body (WebhookLogsExportRequest): Request parameters for exporting webhook delivery logs
            for analysis and debugging Example: {'webhook_id': 1, 'start_date':
            '2024-01-10T00:00:00Z', 'end_date': '2024-01-15T23:59:59Z', 'status_filter': ['failure',
            'retry'], 'format': 'csv'}.

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[DetailedErrorResponse, ErrorResponse, WebhookLogsExport]]
    """

    kwargs = _get_kwargs(
        body=body,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)