Skip to main content
Retrieves a paginated list of assistant HTTP logs, including webhook delivery logs, with optional filtering and ordering using the Rapida API.
For more authentication options, see: https://doc.rapida.ai/api-reference/authentication

Parameters

connectionConfig
ConnectionConfig
required
Configuration for the client connection.
request
GetAllAssistantHTTPLogRequest
required

Usage

from rapida import (
    ConnectionConfig,
    GetAllAssistantHTTPLogRequest,
    Paginate,
    get_all_assistant_http_log,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
    ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_http_log(
    client_cfg=connection_config,
    request=GetAllAssistantHTTPLogRequest(
        projectId="{project_id}",
        paginate=Paginate(page=0, pageSize=20),
        # criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
    ),
)
pprint(response)

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 paginated HTTP logs
	response, err := clients.GetAllAssistantHTTPLog(context.Background(), connectionConfig, &rapida_proto.GetAllAssistantHTTPLogRequest{
		Paginate: &rapida_proto.Paginate{
			Page:     0,
			PageSize: 20,
		},
		// Optional: Add filtering criteria
		// Criterias: []*rapida_proto.Criteria{{
		// 	Key:   "status",
		// 	Value: "success",
		// 	Logic: "must",
		// }},
		// Optional: Add sorting
		// Order: &rapida_proto.Ordering{
		// 	Column: "createdDate",
		// 	Order:  "desc",
		// },
	})

	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,
  GetAllAssistantHTTPLog,
  GetAllAssistantHTTPLogRequest,
  Paginate,
} from "@rapidaai/nodejs";

(async () => {
  const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
    ConnectionConfig.WithSDK({
      ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
    })
  );
  getAllAssistantHTTPLog(connectionCfg);
})();


async function getAllAssistantHTTPLog(connectionCfg, page = 0, pageSize = 20) {
  const pagination = new Paginate();
  pagination.setPage(page);
  pagination.setPageSize(pageSize);

  const request = new GetAllAssistantHTTPLogRequest();
  request.setPaginate(pagination);

  try {
    const response = await GetAllAssistantHTTPLog(connectionCfg, request);
    console.log("All Assistant HTTP Logs Response:", response.toObject());
  } catch (error) {
    console.error("Error with GetAllAssistantHTTPLog call:", error);
  }
}


Response

code
int32
Numeric status code for the operation.
success
boolean
Indicates whether the operation was successful.
data
AssistantHTTPLog[]
Array of assistant HTTP log entries.
paginated
Paginated
Pagination metadata.
error
object
Error information, if applicable.