For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
Configuration for the client connection.
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)
package main
import (
"context"
"fmt"
"os"
clients "github.com/rapidaai/rapida-go/rapida/clients"
rapida_proto "github.com/rapidaai/rapida-go/rapida/clients/protos"
connections "github.com/rapidaai/rapida-go/rapida/connections"
)
func main() {
// Configure client connection using RAPIDA_PROJECT_CREDENTIAL environment variable
connectionConfig := connections.
DefaultconnectionConfig(connections.WithSDK(os.Getenv("RAPIDA_PROJECT_CREDENTIAL")))
// Retrieve webhook information
response, err := clients.GetAssistantWebhook(context.Background(), connectionConfig, &rapida_proto.GetAssistantWebhookRequest{
AssistantId: 3456789876541212,
Id: 567898765456788765,
})
if err != nil {
fmt.Printf("Error while making call using rapida: %+v\n", err)
return
}
// Print the response
fmt.Printf("Rapida calling response: %+v\n", response)
}
import {
ConnectionConfig,
GetAssistantWebhook,
GetAssistantWebhookRequest,
} from "@rapidaai/nodejs";
(async () => {
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
ConnectionConfig.WithSDK({
ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
})
);
getAssistantWebhook(45678903456789, 12345676543211);
})();
async function getAssistantWebhook(connectionCfg, assistantId, webhookId) {
const request = new GetAssistantWebhookRequest();
request.setAssistantId(assistantId);
request.setId(webhookId);
try {
const response = await GetAssistantWebhook(connectionCfg, request);
console.log("Assistant Webhook Response:", response.toObject());
} catch (error) {
console.error("Error with GetAssistantWebhook call:", error);
}
}
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Detailed information about the assistant webhook.
Show child attributes
Show child attributes
Unique identifier for the webhook.
Array of call, WebRTC, or conversation event names that trigger this webhook.
Description of the webhook’s purpose and functionality.
Webhook provider. HTTP webhooks use
http.Delivery options for the webhook.
Show child attributes
Show child attributes
HTTP method used for delivery. Supported values are
POST, PUT, and PATCH.Target URL where webhook requests are sent.
JSON object containing HTTP headers included with each request.
JSON array of response status entries used by the delivery retry policy.
Maximum number of retry attempts after a retryable failure.
Maximum time in seconds to wait for the webhook endpoint to respond.
Priority level for webhook execution when multiple webhooks are triggered.
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.