Retrieves detailed information about a specific webhook configured for an assistant using the Rapida API.
Parameters
Configuration for the client connection.
request
GetAssistantWebhookRequest
required
The unique identifier of the webhook to retrieve.
The unique identifier of the assistant that owns the webhook.
Usage
from rapida import (
ConnectionConfig,
GetAssistantWebhookRequest,
get_assistant_webhook,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk(
"{rapida-api-key}"
)
)
response = get_assistant_webhook(
client_cfg=connection_config,
request=GetAssistantWebhookRequest(
id="{assistant_webhook_id}", assistantId="{assistant_id}"
),
)
pprint(response)
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Detailed information about the assistant webhook.
Unique identifier for the webhook.
Array of assistant events that trigger this webhook.
Description of the webhook’s purpose and functionality.
HTTP method used for webhook requests (e.g., “POST”, “GET”, “PUT”).
Target URL where webhook requests are sent.
Key-value pairs of HTTP headers included in webhook requests.
Key-value pairs representing the HTTP body structure for webhook requests.
Maximum time in seconds to wait for webhook response before timeout.
Priority level for webhook execution when multiple webhooks are triggered.
Array of HTTP status codes that trigger webhook retry attempts.
Maximum number of retry attempts for failed webhook calls.
Identifier of the assistant that owns this webhook.
Current status of the webhook (e.g., “active”, “inactive”).
Identifier of the user who created the webhook.
User object representing the creator of the webhook.
Identifier of the user who last updated the webhook.
User object representing the last updater of the webhook.
Timestamp when the webhook was created.
Timestamp when the webhook was last updated.
Error information, if applicable.
Numeric error code for machine-readable error handling.
Technical error message for debugging purposes.
Human-readable error message for user display.