Retrieves a paginated list of webhook logs with optional filtering and ordering using the Rapida API.
Parameters
Configuration for the client connection.
request
GetAllAssistantWebhookLogRequest
required
The project identifier for scope filtering.
Pagination configuration.
Page number (0-based indexing).
Number of items per page.
Array of filtering criteria.
Filter logic: “should” or “must”.
Sorting configuration.
Sort order: “asc” or “desc”.
Usage
from rapida import (
ConnectionConfig,
GetAllAssistantWebhookLogRequest,
get_all_assistant_webhook_log,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_webhook_log(
client_cfg=connection_config,
request=GetAllAssistantWebhookLogRequest(
projectId="{project_id}",
paginate=Paginate(page=0, pageSize=20),
# criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
),
)
pprint(response)
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Array of webhook log entries.
Unique identifier for the webhook log.
Identifier of the associated webhook.
The request payload sent to the webhook.
The response received from the webhook.
Status of the webhook execution.
Timestamp when the log entry was created.
Timestamp when the log entry was last updated.
Identifier of the associated assistant.
Identifier of the associated project.
Identifier of the associated organization.
Identifier of the associated conversation.
Asset prefix used for the webhook.
Event type that triggered the webhook.
HTTP response status code from the webhook.
Time taken for the webhook execution in milliseconds.
Number of retry attempts made.
HTTP method used for the webhook request.
URL that was called for the webhook.
Error information, if applicable.
Human-readable error message.