Retrieves a list of webhooks associated with a specific assistant using the Rapida API. This endpoint supports pagination and filtering capabilities.
Parameters
Configuration for the client connection.
request
GetAllAssistantWebhookRequest
required
Filter results by a specific webhook ID.
Filter results by a specific assistant ID.
Pagination settings for the results.
The page number (0-based).
Number of items per page.
Array of filtering criteria.
The field name to filter by.
The value to match against.
The logic operator to use (“should” or “must”).
Usage
from rapida import (
ConnectionConfig,
GetAllAssistantWebhookRequest,
get_all_assistant_webhook,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_webhook(
client_cfg=connection_config,
request=GetAllAssistantWebhookRequest(
assistantId="{assistant_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 assistant webhooks.
Unique identifier for the webhook.
Array of events that trigger this webhook.
Description of the webhook’s purpose.
HTTP method used for the webhook (GET, POST, PUT, DELETE, etc.).
Target URL for the webhook.
HTTP headers to include with webhook requests.
HTTP body parameters for the webhook request.
Timeout duration for webhook requests in seconds.
Execution priority of the webhook.
HTTP status codes that should trigger a retry.
Maximum number of retry attempts.
Associated assistant identifier.
Current status of the webhook.
Identifier of the webhook creator.
User object of the webhook creator.
Identifier of the last updater.
User object of the last updater.
Timestamp when the webhook was created.
Timestamp when the webhook was last updated.
Error information, if applicable.
Human-readable error description.
Pagination information for the results.